kaapo.project
Class Connection
java.lang.Object
kaapo.Observable
kaapo.project.ProjectComponent
kaapo.project.DiagramComponent
kaapo.project.Connection
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- Association, DataFlow, Dependency, Generalization
public abstract class Connection
- extends DiagramComponent
Abstract base class for connections. Concrete connection
types inherit from this class.
- See Also:
- Serialized Form
Method Summary |
DiagramComponent.ComponentType |
getComponentType()
Get the basic type of the diagram component (element or connection). |
boolean |
getIsDirect()
Tell whether the connection goes directly from end
point to start point or has multiple segments. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Connection
public Connection()
getIsDirect
public boolean getIsDirect()
- Tell whether the connection goes directly from end
point to start point or has multiple segments.
- Returns:
- True if connection is direct, false if
connection has multiple segments.
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