|
|||||||||
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 Element
public double getDefaultHeight()
Element
getDefaultHeight
in class Element
public ImageIcon getLargeIcon()
DiagramComponent
getLargeIcon
in class DiagramComponent
public boolean canResize(DiagramComponentWrapper wrapper)
DiagramComponent
canResize
in class DiagramComponent
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 boolean canMove(DiagramComponentWrapper wrapper)
DiagramComponent
canMove
in class DiagramComponent
wrapper
- 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 DiagramComponent
wrapper
- The wrapper containing the attributes of the element
the differ between diagrams.pm
- Project manager
public ImageIcon getSmallIcon()
ProjectComponent
getSmallIcon
in class ProjectComponent
public String getTypeName()
ProjectComponent
getTypeName
in class ProjectComponent
protected AttributePanel buildAttributePanel(ProjectManager pm)
ProjectComponent
buildAttributePanel
in class ProjectComponent
pm
- Project Manager
GenericAttributePanel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |