Interface IAnchorable
-
- All Known Implementing Classes:
AbstractBpFigure
,AbstractBpPolygonFigure
,AbstractBPRectangleFigure
,AbstractBpRouteFigure
,ActivityFigure
,CaseFigure
,CompletionFigure
,ConditionFigure
,DecorationFigure
,JoinFigure
,ProcessingFigure
,SplitFigure
,StartFigure
,SubProcessFigure
,SwitchFigure
public interface IAnchorable
Instance of this class contains anchors to which connections can connect.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AnchorFigure
getHighlitedAnchor()
Returns highlited anchor.void
highlightClosestAnchor(org.eclipse.draw2d.geometry.Point location, int anchorType)
Highlites the closest anchor to givenlocation
.void
setAnchorsVisible(boolean isVisible, int anchorType)
Sets anchors visibility.
-
-
-
Method Detail
-
setAnchorsVisible
void setAnchorsVisible(boolean isVisible, int anchorType)
Sets anchors visibility.- Parameters:
isVisible
- -true
if anchors should be visible.anchorType
- - anchor type.- See Also:
AnchorFigure.TARGET
,AnchorFigure.SOURCE
-
highlightClosestAnchor
void highlightClosestAnchor(org.eclipse.draw2d.geometry.Point location, int anchorType)
Highlites the closest anchor to givenlocation
.- Parameters:
location
- - location. Can't benull
.anchorType
- - anchor type.- See Also:
AnchorFigure.TARGET
,AnchorFigure.SOURCE
-
getHighlitedAnchor
AnchorFigure getHighlitedAnchor()
Returns highlited anchor. If there is no highlited anchor, returnsnull
.- Returns:
- highlited anchor. If there is no highlited anchor, returns
null
. Can returnnull
.
-
-