org.openbp.cockpit.modeler.figures.spline
Class ControlPointHandle
java.lang.Object
CH.ifa.draw.standard.AbstractHandle
org.openbp.cockpit.modeler.figures.spline.ControlPointHandle
- All Implemented Interfaces:
- CH.ifa.draw.framework.Handle
public class ControlPointHandle
- extends CH.ifa.draw.standard.AbstractHandle
Control point handle for a poly line.
See PolySplineFigure
- Author:
- Stephan Moritz
| Fields inherited from class CH.ifa.draw.standard.AbstractHandle |
HANDLESIZE |
|
Method Summary |
java.awt.Rectangle |
displayBox()
|
void |
draw(java.awt.Graphics g)
|
void |
invokeEnd(int x,
int y,
int anchorX,
int anchorY,
CH.ifa.draw.framework.DrawingView view)
|
void |
invokeStart(int x,
int y,
CH.ifa.draw.framework.DrawingView view)
|
void |
invokeStep(int x,
int y,
int anchorX,
int anchorY,
CH.ifa.draw.framework.DrawingView view)
Sets the position of the control point. |
java.awt.Point |
locate()
|
protected java.awt.Point |
locateWayPoint()
Locates the way point of the spline we are processing. |
| Methods inherited from class CH.ifa.draw.standard.AbstractHandle |
containsPoint, getUndoActivity, invokeEnd, invokeStart, invokeStep, owner, setUndoActivity |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ControlPointHandle
public ControlPointHandle(PolySplineFigure owner,
int splineIndex,
int side)
- Constructs a poly line control point handle.
- Parameters:
owner - The owning polyline figuresplineIndex - Spline index of the point this controlpoint belongs toside - Side of the point this controlpoints represents
invokeStart
public void invokeStart(int x,
int y,
CH.ifa.draw.framework.DrawingView view)
- Specified by:
invokeStart in interface CH.ifa.draw.framework.Handle- Overrides:
invokeStart in class CH.ifa.draw.standard.AbstractHandle
- See Also:
AbstractHandle.invokeStart(int x, int y, DrawingView view)
invokeStep
public void invokeStep(int x,
int y,
int anchorX,
int anchorY,
CH.ifa.draw.framework.DrawingView view)
- Sets the position of the control point.
- Specified by:
invokeStep in interface CH.ifa.draw.framework.Handle- Overrides:
invokeStep in class CH.ifa.draw.standard.AbstractHandle
- See Also:
AbstractHandle.invokeStep(int x, int y, int anchorX, int anchorY, DrawingView view)
invokeEnd
public void invokeEnd(int x,
int y,
int anchorX,
int anchorY,
CH.ifa.draw.framework.DrawingView view)
- Specified by:
invokeEnd in interface CH.ifa.draw.framework.Handle- Overrides:
invokeEnd in class CH.ifa.draw.standard.AbstractHandle
- See Also:
AbstractHandle.invokeEnd(int x, int y, int anchorX, int anchorY, DrawingView view)
locate
public java.awt.Point locate()
- Specified by:
locate in interface CH.ifa.draw.framework.Handle- Specified by:
locate in class CH.ifa.draw.standard.AbstractHandle
- See Also:
AbstractHandle.locate()
locateWayPoint
protected java.awt.Point locateWayPoint()
- Locates the way point of the spline we are processing.
- Returns:
- The position of the waypoint in document coordinates
displayBox
public java.awt.Rectangle displayBox()
- Specified by:
displayBox in interface CH.ifa.draw.framework.Handle- Overrides:
displayBox in class CH.ifa.draw.standard.AbstractHandle
- See Also:
AbstractHandle.displayBox()
draw
public void draw(java.awt.Graphics g)
- Specified by:
draw in interface CH.ifa.draw.framework.Handle- Overrides:
draw in class CH.ifa.draw.standard.AbstractHandle
- See Also:
AbstractHandle.draw(Graphics g)
Copyright © 2011. All Rights Reserved.