|
|||||||||
| 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.Element
kaapo.types.diagramcomponents.DataBase
public class DataBase
| 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 | |
|---|---|
DataBase()
|
|
| Method Summary | |
|---|---|
protected DCGraphics |
buildDCGraphics(DiagramComponentWrapper wrapper,
ProjectManager pm)
Build a new graphical representation of the element as DCGraphics. |
boolean |
canMove(DiagramComponentWrapper wrapper)
Tell whether the element can be moved by user. |
boolean |
canResize(DiagramComponentWrapper wrapper)
Tell whether the element can be resized by user. |
double |
getDefaultHeight()
Returns the default height of the element. |
double |
getDefaultWidth()
Returns the default width of the element. |
ImageIcon |
getLargeIcon()
Returns a 24*24 pixel icon of the diagram component 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.Element |
|---|
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 DataBase()
| Method Detail |
|---|
protected DCGraphics buildDCGraphics(DiagramComponentWrapper wrapper,
ProjectManager pm)
DiagramComponent
buildDCGraphics in class DiagramComponentwrapper - The wrapper containing the attributes of the element
the differ between diagrams.pm - Project manager
public ImageIcon getLargeIcon()
DiagramComponent
getLargeIcon in class DiagramComponentpublic 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)
DiagramComponent
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.
public double getDefaultWidth()
Element
getDefaultWidth in class Elementpublic double getDefaultHeight()
Element
getDefaultHeight in class Elementpublic ImageIcon getSmallIcon()
ProjectComponent
getSmallIcon in class ProjectComponentpublic String getTypeName()
ProjectComponent
getTypeName in class ProjectComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||