Class DiagramElement

  • All Implemented Interfaces:
    Direct Known Subclasses:
    DiagramEdge, DiagramNode

    public abstract class DiagramElement
    extends java.lang.Object
    Represents a diagram node.
    Falko Menge
    See Also:
    Serialized Form
    • Field Summary

      Modifier and Type Field Description
      protected java.lang.String id  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getId()
      Id of the diagram element.
      abstract boolean isEdge()  
      abstract boolean isNode()  
      void setId​(java.lang.String id)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • id

        protected java.lang.String id
    • Constructor Detail

      • DiagramElement

        public DiagramElement()
      • DiagramElement

        public DiagramElement​(java.lang.String id)
    • Method Detail

      • getId

        public java.lang.String getId()
        Id of the diagram element.
      • setId

        public void setId​(java.lang.String id)
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • isNode

        public abstract boolean isNode()
      • isEdge

        public abstract boolean isEdge()