Package com.orange.links.client.shapes
Class AbstractShape
- java.lang.Object
-
- com.orange.links.client.shapes.AbstractShape
-
- All Implemented Interfaces:
com.orange.links.client.shapes.Drawable,com.orange.links.client.shapes.Shape
- Direct Known Subclasses:
FunctionShape
public abstract class AbstractShape extends Object implements com.orange.links.client.shapes.Shape
-
-
Constructor Summary
Constructors Constructor Description AbstractShape(DiagramController controller, com.google.gwt.user.client.ui.Widget widget)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddConnection(com.orange.links.client.connection.Connection connection)booleanallowSynchronized()com.google.gwt.user.client.ui.WidgetasWidget()booleanequals(Object obj)com.orange.links.client.shapes.DrawableSet<com.orange.links.client.connection.Connection>getConnections()intgetHeight()intgetLeft()intgetTop()intgetWidth()inthashCode()booleanisSynchronized()booleanremoveConnection(com.orange.links.client.connection.Connection connection)voidsetAllowSynchronized(boolean allowSynchronized)voidsetSynchronized(boolean sync)
-
-
-
Constructor Detail
-
AbstractShape
public AbstractShape(DiagramController controller, com.google.gwt.user.client.ui.Widget widget)
-
-
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
-
getLeft
public int getLeft()
- Specified by:
getLeftin interfacecom.orange.links.client.shapes.Shape
-
getTop
public int getTop()
- Specified by:
getTopin interfacecom.orange.links.client.shapes.Shape
-
getWidth
public int getWidth()
- Specified by:
getWidthin interfacecom.orange.links.client.shapes.Shape
-
getHeight
public int getHeight()
- Specified by:
getHeightin interfacecom.orange.links.client.shapes.Shape
-
addConnection
public boolean addConnection(com.orange.links.client.connection.Connection connection)
- Specified by:
addConnectionin interfacecom.orange.links.client.shapes.Shape
-
removeConnection
public boolean removeConnection(com.orange.links.client.connection.Connection connection)
- Specified by:
removeConnectionin interfacecom.orange.links.client.shapes.Shape
-
asWidget
public com.google.gwt.user.client.ui.Widget asWidget()
-
getConnections
public com.orange.links.client.shapes.DrawableSet<com.orange.links.client.connection.Connection> getConnections()
-
setAllowSynchronized
public void setAllowSynchronized(boolean allowSynchronized)
- Specified by:
setAllowSynchronizedin interfacecom.orange.links.client.shapes.Drawable
-
-