|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for getting diagram related information.
Field Summary | |
static java.lang.String |
DESCRIPTION_ELEMENT_NAME
|
static java.lang.String |
DIAGRAM_ELEMENT_NAME
|
static java.lang.String |
EXTRA_CANVAS_ITEMS_ELEMENT_NAME
|
static double |
MINIMUM_STEEPNESS
|
static java.lang.String |
TITLE_ATTRIBUTE_NAME
|
Method Summary | |
LabelInfo |
getAttributeLabel(int pointNumber)
Returns the information on the attribute label of the diagram. |
Concept |
getBottomConcept()
Finds the bottom concept in the underlying lattice. |
java.awt.geom.Rectangle2D |
getBounds()
Calculates a rectangle that includes all points. |
org.jdom.Element |
getDescription()
Returns the XML Element describing the diagram (if available, null otherwise). |
org.tockit.events.EventBroker |
getEventBroker()
Returns the event broker this diagram sends change events to. |
java.awt.geom.Point2D |
getFromPosition(int lineNumber)
Returns the coordinates of a starting point of a line. |
DiagramLine |
getLine(int lineNumber)
Returns a line in the diagram. |
java.util.Iterator |
getLines()
|
DiagramNode |
getNode(int nodeNumber)
Returns a node in the diagram. |
DiagramNode |
getNode(java.lang.String identifier)
|
DiagramNode |
getNodeForConcept(Concept concept)
Finds the node representing the concept given. |
java.util.Iterator |
getNodes()
Returns the list of all nodes in the diagram. |
int |
getNumberOfLines()
Returns the number of lines in the diagram. |
int |
getNumberOfNodes()
Returns the number of nodes in the diagram. |
LabelInfo |
getObjectLabel(int pointNumber)
Returns the information on the object label of the diagram. |
java.lang.String |
getTitle()
Returns the title of the diagram. |
Concept |
getTopConcept()
Finds the top concept in the underlying lattice. |
java.awt.geom.Point2D |
getToPosition(int lineNumber)
Returns the coordinates of an end point of a line. |
boolean |
isHasseDiagram()
Returns true if the diagram is layouted as Hasse diagram. |
Methods inherited from interface net.sourceforge.toscanaj.util.xmlize.XMLizable |
readXML, toXML |
Field Detail |
public static final java.lang.String DIAGRAM_ELEMENT_NAME
public static final java.lang.String TITLE_ATTRIBUTE_NAME
public static final java.lang.String DESCRIPTION_ELEMENT_NAME
public static final java.lang.String EXTRA_CANVAS_ITEMS_ELEMENT_NAME
public static final double MINIMUM_STEEPNESS
Method Detail |
public java.lang.String getTitle()
public int getNumberOfNodes()
public int getNumberOfLines()
public java.awt.geom.Rectangle2D getBounds()
public DiagramNode getNode(int nodeNumber)
public DiagramNode getNode(java.lang.String identifier)
public DiagramNode getNodeForConcept(Concept concept)
public java.util.Iterator getNodes()
public java.util.Iterator getLines()
public java.awt.geom.Point2D getFromPosition(int lineNumber)
public DiagramLine getLine(int lineNumber)
public java.awt.geom.Point2D getToPosition(int lineNumber)
public LabelInfo getObjectLabel(int pointNumber)
public LabelInfo getAttributeLabel(int pointNumber)
public org.jdom.Element getDescription()
public boolean isHasseDiagram()
public Concept getTopConcept()
java.lang.IllegalStateException
- if the diagram has no nodes or is not a lattice.public Concept getBottomConcept()
java.lang.IllegalStateException
- if the diagram has no nodes or is not a lattice.public org.tockit.events.EventBroker getEventBroker()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |