|
|||||||||
| 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.Text
public class Text
Generic text element that may be added to any diagram. Text may be multi-line. The graphic representation is a text area with no visible boundary.
| 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 | |
|---|---|
protected static String |
ATTRIBUTE_NAME
|
| Fields inherited from class kaapo.project.ProjectComponent |
|---|
attributeMap, attributePanel |
| Constructor Summary | |
|---|---|
Text()
|
|
| Method Summary | |
|---|---|
protected AttributePanel |
buildAttributePanel(ProjectManager pm)
Build a new attribute panel. |
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, 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 |
| Field Detail |
|---|
protected static final String ATTRIBUTE_NAME
| Constructor Detail |
|---|
public Text()
| Method Detail |
|---|
public double getDefaultWidth()
Element
getDefaultWidth in class Elementpublic double getDefaultHeight()
Element
getDefaultHeight in class Elementpublic 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.
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 getSmallIcon()
ProjectComponent
getSmallIcon in class ProjectComponentpublic String getTypeName()
ProjectComponent
getTypeName in class ProjectComponentprotected AttributePanel buildAttributePanel(ProjectManager pm)
ProjectComponent
buildAttributePanel in class ProjectComponentpm - Project Manager
GenericAttributePanel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||