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
-
-
Field Summary
Fields Modifier and Type Field Description com.google.gwt.canvas.dom.client.CssColor
connectionColor
static com.google.gwt.canvas.dom.client.CssColor
defaultConnectionColor
-
Constructor Summary
Constructors Constructor Description AbstractConnection(DiagramController controller, com.orange.links.client.shapes.Shape startShape, com.orange.links.client.shapes.Shape endShape)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.orange.links.client.utils.MovablePoint
addMovablePoint(com.orange.links.client.shapes.Point p)
boolean
allowSynchronized()
void
delete()
void
draw()
void
drawHighlight()
com.orange.links.client.menu.ContextMenu
getContextMenu()
com.orange.links.client.shapes.DecorationShape
getDecoration()
com.orange.links.client.shapes.Shape
getEndShape()
com.orange.links.client.shapes.Point
getHighlightPoint()
List<com.orange.links.client.shapes.Point>
getMovablePoints()
com.orange.links.client.shapes.Shape
getStartShape()
com.orange.links.client.shapes.Point
highlightMovablePoint(com.orange.links.client.shapes.Point p)
boolean
isMouseNearConnection(com.orange.links.client.shapes.Point p)
boolean
isSynchronized()
void
removeDecoration()
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
setStraight()
static void
setStraightenText(String text)
void
setSynchronized(boolean sync)
-
-
-
Constructor Detail
-
AbstractConnection
public AbstractConnection(DiagramController controller, com.orange.links.client.shapes.Shape startShape, com.orange.links.client.shapes.Shape endShape) throws com.orange.links.client.exception.DiagramViewNotDisplayedException
- Throws:
com.orange.links.client.exception.DiagramViewNotDisplayedException
-
-
Method Detail
-
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
public List<com.orange.links.client.shapes.Point> 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
public static void setStraightenText(String text)
-
setDeleteText
public static void setDeleteText(String text)
-
setController
public void setController(DiagramController controller)
- 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
-
-