Class BpAnchor
- java.lang.Object
-
- org.eclipse.draw2d.ConnectionAnchorBase
-
- org.eclipse.draw2d.AbstractConnectionAnchor
-
- com._1c.g5.v8.dt.bp.scheme.ui.model.draw2d.BpAnchor
-
- All Implemented Interfaces:
org.eclipse.draw2d.AncestorListener
,org.eclipse.draw2d.ConnectionAnchor
public class BpAnchor extends org.eclipse.draw2d.AbstractConnectionAnchor
BP anchor. Connections can connect only to 4 points on parent bounds (top, bottom, left, right).
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_POSITION
Default anchor position.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.draw2d.geometry.Point
getLocation(org.eclipse.draw2d.geometry.Point reference)
int
getPosition()
Returns anchor position.org.eclipse.draw2d.geometry.Point
getReferencePoint()
void
setPosition(int position)
Set's anchor position.
-
-
-
Field Detail
-
DEFAULT_POSITION
public static final int DEFAULT_POSITION
Default anchor position.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BpAnchor
public BpAnchor(org.eclipse.draw2d.IFigure owner)
Constructor.- Parameters:
owner
- - owner figure. Can't benull
.
-
BpAnchor
public BpAnchor(org.eclipse.draw2d.IFigure owner, int position)
Constructor.- Parameters:
owner
- - owner figure. Can't benull
.position
- - anchor position.- See Also:
IAnchorTypes.TOP
,IAnchorTypes.BOTTOM
,IAnchorTypes.LEFT
,IAnchorTypes.RIGHT
-
-
Method Detail
-
setPosition
public void setPosition(int position)
Set's anchor position.- Parameters:
position
- - new anchor position.- See Also:
IAnchorTypes.TOP
,IAnchorTypes.BOTTOM
,IAnchorTypes.LEFT
,IAnchorTypes.RIGHT
-
getPosition
public int getPosition()
Returns anchor position.- Returns:
- anchor position.
- See Also:
IAnchorTypes.TOP
,IAnchorTypes.BOTTOM
,IAnchorTypes.LEFT
,IAnchorTypes.RIGHT
-
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
-
-