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

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

public class ConstraintView
extends LineView
implements java.io.Serializable

Draw a Constraint in a PhysicalView of a PhysicalModel

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
ConstraintView(Constraint pConstraint)
          Construct a new 'ConstraintView' object
 
Method Summary
 java.awt.Point getCtrlPoint(java.awt.Point p)
          Gets the ctrlPoint attribute of the ConstraintView object
 java.awt.Polygon getSurface()
          Return the surface on which the user can click to select the object
 void paint(java.awt.Graphics g)
          Paint
 void resetSelectionPoint()
          Reset 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, 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

ConstraintView

public ConstraintView(Constraint pConstraint)
Construct a new 'ConstraintView' object

Parameters:
pConstraint - the contextual Constraint
Method Detail

paint

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

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

getCtrlPoint

public final java.awt.Point getCtrlPoint(java.awt.Point p)
Gets the ctrlPoint attribute of the ConstraintView object

Parameters:
p - Description of the Parameter
Returns:
The ctrlPoint value

resetSelectionPoint

public void resetSelectionPoint()
Reset the selection point.

Specified by:
resetSelectionPoint in class ObjectView

getSurface

public final 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


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