|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.uml.reveng.DiagramInterface
Instances of this class interface the current Class 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.
Field Summary | |
private ArgoDiagram |
currentDiagram
The current diagram for the isInDiagram method. |
private org.tigris.gef.base.Editor |
currentEditor
|
private ClassDiagramGraphModel |
currentGM
The current GraphModel of the current classdiagram. |
private org.tigris.gef.base.LayerPerspective |
currentLayer
The current Layer of the current classdiagram. |
private static Logger |
LOG
|
private Vector |
modifiedDiagrams
To know what diagrams we have to layout after the import, we store them in this Vector. |
Constructor Summary | |
DiagramInterface(org.tigris.gef.base.Editor editor)
Creates a new DiagramInterface. |
Method Summary | |
void |
addClass(Object newClass,
boolean minimise)
Add a class to the current diagram. |
void |
addClassDiagram(Object ns,
String name)
Add a new class diagram for a package to the project. |
void |
addInterface(Object newInterface,
boolean minimise)
Add a interface to the current diagram. |
void |
addPackage(Object newPackage)
Add a package to the current diagram. |
void |
createOrSelectClassDiagram(Object currentPackage,
String currentPackageName)
Creates new class diagram for package or selects existing one. |
void |
createRootClassDiagram()
Creates class diagram under the root. |
ProjectMember |
findDiagramMemberByUniqueName(Project project,
String name)
|
private String |
getDiagramName(String packageName)
Create a diagram name from a package name |
(package private) org.tigris.gef.base.Editor |
getEditor()
Get the current editor. |
Vector |
getModifiedDiagrams()
Get the list of modified diagrams. |
boolean |
isDiagramInProject(String name)
Check if this diagram already exists in the project. |
boolean |
isInDiagram(Object p)
Check if a given package has a representation in the current diagram. |
(package private) void |
markDiagramAsModified(Object diagram)
Mark a diagram as modified, so we can layout it, after the import is complete. |
(package private) void |
resetModifiedDiagrams()
Reset the list of modified diagrams. |
void |
selectClassDiagram(Object p,
String name)
Select or create a class diagram for a package. |
void |
setCurrentDiagram(ArgoDiagram diagram)
selects a diagram without affecting the gui. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final Logger LOG
private org.tigris.gef.base.Editor currentEditor
private Vector modifiedDiagrams
private ClassDiagramGraphModel currentGM
private org.tigris.gef.base.LayerPerspective currentLayer
private ArgoDiagram currentDiagram
Constructor Detail |
public DiagramInterface(org.tigris.gef.base.Editor editor)
editor
- The editor to operate on.Method Detail |
org.tigris.gef.base.Editor getEditor()
void markDiagramAsModified(Object diagram)
If the diagram is not already marked, add it to the list.
diagram
- The diagram to mark as modified.public Vector getModifiedDiagrams()
void resetModifiedDiagrams()
public void addPackage(Object newPackage)
newPackage
- The package to add.public boolean isInDiagram(Object p)
p
- The package to lookup in the current diagram.
public boolean isDiagramInProject(String name)
name
- diagram name.
private String getDiagramName(String packageName)
packageName
- The package name.
public void selectClassDiagram(Object p, String name)
p
- The package.name
- The fully qualified name of this package.public void addClassDiagram(Object ns, String name)
ns
- 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(Object newClass, boolean minimise)
newClass
- The new class to add to the editor.minimise
- minimise the class fig by hiding compartiments
(of attributes and operations)public void addInterface(Object newInterface, boolean minimise)
newInterface
- The interface to add.minimise
- minimise the class fig by hiding compartiments
(of attributes and operations)public void createOrSelectClassDiagram(Object currentPackage, 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 void createRootClassDiagram()
public void setCurrentDiagram(ArgoDiagram diagram)
diagram
- the diagrampublic ProjectMember findDiagramMemberByUniqueName(Project project, String name)
name
- the name of the member to be foundproject
- the project
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |