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.
|
Method Summary |
void |
draw(java.awt.Graphics g)
Draws this handle. |
void |
invokeStart(int x,
int y,
DrawingView view)
|
void |
invokeStep(int x,
int y,
int anchorX,
int anchorY,
DrawingView view)
Tracks a step of the interaction. |
java.awt.Point |
locate()
Locates the handle on the figure. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElbowHandle
public ElbowHandle(LineConnection owner,
int segment)
invokeStart
public void invokeStart(int x,
int y,
DrawingView view)
- Specified by:
invokeStart in interface Handle- Overrides:
invokeStart in class AbstractHandle
- 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:
AbstractHandle
- Tracks a step of the interaction.
- Specified by:
invokeStep in interface Handle- Overrides:
invokeStep in class AbstractHandle
- 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:
AbstractHandle
- Locates the handle on the figure. The handle is drawn
centered around the returned point.
- Specified by:
locate in interface Handle- Specified by:
locate in class AbstractHandle
draw
public void draw(java.awt.Graphics g)
- Description copied from class:
AbstractHandle
- Draws this handle.
- Specified by:
draw in interface Handle- Overrides:
draw in class AbstractHandle