|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.uml.reveng.DiagramInterface
Instances of this class interface the current diagram.
This class is used by the import mechanism to create packages, interfaces and classes within the diagrams. It is also used to find the correct diagram to work in.
Constructor Summary | |
DiagramInterface(org.tigris.gef.base.Editor editor)
Creates a new DiagramInterface |
Method Summary | |
void |
addClass(java.lang.Object newClass)
Add a class to the current diagram. |
void |
addClassDiagram(java.lang.Object ns,
java.lang.String name)
Add a new class diagram for a package to the project. |
void |
addInterface(java.lang.Object newInterface)
Add a interface to the current diagram. |
void |
addPackage(java.lang.Object newPackage)
Add a package to the current diagram. |
static void |
createOrSelectClassDiagram(java.lang.Object currentPackage,
java.lang.String currentPackageName)
Creates new class diagram for package or selects existing one. |
static void |
createRootClassDiagram()
Creates class diagram under the root. |
java.util.Vector |
getModifiedDiagrams()
Get the list of modified diagrams. |
boolean |
isDiagramInProject(java.lang.String name)
Check if this diagram already exists in the project. |
boolean |
isInDiagram(java.lang.Object p)
Check if a given package has a representation in the current diagram. |
void |
selectClassDiagram(java.lang.Object p,
java.lang.String name)
Select or create a class diagram for a package. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DiagramInterface(org.tigris.gef.base.Editor editor)
editor
- The editor to operate on.Method Detail |
public java.util.Vector getModifiedDiagrams()
public void addPackage(java.lang.Object newPackage)
newPackage
- The package to add.public boolean isInDiagram(java.lang.Object p)
p
- The package to lookup in the current diagram.public boolean isDiagramInProject(java.lang.String name)
diagram
- namepublic void selectClassDiagram(java.lang.Object p, java.lang.String name)
p
- The package.name
- The fully qualified name of this package.public void addClassDiagram(java.lang.Object ns, java.lang.String name)
target
- The package to attach the diagram to.name
- The fully qualified name of the package, which is
used to generate the diagram name from.public void addClass(java.lang.Object newClass)
newClass
- The new class to add to the editor.public void addInterface(java.lang.Object newInterface)
newInterface
- The interface to add.public static void createOrSelectClassDiagram(java.lang.Object currentPackage, java.lang.String currentPackageName)
currentPackage
- The package to attach the diagram to.currentPackageName
- The fully qualified name of the package, which is
used to generate the diagram name from.public static void createRootClassDiagram()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML (c) 1996-2002 |