kaapo.project
Class Connection

java.lang.Object
  extended by kaapo.Observable
      extended by kaapo.project.ProjectComponent
          extended by kaapo.project.DiagramComponent
              extended by 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

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
Connection()
           
 
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.DiagramComponent
buildDCGraphics, canMove, canResize, getLargeIcon
 
Methods inherited from class kaapo.project.ProjectComponent
addAttribute, addAttribute, buildAttributePanel, getAttribute, getAttributeMap, getAttributePanel, getSmallIcon, getTypeName, 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

Connection

public Connection()
Method Detail

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