org.argouml.uml.diagram.static_structure.ui
Class ClassDiagramRenderer
java.lang.Object
org.argouml.uml.diagram.UmlDiagramRenderer
org.argouml.uml.diagram.static_structure.ui.ClassDiagramRenderer
- All Implemented Interfaces:
- org.tigris.gef.graph.GraphEdgeRenderer, org.tigris.gef.graph.GraphNodeRenderer, Serializable
- public class ClassDiagramRenderer
- extends UmlDiagramRenderer
This class defines a renderer object for UML Class Diagrams. In a
Class Diagram the following UML objects are displayed with the
following Figs:
UML Object --- Fig
---------------------------------------
Class --- FigClass
Interface --- FigInterface
Instance --- FigInstance
Model --- FigModel
Subsystem --- FigSubsystem
Package --- FigPackage
Comment --- FigComment
(CommentEdge) --- FigEdgeNote
Generalization --- FigGeneralization
Realization --- FigRealization
Permission --- FigPermission
Usage --- FigUsage
Dependency --- FigDependency
Association --- FigAssociation
AssociationClass --- FigAssociationClass
Dependency --- FigDependency
Link --- FigLink
- See Also:
- Serialized Form
Method Summary |
org.tigris.gef.presentation.FigEdge |
getFigEdgeFor(org.tigris.gef.graph.GraphModel gm,
org.tigris.gef.base.Layer lay,
Object edge,
Map styleAttribute)
Return a Fig that can be used to represent the given edge. |
org.tigris.gef.presentation.FigNode |
getFigNodeFor(org.tigris.gef.graph.GraphModel gm,
org.tigris.gef.base.Layer lay,
Object node,
Map styleAttributes)
|
private void |
setDestPort(org.tigris.gef.presentation.FigEdge edge,
org.tigris.gef.presentation.FigNode dest)
|
private void |
setSourcePort(org.tigris.gef.presentation.FigEdge edge,
org.tigris.gef.presentation.FigNode source)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final Logger LOG
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
ClassDiagramRenderer
public ClassDiagramRenderer()
getFigNodeFor
public org.tigris.gef.presentation.FigNode getFigNodeFor(org.tigris.gef.graph.GraphModel gm,
org.tigris.gef.base.Layer lay,
Object node,
Map styleAttributes)
- See Also:
Return a Fig that can be used to represent the given node.
getFigEdgeFor
public org.tigris.gef.presentation.FigEdge getFigEdgeFor(org.tigris.gef.graph.GraphModel gm,
org.tigris.gef.base.Layer lay,
Object edge,
Map styleAttribute)
- Return a Fig that can be used to represent the given edge.
Throws IllegalArgumentException if the edge is not of an expected type.
Throws IllegalStateException if the edge generated has no source
or dest port.
- See Also:
org.tigris.gef.graph.GraphEdgeRenderer#getFigEdgeFor(
org.tigris.gef.graph.GraphModel, org.tigris.gef.base.Layer,
java.lang.Object)
setSourcePort
private void setSourcePort(org.tigris.gef.presentation.FigEdge edge,
org.tigris.gef.presentation.FigNode source)
setDestPort
private void setDestPort(org.tigris.gef.presentation.FigEdge edge,
org.tigris.gef.presentation.FigNode dest)