net.sourceforge.toscanaj.model.diagram
Interface WriteableDiagram2D

All Superinterfaces:
Diagram2D, XMLizable
All Known Implementing Classes:
SimpleLineDiagram

public interface WriteableDiagram2D
extends Diagram2D

This class is an abstraction of all diagram related information.


Field Summary
 
Fields inherited from interface net.sourceforge.toscanaj.model.diagram.Diagram2D
DESCRIPTION_ELEMENT_NAME, DIAGRAM_ELEMENT_NAME, EXTRA_CANVAS_ITEMS_ELEMENT_NAME, MINIMUM_STEEPNESS, TITLE_ATTRIBUTE_NAME
 
Method Summary
 void addLine(DiagramNode from, DiagramNode to)
          Adds a line to the diagram (at the end of the list).
 void addNode(DiagramNode node)
          Adds a point to the diagram (at the end of the list).
 void sendChangeEvent()
          Sends a notification about a change into the broker attached.
 void setDescription(org.jdom.Element descriptionXML)
          Gives the diagram a description.
 void setEventBroker(org.tockit.events.EventBroker eventBroker)
          Sets an event broker to send DiagramChangeEvents to.
 void setTitle(java.lang.String title)
          Change the title of the diagram.
 
Methods inherited from interface net.sourceforge.toscanaj.model.diagram.Diagram2D
getAttributeLabel, getBottomConcept, getBounds, getDescription, getEventBroker, getFromPosition, getLine, getLines, getNode, getNode, getNodeForConcept, getNodes, getNumberOfLines, getNumberOfNodes, getObjectLabel, getTitle, getTopConcept, getToPosition, isHasseDiagram
 
Methods inherited from interface net.sourceforge.toscanaj.util.xmlize.XMLizable
readXML, toXML
 

Method Detail

setTitle

public void setTitle(java.lang.String title)
Change the title of the diagram.


setDescription

public void setDescription(org.jdom.Element descriptionXML)
Gives the diagram a description.


addNode

public void addNode(DiagramNode node)
Adds a point to the diagram (at the end of the list).


addLine

public void addLine(DiagramNode from,
                    DiagramNode to)
Adds a line to the diagram (at the end of the list). The from and to parameters are assumed to refer to some points already existing in the points list.


setEventBroker

public void setEventBroker(org.tockit.events.EventBroker eventBroker)
Sets an event broker to send DiagramChangeEvents to.


sendChangeEvent

public void sendChangeEvent()
Sends a notification about a change into the broker attached. This is a null-operation if the broker is not set.



The ToscanaJ project