Class AbstractConnection
java.lang.Object
com.orange.links.client.connection.AbstractConnection
- All Implemented Interfaces:
com.orange.links.client.connection.Connection,com.orange.links.client.menu.HasContextMenu,com.orange.links.client.shapes.Drawable
public abstract class AbstractConnection
extends Object
implements com.orange.links.client.connection.Connection
A connection line between two nodes
- Since:
- 6.8
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.google.gwt.canvas.dom.client.CssColorstatic final com.google.gwt.canvas.dom.client.CssColor -
Method Summary
Modifier and TypeMethodDescriptioncom.orange.links.client.utils.MovablePointaddMovablePoint(com.orange.links.client.shapes.Point p) booleanvoiddelete()voiddraw()voidcom.orange.links.client.menu.ContextMenucom.orange.links.client.shapes.DecorationShapecom.orange.links.client.shapes.Shapecom.orange.links.client.shapes.PointList<com.orange.links.client.shapes.Point> com.orange.links.client.shapes.Shapecom.orange.links.client.shapes.PointhighlightMovablePoint(com.orange.links.client.shapes.Point p) booleanisMouseNearConnection(com.orange.links.client.shapes.Point p) booleanvoidvoidsetAllowSynchronized(boolean allowSynchronized) voidsetController(DiagramController controller) voidsetDecoration(com.orange.links.client.shapes.DecorationShape decoration) static voidsetDeleteText(String text) voidsetHighlightPoint(com.orange.links.client.shapes.Point highlightPoint) voidstatic voidsetStraightenText(String text) voidsetSynchronized(boolean sync)
-
Field Details
-
defaultConnectionColor
public static final com.google.gwt.canvas.dom.client.CssColor defaultConnectionColor -
connectionColor
public static final com.google.gwt.canvas.dom.client.CssColor connectionColor
-
-
Method Details
-
isSynchronized
public boolean isSynchronized()- Specified by:
isSynchronizedin interfacecom.orange.links.client.shapes.Drawable
-
setSynchronized
public void setSynchronized(boolean sync) - Specified by:
setSynchronizedin interfacecom.orange.links.client.shapes.Drawable
-
allowSynchronized
public boolean allowSynchronized()- Specified by:
allowSynchronizedin interfacecom.orange.links.client.shapes.Drawable
-
delete
public void delete()- Specified by:
deletein interfacecom.orange.links.client.connection.Connection
-
draw
public void draw()- Specified by:
drawin interfacecom.orange.links.client.shapes.Drawable
-
addMovablePoint
public com.orange.links.client.utils.MovablePoint addMovablePoint(com.orange.links.client.shapes.Point p) - Specified by:
addMovablePointin interfacecom.orange.links.client.connection.Connection
-
highlightMovablePoint
public com.orange.links.client.shapes.Point highlightMovablePoint(com.orange.links.client.shapes.Point p) - Specified by:
highlightMovablePointin interfacecom.orange.links.client.connection.Connection
-
getMovablePoints
- Specified by:
getMovablePointsin interfacecom.orange.links.client.connection.Connection
-
removeDecoration
public void removeDecoration()- Specified by:
removeDecorationin interfacecom.orange.links.client.connection.Connection
-
setStraight
public void setStraight()- Specified by:
setStraightin interfacecom.orange.links.client.connection.Connection
-
getStartShape
public com.orange.links.client.shapes.Shape getStartShape()- Specified by:
getStartShapein interfacecom.orange.links.client.connection.Connection
-
getEndShape
public com.orange.links.client.shapes.Shape getEndShape()- Specified by:
getEndShapein interfacecom.orange.links.client.connection.Connection
-
isMouseNearConnection
public boolean isMouseNearConnection(com.orange.links.client.shapes.Point p) - Specified by:
isMouseNearConnectionin interfacecom.orange.links.client.connection.Connection
-
getHighlightPoint
public com.orange.links.client.shapes.Point getHighlightPoint() -
setHighlightPoint
public void setHighlightPoint(com.orange.links.client.shapes.Point highlightPoint) -
setDecoration
public void setDecoration(com.orange.links.client.shapes.DecorationShape decoration) - Specified by:
setDecorationin interfacecom.orange.links.client.connection.Connection
-
getDecoration
public com.orange.links.client.shapes.DecorationShape getDecoration()- Specified by:
getDecorationin interfacecom.orange.links.client.connection.Connection
-
getContextMenu
public com.orange.links.client.menu.ContextMenu getContextMenu()- Specified by:
getContextMenuin interfacecom.orange.links.client.menu.HasContextMenu
-
setStraightenText
-
setDeleteText
-
setController
- Specified by:
setControllerin interfacecom.orange.links.client.connection.Connection
-
drawHighlight
public void drawHighlight()- Specified by:
drawHighlightin interfacecom.orange.links.client.shapes.Drawable
-
setAllowSynchronized
public void setAllowSynchronized(boolean allowSynchronized) - Specified by:
setAllowSynchronizedin interfacecom.orange.links.client.shapes.Drawable
-