|
|||||||||
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
public abstract class DiagramComponent
Base class for elements and connections. Concrete elements and connections don't inherit from this class, but the subclasses of this class.
Nested Class Summary | |
---|---|
static class |
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 | |
---|---|
DiagramComponent()
|
Method Summary | |
---|---|
protected abstract DCGraphics |
buildDCGraphics(DiagramComponentWrapper wrapper,
ProjectManager pm)
Build a new graphical representation of the element as DCGraphics. |
abstract boolean |
canMove(DiagramComponentWrapper wrapper)
Tell whether the element can be moved by user. |
abstract boolean |
canResize(DiagramComponentWrapper wrapper)
Tell whether the element can be resized by user. |
abstract DiagramComponent.ComponentType |
getComponentType()
Get the basic type of the diagram component (element or connection). |
abstract ImageIcon |
getLargeIcon()
Returns a 24*24 pixel icon of the diagram component type. |
abstract boolean |
isElement()
Tell whether the diagram component is an element or a connection. |
Methods inherited from class kaapo.project.ProjectComponent |
---|
addAttribute, addAttribute, buildAttributePanel, getAttribute, getAttributeMap, getAttributePanel, getSmallIcon, getTypeName, 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 DiagramComponent()
Method Detail |
---|
public abstract ImageIcon getLargeIcon()
public abstract boolean canResize(DiagramComponentWrapper wrapper)
wrapper
- The wrapper in question. The wrapper is given as
parameter because it may depend on the wrapper whether the
component can be resized.
public abstract boolean canMove(DiagramComponentWrapper wrapper)
wrapper
- The wrapper in question. The wrapper is given as
parameter because it may depend on the wrapper whether the
component can be moved.
public abstract boolean isElement()
public abstract DiagramComponent.ComponentType getComponentType()
protected abstract DCGraphics buildDCGraphics(DiagramComponentWrapper wrapper, ProjectManager pm)
wrapper
- The wrapper containing the attributes of the element
the differ between diagrams.pm
- Project manager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |