Class DiagramElement

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    DiagramEdge, DiagramNode

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

      Fields 
      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()
        Overrides:
        toString in class java.lang.Object
      • isNode

        public abstract boolean isNode()
      • isEdge

        public abstract boolean isEdge()