cb.petal
Class Diagram
java.lang.Object
|
+--cb.petal.PetalObject
|
+--cb.petal.QuidObject
|
+--cb.petal.Diagram
- All Implemented Interfaces:
- java.lang.Cloneable, Named, PetalNode, java.io.Serializable
- Direct Known Subclasses:
- ActivityDiagram, ClassDiagram, InteractionDiagram, ObjectDiagram, UseCaseDiagram
- public abstract class Diagram
- extends QuidObject
- implements Named
Super class for diagrams
- Version:
- $Id: Diagram.java,v 1.4 2001/07/19 12:40:40 dahm Exp $
- Author:
- M. Dahm
- See Also:
- Serialized Form
Constructor Summary |
protected |
Diagram(PetalNode parent,
java.lang.String name,
java.util.Collection params)
|
protected |
Diagram(java.lang.String name)
|
Methods inherited from class cb.petal.PetalObject |
accept, addProperty, addToList, clone, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, equals, getChildCount, getKind, getLongestName, getName, getNames, getNoProperties, getParameterList, getParent, getProperties, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInteger, getPropertyAsString, getPropertyList, getPropertyName, getPropertyTuples, getQualifiedName, getRoot, indexOf, moveProperty, removeFromList, removeProperty, removeProperty, setName, setParameterList, setParent, setProperty, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Diagram
protected Diagram(PetalNode parent,
java.lang.String name,
java.util.Collection params)
Diagram
protected Diagram(java.lang.String name)
setNameParameter
public void setNameParameter(java.lang.String o)
- Specified by:
setNameParameter
in interface Named
getNameParameter
public java.lang.String getNameParameter()
- Specified by:
getNameParameter
in interface Named
getTitle
public java.lang.String getTitle()
setTitle
public void setTitle(java.lang.String o)
getZoom
public int getZoom()
setZoom
public void setZoom(int o)
getMaxHeight
public int getMaxHeight()
setMaxHeight
public void setMaxHeight(int o)
getMaxWidth
public int getMaxWidth()
setMaxWidth
public void setMaxWidth(int o)
getOriginX
public int getOriginX()
setOriginX
public void setOriginX(int o)
getOriginY
public int getOriginY()
setOriginY
public void setOriginY(int o)
getItems
public List getItems()
setItems
public void setItems(List o)
getX
protected int getX()
- Returns:
- next x coordinate for view object
getY
protected int getY()
- Returns:
- next y coordinate for view object
addToViewsList
protected int addToViewsList(View view)
- Returns:
- index in views list
getClassViewSize
protected java.awt.Dimension getClassViewSize(ClassView view)
- Calculate size for classview by applying some heuristics
addToView
public void addToView(ClassView view)
- Adds a class view to the presentation view, sets location and tags
and calls init().
addRelationship
protected void addRelationship(RelationshipView view,
Relationship rel)
searchView
protected abstract View searchView(java.lang.String qual_name)
searchView
protected View searchView(java.lang.String qual_name,
java.util.HashSet classes)
addToView
public void addToView(AssociationViewNew view)
- Add a association view to the presentation view, set location and tags
and call init(). Automatically adds AssocAttachView, if the association has
an association class.