CH.ifa.draw.contrib
Class PolygonHandle
- java.lang.Object
-
- CH.ifa.draw.standard.AbstractHandle
-
- CH.ifa.draw.contrib.PolygonHandle
-
- All Implemented Interfaces:
- Handle
public class PolygonHandle extends AbstractHandle
A handle for a node on the polygon.
-
-
Field Summary
-
Fields inherited from class CH.ifa.draw.standard.AbstractHandle
HANDLESIZE
-
-
Constructor Summary
Constructors Constructor and Description PolygonHandle(PolygonFigure owner, Locator l, int index)Constructs a polygon handle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidinvokeEnd(int x, int y, int anchorX, int anchorY, DrawingView view)Tracks the end of the interaction.voidinvokeStep(int x, int y, int anchorX, int anchorY, DrawingView view)Tracks a step of the interaction.java.awt.Pointlocate()Locates the handle on the figure.-
Methods inherited from class CH.ifa.draw.standard.AbstractHandle
containsPoint, displayBox, draw, invokeEnd, invokeStart, invokeStart, invokeStep, owner
-
-
-
-
Constructor Detail
-
PolygonHandle
public PolygonHandle(PolygonFigure owner, Locator l, int index)
Constructs a polygon handle.- Parameters:
owner- the owning polygon figure.
-
-
Method Detail
-
invokeStep
public void invokeStep(int x, int y, int anchorX, int anchorY, DrawingView view)Description copied from class:AbstractHandleTracks a step of the interaction.- Specified by:
invokeStepin interfaceHandle- Overrides:
invokeStepin classAbstractHandle- Parameters:
x- the current x positiony- the current y positionanchorX- the x position where the interaction startedanchorY- the y position where the interaction started
-
invokeEnd
public void invokeEnd(int x, int y, int anchorX, int anchorY, DrawingView view)Description copied from class:AbstractHandleTracks the end of the interaction.- Specified by:
invokeEndin interfaceHandle- Overrides:
invokeEndin classAbstractHandle- Parameters:
x- the current x positiony- the current y positionanchorX- the x position where the interaction startedanchorY- the y position where the interaction started
-
locate
public java.awt.Point locate()
Description copied from class:AbstractHandleLocates the handle on the figure. The handle is drawn centered around the returned point.- Specified by:
locatein interfaceHandle- Specified by:
locatein classAbstractHandle
-
-
DataMelt 3.0 © DataMelt by jWork.ORG