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
A connection line between two nodes
Since:
6.8
Author:
Marco Meschieri - LogicalDOC
  • Field Details

    • defaultConnectionColor

      public static com.google.gwt.canvas.dom.client.CssColor defaultConnectionColor
    • connectionColor

      public com.google.gwt.canvas.dom.client.CssColor connectionColor
  • Method Details

    • 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
    • delete

      public void delete()
      Specified by:
      delete in interface com.orange.links.client.connection.Connection
    • draw

      public void draw()
      Specified by:
      draw in interface com.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 interface com.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 interface com.orange.links.client.connection.Connection
    • getMovablePoints

      public List<com.orange.links.client.shapes.Point> getMovablePoints()
      Specified by:
      getMovablePoints in interface com.orange.links.client.connection.Connection
    • removeDecoration

      public void removeDecoration()
      Specified by:
      removeDecoration in interface com.orange.links.client.connection.Connection
    • setStraight

      public void setStraight()
      Specified by:
      setStraight in interface com.orange.links.client.connection.Connection
    • getStartShape

      public com.orange.links.client.shapes.Shape getStartShape()
      Specified by:
      getStartShape in interface com.orange.links.client.connection.Connection
    • getEndShape

      public com.orange.links.client.shapes.Shape getEndShape()
      Specified by:
      getEndShape in interface com.orange.links.client.connection.Connection
    • isMouseNearConnection

      public boolean isMouseNearConnection(com.orange.links.client.shapes.Point p)
      Specified by:
      isMouseNearConnection in interface com.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 interface com.orange.links.client.connection.Connection
    • getDecoration

      public com.orange.links.client.shapes.DecorationShape getDecoration()
      Specified by:
      getDecoration in interface com.orange.links.client.connection.Connection
    • getContextMenu

      public com.orange.links.client.menu.ContextMenu getContextMenu()
      Specified by:
      getContextMenu in interface com.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 interface com.orange.links.client.connection.Connection
    • drawHighlight

      public void drawHighlight()
      Specified by:
      drawHighlight in interface com.orange.links.client.shapes.Drawable
    • setAllowSynchronized

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