org.kite9.diagram.primitives
Class AbstractIdentifiableDiagramElement

java.lang.Object
  extended by org.kite9.diagram.primitives.AbstractIdentifiableDiagramElement
All Implemented Interfaces:
Comparable<DiagramElement>, DiagramElement, IdentifiableDiagramElement
Direct Known Subclasses:
AbstractConnectedContained

public abstract class AbstractIdentifiableDiagramElement
extends Object
implements IdentifiableDiagramElement


Field Summary
protected  RenderingInformation renderingInformation
          This is used by layout engines to set the position of the elements in the diagram
 
Constructor Summary
AbstractIdentifiableDiagramElement()
           
AbstractIdentifiableDiagramElement(String id)
           
 
Method Summary
 int compareTo(DiagramElement o)
           
protected static String createID()
           
 String getID()
          ID should be a project-unique ID to describe this element.
 int hashCode()
           
static void resetCounter()
           
 void setID(String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kite9.diagram.primitives.DiagramElement
getRenderingInformation
 

Field Detail

renderingInformation

protected RenderingInformation renderingInformation
This is used by layout engines to set the position of the elements in the diagram

Constructor Detail

AbstractIdentifiableDiagramElement

public AbstractIdentifiableDiagramElement()

AbstractIdentifiableDiagramElement

public AbstractIdentifiableDiagramElement(String id)
Method Detail

compareTo

public int compareTo(DiagramElement o)
Specified by:
compareTo in interface Comparable<DiagramElement>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getID

public final String getID()
Description copied from interface: IdentifiableDiagramElement
ID should be a project-unique ID to describe this element. It is also used within the XML to allow references between the elements of the XML file. ID is also used for hashcode and equals. Set an ID to ensure sorting, maps and therefore diagram layouts, are deterministic.

Specified by:
getID in interface IdentifiableDiagramElement

setID

public void setID(String id)
Specified by:
setID in interface IdentifiableDiagramElement

createID

protected static String createID()

resetCounter

public static void resetCounter()


Copyright © 2011. All Rights Reserved.