com.change_vision.jude.api.inf.presentation
Interface ILinkPresentation

com.change_vision.jude.api.inf.presentation.ILinkPresentation
All Superinterfaces:
IEntity, IHyperlinkOwner, IPresentation
All Implemented Interfaces:
IEntity, IHyperlinkOwner, IPresentation

public abstract ILinkPresentation
extends IPresentation

Interface for Link Presentation.


Method Summary
abstract  Point2D[] getAllPoints()
          Get points with the internal connection points.
abstract  Point2D[] getPoints()
          Get points.
abstract  INodePresentation getSource()
          Get Source.
abstract  IPresentation getSourceEnd()
          Get Source.
abstract  INodePresentation getTarget()
          Get Target.
abstract  IPresentation getTargetEnd()
          Get Target.
abstract  void setAllPoints(Point2D[] points)
          Set Points with the connection points in the rectangles.
abstract  void setPoints(Point2D[] points)
          Deprecated.  
 
Methods inherited from class com.change_vision.jude.api.inf.presentation.IPresentation
getDepth, getDiagram, getID, getLabel, getModel, getProperties, getProperty, getType, setLabel, setProperties, setProperty
 
Methods inherited from class com.change_vision.jude.api.inf.model.IHyperlinkOwner
createElementHyperlink, createFileHyperlink, createURLHyperlink, deleteHyperlink, getHyperlinks
 

Method Detail

getSourceEnd

abstract IPresentation getSourceEnd()
Get Source.

Returns:
Source

getTargetEnd

abstract IPresentation getTargetEnd()
Get Target.

Returns:
Target

getSource

abstract INodePresentation getSource()
Get Source.

Returns:
Source. Null if the source is not INodePresentation.
See Also:
getSourceEnd()

getTarget

abstract INodePresentation getTarget()
Get Target.

Returns:
Target. Null if the target is not INodePresentation.
See Also:
getTargetEnd()

getPoints

abstract Point2D[] getPoints()
Get points.

Returns:
the array of points. Both end points are included.
See Also:
getAllPoints()

setPoints

abstract void setPoints(Point2D[] points)
Deprecated. 

Set Points.

Parameters:
points - The array of points (Point2D.Double). It should be more than 2 points because the end points are included.
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys:
       ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community.
       PARAMETER_ERROR_KEY - if a parameter is not set properly.
       if the label is not edited for a presentation
       in Class/Object Diagram, UseCase Diagram, StateMachine Diagram and ER Diagram.
       if the specified points are invalid.
       INVALID_MULTIPLICITY_KEY - if the multiplicity is invalid.
       BAD_TRANSACTION_KEY - Bad Transaction.
       HAS_EXCEPTION_KEY - if an exception has occurred.
Values:
       Error messages for exceptions.
See Also:
#setAllPoints(Point2D[])

getAllPoints

abstract Point2D[] getAllPoints()
Get points with the internal connection points.

Returns:
the array of points. The connection points are included.

setAllPoints

abstract void setAllPoints(Point2D[] points)
Set Points with the connection points in the rectangles.

Parameters:
points - The array of points. It should be more than 2 points because the connection points are included.
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys:
       ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community.
       PARAMETER_ERROR_KEY - if a parameter is not set properly.
       if the label is not edited for a presentation
       in Class/Object Diagram, UseCase Diagram, StateMachine Diagram and ER Diagram.
       if the specified points are invalid.
       INVALID_MULTIPLICITY_KEY - if the multiplicity is invalid.
       BAD_TRANSACTION_KEY - Bad Transaction.
       HAS_EXCEPTION_KEY - if an exception has occurred.
Values:
       Error messages for exceptions.