org.devaki.nextobjects.workspace.models.graphics
Class ConstraintView
java.lang.Object
org.devaki.nextobjects.workspace.models.graphics.ObjectView
org.devaki.nextobjects.workspace.models.graphics.LineView
org.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
Fields inherited from class org.devaki.nextobjects.workspace.models.graphics.LineView |
myStyle |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstraintView
public ConstraintView(Constraint pConstraint)
- Construct a new 'ConstraintView' object
- Parameters:
pConstraint
- the contextual Constraint
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.