Class FixedPositionAnchor
java.lang.Object
org.eclipse.draw2d.ConnectionAnchorBase
org.eclipse.draw2d.AbstractConnectionAnchor
org.csstudio.opibuilder.editparts.AbstractOpiBuilderAnchor
org.csstudio.opibuilder.editparts.FixedPositionAnchor
- All Implemented Interfaces:
org.eclipse.draw2d.AncestorListener
,org.eclipse.draw2d.ConnectionAnchor
The anchor is on a fixed position of the figure. For example, left, right, top left, ...
-
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
ConstructorDescriptionFixedPositionAnchor
(org.eclipse.draw2d.IFigure owner, FixedPositionAnchor.AnchorPosition anchorPosition) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if the other anchor has the same owner and box.protected org.eclipse.draw2d.geometry.Rectangle
getBox()
Returns the bounds of this ChopboxAnchor's owner.org.eclipse.draw2d.geometry.Point
getLocation
(org.eclipse.draw2d.geometry.Point reference) org.eclipse.draw2d.geometry.Point
int
hashCode()
The owning figure's hashcode is used since equality is approximately based on the owner.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
-
FixedPositionAnchor
public FixedPositionAnchor(org.eclipse.draw2d.IFigure owner, FixedPositionAnchor.AnchorPosition anchorPosition)
-
-
Method Details
-
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
-
getBox
protected org.eclipse.draw2d.geometry.Rectangle getBox()Returns the bounds of this ChopboxAnchor's owner. Subclasses can override this method to adjust the box the anchor can be placed on. For instance, the owner figure may have a drop shadow that should not be included in the box.- Returns:
- The bounds of this ChopboxAnchor's owner
-
getReferencePoint
public org.eclipse.draw2d.geometry.Point getReferencePoint()- Specified by:
getReferencePoint
in interfaceorg.eclipse.draw2d.ConnectionAnchor
- Overrides:
getReferencePoint
in classorg.eclipse.draw2d.AbstractConnectionAnchor
-
getLocation
public org.eclipse.draw2d.geometry.Point getLocation(org.eclipse.draw2d.geometry.Point reference) -
equals
Returnstrue
if the other anchor has the same owner and box. -
hashCode
public int hashCode()The owning figure's hashcode is used since equality is approximately based on the owner.
-