|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaapo.Observable
kaapo.project.ProjectComponent
kaapo.project.DiagramComponent
kaapo.project.Connection
kaapo.types.diagramcomponents.Association
public class Association
Basic association connection for usecase diagrams.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class kaapo.project.DiagramComponent |
|---|
DiagramComponent.ComponentType |
| Nested classes/interfaces inherited from class kaapo.project.ProjectComponent |
|---|
ProjectComponent.ObservableMessage |
| Field Summary |
|---|
| Fields inherited from class kaapo.project.ProjectComponent |
|---|
attributeMap, attributePanel |
| Constructor Summary | |
|---|---|
Association()
Constructor that calls super(). |
|
| Method Summary | |
|---|---|
protected DCGraphics |
buildDCGraphics(DiagramComponentWrapper wrapper,
ProjectManager projectManager)
Build a new graphical representation of the element as DCGraphics. |
boolean |
canMove(DiagramComponentWrapper wrapper)
Returns true if the connection is free at both ends, false if it is connected at either. |
boolean |
canResize(DiagramComponentWrapper wrapper)
Tell whether the element can be resized by user. |
boolean |
getIsDirect()
Tell whether the connection goes directly from end point to start point or has multiple segments. |
ImageIcon |
getLargeIcon()
Returns the icon representation of the association connection. |
ImageIcon |
getSmallIcon()
Returns a 16*16 icon representing the project component type. |
String |
getTypeName()
Returns the name of the connection type. |
| Methods inherited from class kaapo.project.Connection |
|---|
getComponentType, isElement |
| Methods inherited from class kaapo.project.ProjectComponent |
|---|
addAttribute, addAttribute, buildAttributePanel, 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 |
|---|
public Association()
| Method Detail |
|---|
protected DCGraphics buildDCGraphics(DiagramComponentWrapper wrapper,
ProjectManager projectManager)
DiagramComponent
buildDCGraphics in class DiagramComponentwrapper - The wrapper containing the attributes of the element
the differ between diagrams.projectManager - Project manager
DiagramComponent.buildDCGraphics(kaapo.project.DiagramComponentWrapper, kaapo.projectmanager.ProjectManager)public String getTypeName()
getTypeName in class ProjectComponentpublic ImageIcon getLargeIcon()
getLargeIcon in class DiagramComponentDiagramComponent.getLargeIcon()public boolean canResize(DiagramComponentWrapper wrapper)
DiagramComponent
canResize in class DiagramComponentwrapper - The wrapper in question. The wrapper is given as
parameter because it may depend on the wrapper whether the
component can be resized.
public boolean canMove(DiagramComponentWrapper wrapper)
canMove in class DiagramComponentwrapper - The wrapper in question. The wrapper is given as
parameter because it may depend on the wrapper whether the
component can be moved.
DiagramComponent.canMove(kaapo.project.DiagramComponentWrapper)public ImageIcon getSmallIcon()
ProjectComponent
getSmallIcon in class ProjectComponentProjectComponent.getSmallIcon()public boolean getIsDirect()
Connection
getIsDirect in class ConnectionConnection.getIsDirect()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||