org.devaki.nextobjects.workspace.models.graphics
Class AssociationLinkView

java.lang.Object
  extended byorg.devaki.nextobjects.workspace.models.graphics.ObjectView
      extended byorg.devaki.nextobjects.workspace.models.graphics.LineView
          extended byorg.devaki.nextobjects.workspace.models.graphics.AssociationLinkView
All Implemented Interfaces:
java.io.Serializable

public class AssociationLinkView
extends LineView
implements java.io.Serializable

This class is responsible for drawing an Association Link in the Merise formalism

Author:
Emmanuel Florent
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.devaki.nextobjects.workspace.models.graphics.LineView
myStyle
 
Fields inherited from class org.devaki.nextobjects.workspace.models.graphics.ObjectView
actionPoint, myObject, selectionPoints
 
Constructor Summary
AssociationLinkView(AssociationLink pAssociationLink)
          Create a new 'AssociationLinkView' object
 
Method Summary
 java.awt.Polygon getSurface()
          Return the surface on which the user can click to select the object
 void paint(java.awt.Graphics g)
          Paint the association link
 void resetSelectionPoint()
          reset selection point Do nothing here.
 void setAssociationPointType(int pAssociationPointType)
          Set the associatioon point location
 void setEntityPointType(int pEntityPointType)
          Set the entity point location
 
Methods inherited from class org.devaki.nextobjects.workspace.models.graphics.LineView
computeBestPoints, computeBestPoints, getChildClassPoint, getForeignPosition, getLocalPosition, getLocation, getParentClassPoint, getSelectionPoint, getSize, getStyle, renderSelected, setChildClassPoint, setForeignPosition, setLocalPosition, setLocation, setParentClassPoint, setSize, setStyle
 
Methods inherited from class org.devaki.nextobjects.workspace.models.graphics.ObjectView
getBaseObject, getSelectionPoint, getSelectionPoints, resetActionLocation, setActionLocation, setBaseObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociationLinkView

public AssociationLinkView(AssociationLink pAssociationLink)
Create a new 'AssociationLinkView' object

Parameters:
pAssociationLink - the contextual link
Method Detail

getSurface

public java.awt.Polygon getSurface()
Return the surface on which the user can click to select the object

Specified by:
getSurface in class LineView
Returns:
the surface as polygon/shape

setEntityPointType

public void setEntityPointType(int pEntityPointType)
Set the entity point location

Parameters:
pEntityPointType - the entity point location

setAssociationPointType

public void setAssociationPointType(int pAssociationPointType)
Set the associatioon point location

Parameters:
pAssociationPointType - the location

paint

public void paint(java.awt.Graphics g)
Paint the association link

Specified by:
paint in class ObjectView
Parameters:
g - graphics context

resetSelectionPoint

public void resetSelectionPoint()
reset selection point Do nothing here.

Specified by:
resetSelectionPoint in class ObjectView


Copyright © 2002-2004 devaki.org. All Rights Reserved.