Class PolyPointLocator
java.lang.Object
org.csstudio.opibuilder.widgets.feedback.PolyPointLocator
- All Implemented Interfaces:
org.eclipse.draw2d.Locator
Places a handle for a polygon or polyline point. The placement is determined by indicating the polyline figure to
which the placement is relative, and a value indicating a point index.
-
Constructor Summary
ConstructorsConstructorDescriptionPolyPointLocator(org.eclipse.draw2d.Polyline referenceFigure, int pointIndex) Constructs a poly point handle locator. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.draw2d.geometry.RectangleReturns the Reference Box in the Reference Figure's coordinate system.voidrelocate(org.eclipse.draw2d.IFigure target)
-
Constructor Details
-
PolyPointLocator
public PolyPointLocator(org.eclipse.draw2d.Polyline referenceFigure, int pointIndex) Constructs a poly point handle locator.- Parameters:
referenceFigure- the reference figure (Polylineor subclasses of it)pointIndex- the index of the polygon point for which a handle should be placed
-
-
Method Details
-
getReferenceBox
protected org.eclipse.draw2d.geometry.Rectangle getReferenceBox()Returns the Reference Box in the Reference Figure's coordinate system. The returned Rectangle may be by reference, and should not be modified. -
relocate
public void relocate(org.eclipse.draw2d.IFigure target) - Specified by:
relocatein interfaceorg.eclipse.draw2d.Locator
-