CH.ifa.draw.figures
Class ElbowHandle
- java.lang.Object
-
- CH.ifa.draw.standard.AbstractHandle
-
- CH.ifa.draw.figures.ElbowHandle
-
- All Implemented Interfaces:
- Handle
public class ElbowHandle extends AbstractHandle
A Handle to move an ElbowConnection left/right or up/down.
-
-
Field Summary
-
Fields inherited from class CH.ifa.draw.standard.AbstractHandle
HANDLESIZE
-
-
Constructor Summary
Constructors Constructor and Description ElbowHandle(LineConnection owner, int segment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddraw(java.awt.Graphics g)Draws this handle.voidinvokeStart(int x, int y, DrawingView view)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, invokeEnd, invokeEnd, invokeStart, invokeStep, owner
-
-
-
-
Constructor Detail
-
ElbowHandle
public ElbowHandle(LineConnection owner, int segment)
-
-
Method Detail
-
invokeStart
public void invokeStart(int x, int y, DrawingView view)- Specified by:
invokeStartin interfaceHandle- Overrides:
invokeStartin classAbstractHandle- Parameters:
x- the x position where the interaction startedy- the y position where the interaction startedview- the handles container
-
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
-
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
-
draw
public void draw(java.awt.Graphics g)
Description copied from class:AbstractHandleDraws this handle.- Specified by:
drawin interfaceHandle- Overrides:
drawin classAbstractHandle
-
-
DataMelt 3.0 © DataMelt by jWork.ORG