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 SummaryNested classes/interfaces inherited from class org.csstudio.opibuilder.editparts.AbstractOpiBuilderAnchorAbstractOpiBuilderAnchor.ConnectorOrientationNested classes/interfaces inherited from interface org.eclipse.draw2d.AncestorListenerorg.eclipse.draw2d.AncestorListener.Stub
- 
Field SummaryFields inherited from class org.eclipse.draw2d.ConnectionAnchorBaselisteners
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.eclipse.draw2d.geometry.PointgetLocation(org.eclipse.draw2d.geometry.Point reference) org.eclipse.draw2d.geometry.PointMethods inherited from class org.csstudio.opibuilder.editparts.AbstractOpiBuilderAnchorfixZoomEdgeRoundingMethods inherited from class org.eclipse.draw2d.AbstractConnectionAnchoraddAnchorListener, ancestorAdded, ancestorMoved, ancestorRemoved, getOwner, removeAnchorListener, setOwnerMethods inherited from class org.eclipse.draw2d.ConnectionAnchorBasefireAnchorMoved
- 
Constructor Details- 
PolyGraphAnchorpublic PolyGraphAnchor(org.eclipse.draw2d.Polyline owner, int pointIndex) 
 
- 
- 
Method Details- 
getLocationpublic org.eclipse.draw2d.geometry.Point getLocation(org.eclipse.draw2d.geometry.Point reference) 
- 
getReferencePointpublic org.eclipse.draw2d.geometry.Point getReferencePoint()- Specified by:
- getReferencePointin interface- org.eclipse.draw2d.ConnectionAnchor
- Overrides:
- getReferencePointin class- org.eclipse.draw2d.AbstractConnectionAnchor
 
- 
getOrientation- Specified by:
- getOrientationin class- AbstractOpiBuilderAnchor
- Returns:
- The direction in which the connection is oriented at this anchor, if the Manhattan router is being selected
 
 
-