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 ClassesNested classes/interfaces inherited from class org.csstudio.opibuilder.editparts.AbstractOpiBuilderAnchor
AbstractOpiBuilderAnchor.ConnectorOrientationNested 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
ConstructorsConstructorDescriptionFixedPositionAnchor(org.eclipse.draw2d.IFigure owner, FixedPositionAnchor.AnchorPosition anchorPosition) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif the other anchor has the same owner and box.protected org.eclipse.draw2d.geometry.RectanglegetBox()Returns the bounds of this ChopboxAnchor's owner.org.eclipse.draw2d.geometry.PointgetLocation(org.eclipse.draw2d.geometry.Point reference) org.eclipse.draw2d.geometry.PointinthashCode()The owning figure's hashcode is used since equality is approximately based on the owner.Methods inherited from class org.csstudio.opibuilder.editparts.AbstractOpiBuilderAnchor
fixZoomEdgeRoundingMethods inherited from class org.eclipse.draw2d.AbstractConnectionAnchor
addAnchorListener, ancestorAdded, ancestorMoved, ancestorRemoved, getOwner, removeAnchorListener, setOwnerMethods 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:
getOrientationin 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:
getReferencePointin interfaceorg.eclipse.draw2d.ConnectionAnchor- Overrides:
getReferencePointin classorg.eclipse.draw2d.AbstractConnectionAnchor
-
getLocation
public org.eclipse.draw2d.geometry.Point getLocation(org.eclipse.draw2d.geometry.Point reference) -
equals
Returnstrueif 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.
-