org.argouml.uml.diagram
Class UmlDiagramRenderer

java.lang.Object
  extended byorg.argouml.uml.diagram.UmlDiagramRenderer
All Implemented Interfaces:
org.tigris.gef.graph.GraphEdgeRenderer, org.tigris.gef.graph.GraphNodeRenderer, Serializable
Direct Known Subclasses:
ClassDiagramRenderer, CollabDiagramRenderer, DeploymentDiagramRenderer, SequenceDiagramRenderer, StateDiagramRenderer, UseCaseDiagramRenderer

public abstract class UmlDiagramRenderer
extends Object
implements org.tigris.gef.graph.GraphNodeRenderer, org.tigris.gef.graph.GraphEdgeRenderer

Factory methods to create Figs based an model elements with supplementary data provided by a map of name value pairs.

Provides getFigNodeFor(Object, Map) to implement the GraphNodeRenderer interface and getFigEdgeFor(Object, Map) to implement the GraphEdgeRenderer interface.

See Also:
Serialized Form

Constructor Summary
UmlDiagramRenderer()
           
 
Method Summary
 org.tigris.gef.presentation.FigEdge getFigEdgeFor(Object edge, Map styleAttributes)
          Return a Fig that can be used to represent the given edge.
 org.tigris.gef.presentation.FigNode getFigNodeFor(Object node, Map styleAttributes)
          Return a Fig that can be used to represent the given node.
private  void setStyleAttributes(org.tigris.gef.presentation.Fig fig, Map attributeMap)
          Set the fig style according to attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.tigris.gef.graph.GraphNodeRenderer
getFigNodeFor
 
Methods inherited from interface org.tigris.gef.graph.GraphEdgeRenderer
getFigEdgeFor
 

Constructor Detail

UmlDiagramRenderer

public UmlDiagramRenderer()
Method Detail

getFigNodeFor

public org.tigris.gef.presentation.FigNode getFigNodeFor(Object node,
                                                         Map styleAttributes)
Return a Fig that can be used to represent the given node.

Specified by:
getFigNodeFor in interface org.tigris.gef.graph.GraphNodeRenderer
See Also:
GraphNodeRenderer.getFigNodeFor( org.tigris.gef.graph.GraphModel, org.tigris.gef.base.Layer, java.lang.Object, Map)

setStyleAttributes

private void setStyleAttributes(org.tigris.gef.presentation.Fig fig,
                                Map attributeMap)
Set the fig style according to attributes.

Parameters:
fig - the fig to style.
attributeMap - a map of name value pairs

getFigEdgeFor

public org.tigris.gef.presentation.FigEdge getFigEdgeFor(Object edge,
                                                         Map styleAttributes)
Return a Fig that can be used to represent the given edge.

Specified by:
getFigEdgeFor in interface org.tigris.gef.graph.GraphEdgeRenderer
See Also:
org.tigris.gef.graph.GraphEdgeRenderer#getFigEdgeFor( org.tigris.gef.graph.GraphModel, org.tigris.gef.base.Layer, java.lang.Object)


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook