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
ConstructorDescriptionPolyPointLocator
(org.eclipse.draw2d.Polyline referenceFigure, int pointIndex) Constructs a poly point handle locator. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.draw2d.geometry.Rectangle
Returns the Reference Box in the Reference Figure's coordinate system.void
relocate
(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 (Polyline
or 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:
relocate
in interfaceorg.eclipse.draw2d.Locator
-