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

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.InheritanceLinkView
All Implemented Interfaces:
java.io.Serializable

public class InheritanceLinkView
extends LineView

The line-arrow representing an inheritance link.

Author:
Emmanuel Florent
See Also:
Serialized Form

Field Summary
static int size
          Arrowhead length
static double theta
          Arrowhead sharpness
 
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
InheritanceLinkView(InheritanceLink pInheritanceLink)
          Create a new InheritanceLinkView object
 
Method Summary
 SelectionPoint getSelectionPoint(int i)
          Return the Selection Point
 SelectionPoint[] getSelectionPoints()
          Return the Selection Points Array
 java.awt.Polygon getSurface()
          Return the surface on which the user can click to select the object
 void paint(java.awt.Graphics g)
          Paint method
 void resetSelectionPoint()
          Reset the selection points
 void setSelectionPoint(SelectionPoint point, int i)
          Set the Selection Point
 
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, resetActionLocation, setActionLocation, setBaseObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theta

public static final double theta
Arrowhead sharpness


size

public static final int size
Arrowhead length

See Also:
Constant Field Values
Constructor Detail

InheritanceLinkView

public InheritanceLinkView(InheritanceLink pInheritanceLink)
Create a new InheritanceLinkView object

Parameters:
pInheritanceLink - the contextual association links
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

paint

public void paint(java.awt.Graphics g)
Paint method

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

resetSelectionPoint

public void resetSelectionPoint()
Reset the selection points

Specified by:
resetSelectionPoint in class ObjectView

getSelectionPoints

public SelectionPoint[] getSelectionPoints()
Return the Selection Points Array

Overrides:
getSelectionPoints in class ObjectView
Returns:
SelectionPoint[] the selection points array

getSelectionPoint

public SelectionPoint getSelectionPoint(int i)
Return the Selection Point

Overrides:
getSelectionPoint in class ObjectView
Parameters:
i - the index
Returns:
SelectionPoint one of its selection point

setSelectionPoint

public void setSelectionPoint(SelectionPoint point,
                              int i)
Set the Selection Point

Parameters:
point - the point
i - the index


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