org.kite9.diagram.primitives
Class AbstractIdentifiableDiagramElement
java.lang.Object
org.kite9.diagram.primitives.AbstractIdentifiableDiagramElement
- All Implemented Interfaces:
- Comparable<DiagramElement>, DiagramElement, IdentifiableDiagramElement
- Direct Known Subclasses:
- AbstractConnectedContained
public abstract class AbstractIdentifiableDiagramElement
- extends Object
- implements IdentifiableDiagramElement
renderingInformation
protected RenderingInformation renderingInformation
- This is used by layout engines to set the position of the elements in the
diagram
AbstractIdentifiableDiagramElement
public AbstractIdentifiableDiagramElement()
AbstractIdentifiableDiagramElement
public AbstractIdentifiableDiagramElement(String id)
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.