|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.uml.diagram.DiagramFactory
public final class DiagramFactory
Provide a factory method to create different UML diagrams.
| Nested Class Summary | |
|---|---|
static class |
DiagramFactory.DiagramType
Enumeration containing all the different types of UML diagrams. |
| Method Summary | |
|---|---|
ArgoDiagram |
create(DiagramFactory.DiagramType type,
java.lang.Object owner,
DiagramSettings settings)
Factory method to create a new instance of an ArgoDiagram. |
ArgoDiagram |
createDefaultDiagram(java.lang.Object namespace)
Factory method to create a new default instance of an ArgoDiagram. |
ArgoDiagram |
createDiagram(DiagramFactory.DiagramType type,
java.lang.Object namespace,
java.lang.Object machine)
Deprecated. for 0.27.3 by tfmorris. Use create(DiagramType, Object, DiagramSettings). The 'owner'
argument should be the 'machine' for a state diagram or activity diagram
(which can figure out the correct namespace from that) and the
'namespace' for all others. |
static DiagramFactory |
getInstance()
|
void |
registerDiagramFactory(DiagramFactory.DiagramType type,
DiagramFactoryInterface2 factory)
Register a specific factory class to create diagram instances for a specific diagram type |
ArgoDiagram |
removeDiagram(ArgoDiagram diagram)
Factory method to remove a diagram. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DiagramFactory getInstance()
public ArgoDiagram createDefaultDiagram(java.lang.Object namespace)
namespace - The namespace that (in)directly
owns the elements on the diagram
@Deprecated
public ArgoDiagram createDiagram(DiagramFactory.DiagramType type,
java.lang.Object namespace,
java.lang.Object machine)
create(DiagramType, Object, DiagramSettings). The 'owner'
argument should be the 'machine' for a state diagram or activity diagram
(which can figure out the correct namespace from that) and the
'namespace' for all others.
type - The class of rendering diagram to createnamespace - The namespace that (in)directly
owns the elements on the diagrammachine - The StateMachine for the diagram
(only: statemachine - activitygraph)
public ArgoDiagram create(DiagramFactory.DiagramType type,
java.lang.Object owner,
DiagramSettings settings)
type - The class of rendering diagram to createowner - the owning UML element. For most diagrams this is a
namespace, but for the state diagram it is the state machine
and for the activity diagram it is the context.settings - default rendering settings for the diagram
public ArgoDiagram removeDiagram(ArgoDiagram diagram)
diagram - the diagram
public void registerDiagramFactory(DiagramFactory.DiagramType type,
DiagramFactoryInterface2 factory)
type - the diagram typefactory - the factory instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |