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 boolean
addConnection(com.orange.links.client.connection.Connection connection)
boolean
allowSynchronized()
com.google.gwt.user.client.ui.Widget
asWidget()
boolean
equals(Object obj)
com.orange.links.client.shapes.DrawableSet<com.orange.links.client.connection.Connection>
getConnections()
int
getHeight()
int
getLeft()
int
getTop()
int
getWidth()
int
hashCode()
boolean
isSynchronized()
boolean
removeConnection(com.orange.links.client.connection.Connection connection)
void
setAllowSynchronized(boolean allowSynchronized)
void
setSynchronized(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:
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
-
getLeft
public int getLeft()
- Specified by:
getLeft
in interfacecom.orange.links.client.shapes.Shape
-
getTop
public int getTop()
- Specified by:
getTop
in interfacecom.orange.links.client.shapes.Shape
-
getWidth
public int getWidth()
- Specified by:
getWidth
in interfacecom.orange.links.client.shapes.Shape
-
getHeight
public int getHeight()
- Specified by:
getHeight
in interfacecom.orange.links.client.shapes.Shape
-
addConnection
public boolean addConnection(com.orange.links.client.connection.Connection connection)
- Specified by:
addConnection
in interfacecom.orange.links.client.shapes.Shape
-
removeConnection
public boolean removeConnection(com.orange.links.client.connection.Connection connection)
- Specified by:
removeConnection
in 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:
setAllowSynchronized
in interfacecom.orange.links.client.shapes.Drawable
-
-