Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

org.argouml.uml.diagram.static_structure

Class ClassDiagramConnector


public class ClassDiagramConnector

A facade to UML class diagrams that is used to add and modify class diagrams.


 Association Summary
public ClassDiagramConnector  classDiagramConnector
 
arrow_up
 

 Constructor Summary
protected   ClassDiagramConnector()
 
arrow_up
 

 Method Summary
public void   addClass( UmlClass theClass , int x , int y , boolean showPackage )
Adds a presentation for a class to the current diagram. 
public void   addClass( UmlClass theClass , int x , int y )
 
public void   addClass( UmlClass newClass )
Adds a representation for the class to the current diagram. 
public void   addInterface( Interface theInterface , int x , int y )
Adds a presentation for a interface to the current diagram See addClass for for information about the parameters 
public void   addInterface( Interface newInterface )
Add a interface to the current diagram. 
public void   addPackage( UmlPackage newPackage )
Add a package to the current diagram. 
public void   createClassDiagram( UmlPackage target , String diagramName )
Creates a new class diagram for a package, adds it to the project, and makes it the current diagram. 
protected String   getDiagramNameSuffix()
 
public static ClassDiagramConnector   getInstance()
 
public boolean   selectClassDiagram(String diagramName )
 
public void   selectOrCreateClassDiagram( UmlPackage pack , String diagramName )
Selects a class diagram by diagramName and makes it the current diagram, and returns true if the diagram could be selected, or false if no such diagram could be found  
arrow_up
 

 

 Association Detail

classDiagramConnector

public ClassDiagramConnector classDiagramConnector

 
arrow_up
 

 Constructor Detail

ClassDiagramConnector

protected ClassDiagramConnector ClassDiagramConnector()

 
arrow_up
 

 Method Detail

addClass

public void addClass( UmlClass theClass , int x , int y , boolean showPackage )

Adds a presentation for a class to the current diagram. You may specify x and y coordinates, but you cannot specify width and height - they are automatically calculated from the number and lenght of the contained members. This method also allows you to specify wether the presentation should display the classes package.
Parameters:
theClass - The class that will get a presentation in the diagram
x - The x-position for the class representation
y - The x-position for the class representation
showPackage - defines wether the class representation should display its package name
 
arrow_up
 
 

addClass

public void addClass( UmlClass theClass , int x , int y )

 
arrow_up
 
 

addClass

public void addClass( UmlClass newClass )

Adds a representation for the class to the current diagram. No coordinates are supplied, you need to call XXX on the diagram to perform autolayouting
Parameters:
newClass - The class for which we want a new presentation
 
arrow_up
 
 

addInterface

public void addInterface( Interface theInterface , int x , int y )

Adds a presentation for a interface to the current diagram See addClass for for information about the parameters 
arrow_up
 
 

addInterface

public void addInterface( Interface newInterface )

Add a interface to the current diagram.
Parameters:
newInterface - The interface to add.
 
arrow_up
 
 

addPackage

public void addPackage( UmlPackage newPackage )

Add a package to the current diagram. If the package already has a representation in the current diagram, it is not(!) added.
Parameters:
newPackage - The package to add.
 
arrow_up
 
 

createClassDiagram

public void createClassDiagram( UmlPackage target , String diagramName )

Creates a new class diagram for a package, adds it to the project, and makes it the current diagram.
Parameters:
target - The package to attach the diagram to.
diagramName - The diagramName of the diagram
 
arrow_up
 
 

getDiagramNameSuffix

protected String getDiagramNameSuffix()

Returns:
the default suffix for class diagrams
 
arrow_up
 
 

getInstance

public static ClassDiagramConnector getInstance()

 
arrow_up
 
 

selectClassDiagram

public boolean selectClassDiagram(String diagramName )

 
arrow_up
 
 

selectOrCreateClassDiagram

public void selectOrCreateClassDiagram( UmlPackage pack , String diagramName )

Selects a class diagram by diagramName and makes it the current diagram, and returns true if the diagram could be selected, or false if no such diagram could be found
Parameters:
diagramName - The diagramName of the diagram we want to select
Returns:
true, if the diagram could be selected, false if not
 
arrow_up
 

Created  2003 - 3 - 4

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2001 Gentleware AG, Vogt-Kölln-Str.30, 22527 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.