Class PolyPointLocator

java.lang.Object
org.csstudio.opibuilder.widgets.feedback.PolyPointLocator
All Implemented Interfaces:
org.eclipse.draw2d.Locator

public final class PolyPointLocator extends Object implements 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

    Constructors
    Constructor
    Description
    PolyPointLocator(org.eclipse.draw2d.Polyline referenceFigure, int pointIndex)
    Constructs a poly point handle locator.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.eclipse.draw2d.geometry.Rectangle
    Returns the Reference Box in the Reference Figure's coordinate system.
    void
    relocate(org.eclipse.draw2d.IFigure target)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface org.eclipse.draw2d.Locator