org.objectweb.jac.ide
Class Diagram

java.lang.Object
  extended byorg.objectweb.jac.ide.ModelElement
      extended byorg.objectweb.jac.ide.Diagram

public class Diagram
extends ModelElement


Constructor Summary
Diagram()
           
Diagram(String name)
           
 
Method Summary
 void addFigure(Figure figure)
           
 boolean contains(ModelElement element)
          Tells if the diagram contains a figure that represents the given model element.
 Package getContainer()
          Get the value of container.
 Set getFigures()
           
 List getMissingRelations(Class cl)
          Gets relations of a class with other classes on the diagram which are not on the diagram.
 void importClass(Class cl, Point corner)
          Create a new figure for an existing class
 void removeElement(ModelElement element)
          Removes the figure of an element.
 void removeFigure(Figure figure)
           
 void removeInheritanceLink(Class cl, Class superClass)
          Removes an inheritance link between two classes
 void setContainer(Package v)
          Set the value of container.
 
Methods inherited from class org.objectweb.jac.ide.ModelElement
addConfigItem, addEndingLink, addLink, getConfigItems, getDescription, getEndingLinks, getFullName, getGenerationFullName, getGenerationName, getLinks, getName, getType, remove, removeEndingLink, removeLink, setDescription, setEndingLinks, setLinks, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Diagram

public Diagram()

Diagram

public Diagram(String name)
Method Detail

getContainer

public Package getContainer()
Get the value of container.

Returns:
value of container.

setContainer

public void setContainer(Package v)
Set the value of container.

Parameters:
v - Value to assign to container.

getFigures

public Set getFigures()

addFigure

public void addFigure(Figure figure)

removeFigure

public void removeFigure(Figure figure)

removeElement

public void removeElement(ModelElement element)
Removes the figure of an element.

Parameters:
element - the element whose figure shall be removed

removeInheritanceLink

public void removeInheritanceLink(Class cl,
                                  Class superClass)
Removes an inheritance link between two classes

Parameters:
cl - the subclass
superClass - the superclass

contains

public boolean contains(ModelElement element)
Tells if the diagram contains a figure that represents the given model element.


importClass

public void importClass(Class cl,
                        Point corner)
Create a new figure for an existing class


getMissingRelations

public List getMissingRelations(Class cl)
Gets relations of a class with other classes on the diagram which are not on the diagram.

Parameters:
cl - the class
Returns:
a list of Link