Class 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 Detail

      • AbstractShape

        public AbstractShape​(DiagramController controller,
                             com.google.gwt.user.client.ui.Widget widget)
    • Method Detail

      • isSynchronized

        public boolean isSynchronized()
        Specified by:
        isSynchronized in interface com.orange.links.client.shapes.Drawable
      • setSynchronized

        public void setSynchronized​(boolean sync)
        Specified by:
        setSynchronized in interface com.orange.links.client.shapes.Drawable
      • allowSynchronized

        public boolean allowSynchronized()
        Specified by:
        allowSynchronized in interface com.orange.links.client.shapes.Drawable
      • getLeft

        public int getLeft()
        Specified by:
        getLeft in interface com.orange.links.client.shapes.Shape
      • getTop

        public int getTop()
        Specified by:
        getTop in interface com.orange.links.client.shapes.Shape
      • getWidth

        public int getWidth()
        Specified by:
        getWidth in interface com.orange.links.client.shapes.Shape
      • getHeight

        public int getHeight()
        Specified by:
        getHeight in interface com.orange.links.client.shapes.Shape
      • addConnection

        public boolean addConnection​(com.orange.links.client.connection.Connection connection)
        Specified by:
        addConnection in interface com.orange.links.client.shapes.Shape
      • removeConnection

        public boolean removeConnection​(com.orange.links.client.connection.Connection connection)
        Specified by:
        removeConnection in interface com.orange.links.client.shapes.Shape
      • asWidget

        public com.google.gwt.user.client.ui.Widget asWidget()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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 interface com.orange.links.client.shapes.Drawable