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
Modifier and TypeFieldDescriptioncom.google.gwt.canvas.dom.client.CssColor
static com.google.gwt.canvas.dom.client.CssColor
-
Method Summary
Modifier and TypeMethodDescriptioncom.orange.links.client.utils.MovablePoint
addMovablePoint
(com.orange.links.client.shapes.Point p) boolean
void
delete()
void
draw()
void
com.orange.links.client.menu.ContextMenu
com.orange.links.client.shapes.DecorationShape
com.orange.links.client.shapes.Shape
com.orange.links.client.shapes.Point
List<com.orange.links.client.shapes.Point>
com.orange.links.client.shapes.Shape
com.orange.links.client.shapes.Point
highlightMovablePoint
(com.orange.links.client.shapes.Point p) boolean
isMouseNearConnection
(com.orange.links.client.shapes.Point p) boolean
void
void
setAllowSynchronized
(boolean allowSynchronized) void
setController
(DiagramController controller) void
setDecoration
(com.orange.links.client.shapes.DecorationShape decoration) static void
setDeleteText
(String text) void
setHighlightPoint
(com.orange.links.client.shapes.Point highlightPoint) void
static void
setStraightenText
(String text) void
setSynchronized
(boolean sync)
-
Field Details
-
defaultConnectionColor
public static com.google.gwt.canvas.dom.client.CssColor defaultConnectionColor -
connectionColor
public com.google.gwt.canvas.dom.client.CssColor connectionColor
-
-
Method Details
-
isSynchronized
public boolean isSynchronized()- Specified by:
isSynchronized
in interfacecom.orange.links.client.shapes.Drawable
-
setSynchronized
public void setSynchronized(boolean sync) - Specified by:
setSynchronized
in interfacecom.orange.links.client.shapes.Drawable
-
allowSynchronized
public boolean allowSynchronized()- Specified by:
allowSynchronized
in interfacecom.orange.links.client.shapes.Drawable
-
delete
public void delete()- Specified by:
delete
in interfacecom.orange.links.client.connection.Connection
-
draw
public void draw()- Specified by:
draw
in interfacecom.orange.links.client.shapes.Drawable
-
addMovablePoint
public com.orange.links.client.utils.MovablePoint addMovablePoint(com.orange.links.client.shapes.Point p) - Specified by:
addMovablePoint
in interfacecom.orange.links.client.connection.Connection
-
highlightMovablePoint
public com.orange.links.client.shapes.Point highlightMovablePoint(com.orange.links.client.shapes.Point p) - Specified by:
highlightMovablePoint
in interfacecom.orange.links.client.connection.Connection
-
getMovablePoints
- Specified by:
getMovablePoints
in interfacecom.orange.links.client.connection.Connection
-
removeDecoration
public void removeDecoration()- Specified by:
removeDecoration
in interfacecom.orange.links.client.connection.Connection
-
setStraight
public void setStraight()- Specified by:
setStraight
in interfacecom.orange.links.client.connection.Connection
-
getStartShape
public com.orange.links.client.shapes.Shape getStartShape()- Specified by:
getStartShape
in interfacecom.orange.links.client.connection.Connection
-
getEndShape
public com.orange.links.client.shapes.Shape getEndShape()- Specified by:
getEndShape
in interfacecom.orange.links.client.connection.Connection
-
isMouseNearConnection
public boolean isMouseNearConnection(com.orange.links.client.shapes.Point p) - Specified by:
isMouseNearConnection
in 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:
setDecoration
in interfacecom.orange.links.client.connection.Connection
-
getDecoration
public com.orange.links.client.shapes.DecorationShape getDecoration()- Specified by:
getDecoration
in interfacecom.orange.links.client.connection.Connection
-
getContextMenu
public com.orange.links.client.menu.ContextMenu getContextMenu()- Specified by:
getContextMenu
in interfacecom.orange.links.client.menu.HasContextMenu
-
setStraightenText
-
setDeleteText
-
setController
- Specified by:
setController
in interfacecom.orange.links.client.connection.Connection
-
drawHighlight
public void drawHighlight()- Specified by:
drawHighlight
in interfacecom.orange.links.client.shapes.Drawable
-
setAllowSynchronized
public void setAllowSynchronized(boolean allowSynchronized) - Specified by:
setAllowSynchronized
in interfacecom.orange.links.client.shapes.Drawable
-