kaapo.project
Class Element
java.lang.Object
kaapo.Observable
kaapo.project.ProjectComponent
kaapo.project.DiagramComponent
kaapo.project.Element
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- Actor, DataBase, DataStore, Process, Text, UseCase
public abstract class Element
- extends DiagramComponent
Abstract base class for elements. Concrete element
types inherit from this class.
- See Also:
- Serialized Form
Methods inherited from class kaapo.project.ProjectComponent |
addAttribute, addAttribute, buildAttributePanel, getAttribute, getAttributeMap, getAttributePanel, getSmallIcon, getTypeName, hasAttribute, removeAttribute, setAttribute |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Element
public Element()
getDefaultWidth
public abstract double getDefaultWidth()
- Returns the default width of the element.
Default width is used when creating a new element
instance, for example.
- Returns:
- Default width
getDefaultHeight
public abstract double getDefaultHeight()
- Returns the default height of the element.
Default height is used when creating a new element
instance, for example.
- Returns:
- Default height
isElement
public boolean isElement()
- Description copied from class:
DiagramComponent
- Tell whether the diagram component is an element or a connection.
- Specified by:
isElement
in class DiagramComponent
- Returns:
- True if element, false if connection.
getComponentType
public DiagramComponent.ComponentType getComponentType()
- Description copied from class:
DiagramComponent
- Get the basic type of the diagram component (element or connection).
- Specified by:
getComponentType
in class DiagramComponent
- Returns:
- Basic type