com.partnersoft.staker.ephemera
Class StretchFromPointWithDistance
java.lang.Object
com.partnersoft.staker.ephemera.StretchFromPointWithDistance
public class StretchFromPointWithDistance
- extends java.lang.Object
Rubber-banding ephemeron, draws a line stretching between some anchor point
and the current mouse position. Useful when adding or moving vertices of a
polyline.
Copyright 2007 Paul Reavis
|
Constructor Summary |
StretchFromPointWithDistance(java.lang.String label,
XyPoint anchor,
java.lang.String lineStyle,
java.lang.String textStyle)
|
StretchFromPointWithDistance(XyPoint anchor,
java.lang.String lineStyle,
java.lang.String textStyle)
Create a new StretchFromPointWithDistance object with the given anchor
point and text/line styles. |
|
Method Summary |
void |
draw(DrawingSurface surface,
MapViewFrame frame,
XyPoint mousePosition)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StretchFromPointWithDistance
public StretchFromPointWithDistance(XyPoint anchor,
java.lang.String lineStyle,
java.lang.String textStyle)
- Create a new StretchFromPointWithDistance object with the given anchor
point and text/line styles. It will draw a stretchy line between the
anchor and the current mouse position with distance of line written on
opposite side of mouse position from anchor.
StretchFromPointWithDistance
public StretchFromPointWithDistance(java.lang.String label,
XyPoint anchor,
java.lang.String lineStyle,
java.lang.String textStyle)
draw
public void draw(DrawingSurface surface,
MapViewFrame frame,
XyPoint mousePosition)