Class PolyGraphAnchor
java.lang.Object
org.eclipse.draw2d.ConnectionAnchorBase
org.eclipse.draw2d.AbstractConnectionAnchor
org.csstudio.opibuilder.editparts.AbstractOpiBuilderAnchor
org.csstudio.opibuilder.editparts.PolyGraphAnchor
- All Implemented Interfaces:
org.eclipse.draw2d.AncestorListener
,org.eclipse.draw2d.ConnectionAnchor
This class represents an anchor on a polygon or polyline widget.
On a normal widget the there are just 8 possible positions for the connector, and they are all on the widget bounding box:
- 4 are on the middle of each edge of the bounding box
- 4 are on each corner of the bounding box
On a polyline or a polygon widget the anchors are wherever there is a bend in the polyline.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.csstudio.opibuilder.editparts.AbstractOpiBuilderAnchor
AbstractOpiBuilderAnchor.ConnectorOrientation
Nested classes/interfaces inherited from interface org.eclipse.draw2d.AncestorListener
org.eclipse.draw2d.AncestorListener.Stub
-
Field Summary
Fields inherited from class org.eclipse.draw2d.ConnectionAnchorBase
listeners
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.draw2d.geometry.Point
getLocation
(org.eclipse.draw2d.geometry.Point reference) org.eclipse.draw2d.geometry.Point
Methods inherited from class org.csstudio.opibuilder.editparts.AbstractOpiBuilderAnchor
fixZoomEdgeRounding
Methods inherited from class org.eclipse.draw2d.AbstractConnectionAnchor
addAnchorListener, ancestorAdded, ancestorMoved, ancestorRemoved, getOwner, removeAnchorListener, setOwner
Methods inherited from class org.eclipse.draw2d.ConnectionAnchorBase
fireAnchorMoved
-
Constructor Details
-
PolyGraphAnchor
public PolyGraphAnchor(org.eclipse.draw2d.Polyline owner, int pointIndex)
-
-
Method Details
-
getLocation
public org.eclipse.draw2d.geometry.Point getLocation(org.eclipse.draw2d.geometry.Point reference) -
getReferencePoint
public org.eclipse.draw2d.geometry.Point getReferencePoint()- Specified by:
getReferencePoint
in interfaceorg.eclipse.draw2d.ConnectionAnchor
- Overrides:
getReferencePoint
in classorg.eclipse.draw2d.AbstractConnectionAnchor
-
getOrientation
- Specified by:
getOrientation
in classAbstractOpiBuilderAnchor
- Returns:
- The direction in which the connection is oriented at this anchor, if the Manhattan router is being selected
-