Class CardinalPointsAnchor
- java.lang.Object
-
- org.eclipse.draw2d.ConnectionAnchorBase
-
- org.eclipse.draw2d.AbstractConnectionAnchor
-
- com._1c.g5.v8.dt.common.gef.drow2d.anchor.CardinalPointsAnchor
-
- All Implemented Interfaces:
org.eclipse.draw2d.AncestorListener
,org.eclipse.draw2d.ConnectionAnchor
- Direct Known Subclasses:
AutodetectingCardinalPointsAnchor
,FeedbackCardinalPointsAnchor
public abstract class CardinalPointsAnchor extends org.eclipse.draw2d.AbstractConnectionAnchor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CardinalPointsAnchor.CardinalPoint
class
CardinalPointsAnchor.Selection
-
Field Summary
Fields Modifier and Type Field Description static int
ALL
static int
BLOCK_AUTODETECT
static int
BOTTOM
static int
LEFT
protected IPointProvider
pointProvider
static int
RIGHT
protected CardinalPointsAnchor.Selection
selection
static int
TOP
-
Constructor Summary
Constructors Modifier Constructor Description protected
CardinalPointsAnchor(org.eclipse.draw2d.IFigure owner, int directions, IPointProvider pointProvider)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
calc(org.eclipse.draw2d.geometry.Point point, boolean isUseAutodetectionPoint)
protected boolean
checkDirection(int direction)
boolean
checkDirection(CardinalPointsAnchor.CardinalPoint direction)
protected org.eclipse.draw2d.geometry.Point
getAutodetectionPoint()
Map<CardinalPointsAnchor.CardinalPoint,org.eclipse.draw2d.geometry.Point>
getCandidates()
CardinalPointsAnchor.CardinalPoint
getCurrentDirection()
protected org.eclipse.draw2d.geometry.Point
getCurrentLocation()
IPointProvider
getPointProvider()
int
getPossibleDirections()
abstract String
getTerminal()
boolean
isDefined()
void
setPossibleDirections(int directions)
protected void
updateSelection(CardinalPointsAnchor.Selection selection, org.eclipse.draw2d.geometry.Point point, boolean isUseAutodetectionPoint)
-
Methods inherited from class org.eclipse.draw2d.AbstractConnectionAnchor
addAnchorListener, ancestorAdded, ancestorMoved, ancestorRemoved, getOwner, getReferencePoint, removeAnchorListener, setOwner
-
-
-
-
Field Detail
-
selection
protected CardinalPointsAnchor.Selection selection
-
pointProvider
protected IPointProvider pointProvider
-
LEFT
public static final int LEFT
- See Also:
- Constant Field Values
-
RIGHT
public static final int RIGHT
- See Also:
- Constant Field Values
-
TOP
public static final int TOP
- See Also:
- Constant Field Values
-
BOTTOM
public static final int BOTTOM
- See Also:
- Constant Field Values
-
BLOCK_AUTODETECT
public static final int BLOCK_AUTODETECT
- See Also:
- Constant Field Values
-
ALL
public static final int ALL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CardinalPointsAnchor
protected CardinalPointsAnchor(org.eclipse.draw2d.IFigure owner, int directions, IPointProvider pointProvider)
-
-
Method Detail
-
getCurrentLocation
protected org.eclipse.draw2d.geometry.Point getCurrentLocation()
-
isDefined
public boolean isDefined()
-
calc
protected void calc(org.eclipse.draw2d.geometry.Point point, boolean isUseAutodetectionPoint)
-
updateSelection
protected void updateSelection(CardinalPointsAnchor.Selection selection, org.eclipse.draw2d.geometry.Point point, boolean isUseAutodetectionPoint)
-
getAutodetectionPoint
protected org.eclipse.draw2d.geometry.Point getAutodetectionPoint()
-
getCandidates
public Map<CardinalPointsAnchor.CardinalPoint,org.eclipse.draw2d.geometry.Point> getCandidates()
-
checkDirection
protected boolean checkDirection(int direction)
-
getTerminal
public abstract String getTerminal()
-
checkDirection
public boolean checkDirection(CardinalPointsAnchor.CardinalPoint direction)
-
getCurrentDirection
public CardinalPointsAnchor.CardinalPoint getCurrentDirection()
-
getPossibleDirections
public int getPossibleDirections()
-
setPossibleDirections
public void setPossibleDirections(int directions)
-
getPointProvider
public IPointProvider getPointProvider()
- Returns:
- the pointProvider
-
-