edu.mit.sketch.ddg
Class StrokeInput
java.lang.Object
|
+--edu.mit.sketch.ddg.StrokeInput
- public class StrokeInput
- extends Object
StrokeInput contains the raw stroke drawn by the user and it's
interpretation as simple geometric parts.
Note: for now the geometric parts are all lines.
StrokeInput.java
Created: Sat Nov 20 19:43:00 2001
|
Constructor Summary |
StrokeInput(StrokeData rawStroke)
Constructor interprets the raw stroke as geometric parts:
for now just a polyline |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StrokeInput
public StrokeInput(StrokeData rawStroke)
- Constructor interprets the raw stroke as geometric parts:
for now just a polyline
geomParts
public Vector geomParts()
- Get the geometric parts inferred from the raw stroke
paintRaw
public void paintRaw(Graphics g)
- Paint the raw stroke
paint
public void paint(Graphics g)
- Paint the stroke as geometric parts.
Paints each segment in different color