org.openbp.cockpit.modeler.figures.spline
Class WayPointHandle

java.lang.Object
  extended by CH.ifa.draw.standard.AbstractHandle
      extended by org.openbp.cockpit.modeler.figures.spline.WayPointHandle
All Implemented Interfaces:
CH.ifa.draw.framework.Handle

public class WayPointHandle
extends CH.ifa.draw.standard.AbstractHandle

Handle for a waypoint of a spline.

Author:
Stephan Moritz

Field Summary
 
Fields inherited from class CH.ifa.draw.standard.AbstractHandle
HANDLESIZE
 
Constructor Summary
WayPointHandle(PolySplineFigure owner, int splineIndex)
          Constructor.
 
Method Summary
 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 way point.
 java.awt.Point locate()
           
 
Methods inherited from class CH.ifa.draw.standard.AbstractHandle
containsPoint, displayBox, draw, getUndoActivity, invokeEnd, invokeStart, invokeStep, owner, setUndoActivity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WayPointHandle

public WayPointHandle(PolySplineFigure owner,
                      int splineIndex)
Constructor.

Parameters:
owner - The owning polyline figure
splineIndex - Spline index of the point this controlpoint belongs to
Method Detail

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

invokeStep

public void invokeStep(int x,
                       int y,
                       int anchorX,
                       int anchorY,
                       CH.ifa.draw.framework.DrawingView view)
Sets the position of the way point.

Specified by:
invokeStep in interface CH.ifa.draw.framework.Handle
Overrides:
invokeStep in class CH.ifa.draw.standard.AbstractHandle

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

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


Copyright © 2011. All Rights Reserved.