kaapo.types.diagrams
Class UseCaseDiagram

java.lang.Object
  extended by kaapo.Observable
      extended by kaapo.project.ProjectComponent
          extended by kaapo.project.Diagram
              extended by kaapo.types.diagrams.UseCaseDiagram
All Implemented Interfaces:
Serializable

public class UseCaseDiagram
extends Diagram

Author:
tkallioi
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class kaapo.project.Diagram
Diagram.ObservableMessage
 
Field Summary
 
Fields inherited from class kaapo.project.Diagram
dcwList, name, panel, pm
 
Fields inherited from class kaapo.project.ProjectComponent
attributeMap, attributePanel
 
Constructor Summary
UseCaseDiagram()
           
UseCaseDiagram(String name)
           
 
Method Summary
protected  AttributePanel buildAttributePanel(ProjectManager pm)
          Build a new attribute panel.
 List<Class> getLegalDiagramConnections()
          Returns the list of connection classes that may legally be added to this diagram type.
 List<Class> getLegalDiagramElements()
          Returns the list of element classes that may legally be added to this diagram type.
 ImageIcon getSmallIcon()
          Returns a 16*16 icon representing the project component type.
 String getTypeName()
          Returns the component type name formatted in a human-friendly manner.
 
Methods inherited from class kaapo.project.Diagram
addComponent, containsDiagramComponent, getDiagramComponentWrappers, getDiagramPanel, getName, removeComponent, replaceDiagramComponentWrappers, setName
 
Methods inherited from class kaapo.project.ProjectComponent
addAttribute, addAttribute, getAttribute, getAttributeMap, getAttributePanel, hasAttribute, removeAttribute, setAttribute
 
Methods inherited from class kaapo.Observable
addObserver, notifyObservers, notifyObservers, removeAllObservers, removeObserver, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UseCaseDiagram

public UseCaseDiagram()

UseCaseDiagram

public UseCaseDiagram(String name)
Method Detail

getLegalDiagramElements

public List<Class> getLegalDiagramElements()
Description copied from class: Diagram
Returns the list of element classes that may legally be added to this diagram type.

Specified by:
getLegalDiagramElements in class Diagram
Returns:
List of Class objects.

getLegalDiagramConnections

public List<Class> getLegalDiagramConnections()
Description copied from class: Diagram
Returns the list of connection classes that may legally be added to this diagram type.

Specified by:
getLegalDiagramConnections in class Diagram
Returns:
List of Class objects.

getTypeName

public String getTypeName()
Description copied from class: ProjectComponent
Returns the component type name formatted in a human-friendly manner. For example, a UML class diagram type should return "Class Diagram" or "UML Class Diagram" or similar, not "classdiagram" or "uml_class_diagram".

Specified by:
getTypeName in class ProjectComponent

getSmallIcon

public ImageIcon getSmallIcon()
Description copied from class: ProjectComponent
Returns a 16*16 icon representing the project component type. The icon is used by GUI in the diagram tree.

Specified by:
getSmallIcon in class ProjectComponent

buildAttributePanel

protected AttributePanel buildAttributePanel(ProjectManager pm)
Description copied from class: ProjectComponent
Build a new attribute panel. This method must build a new instance on every call. The default implementation returns a GenericAttributePanel instance. If you want to make your own attribute panel, override this method.

Overrides:
buildAttributePanel in class ProjectComponent
Parameters:
pm - Project Manager
Returns:
A new attribute panel
See Also:
GenericAttributePanel