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.CssColorconnectionColorstatic com.google.gwt.canvas.dom.client.CssColordefaultConnectionColor 
- 
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.MovablePointaddMovablePoint(com.orange.links.client.shapes.Point p)booleanallowSynchronized()voiddelete()voiddraw()voiddrawHighlight()com.orange.links.client.menu.ContextMenugetContextMenu()com.orange.links.client.shapes.DecorationShapegetDecoration()com.orange.links.client.shapes.ShapegetEndShape()com.orange.links.client.shapes.PointgetHighlightPoint()List<com.orange.links.client.shapes.Point>getMovablePoints()com.orange.links.client.shapes.ShapegetStartShape()com.orange.links.client.shapes.PointhighlightMovablePoint(com.orange.links.client.shapes.Point p)booleanisMouseNearConnection(com.orange.links.client.shapes.Point p)booleanisSynchronized()voidremoveDecoration()voidsetAllowSynchronized(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)voidsetStraight()static voidsetStraightenText(String text)voidsetSynchronized(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:
 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
public List<com.orange.links.client.shapes.Point> 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
public static void setStraightenText(String text)
 
- 
setDeleteText
public static void setDeleteText(String text)
 
- 
setController
public void setController(DiagramController controller)
- 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
 
 - 
 
 -