CH.ifa.draw.standard
Class ChangeConnectionHandle
- java.lang.Object
-
- CH.ifa.draw.standard.AbstractHandle
-
- CH.ifa.draw.standard.ChangeConnectionHandle
-
- All Implemented Interfaces:
- Handle
- Direct Known Subclasses:
- ChangeConnectionEndHandle, ChangeConnectionStartHandle
public abstract class ChangeConnectionHandle extends AbstractHandle
ChangeConnectionHandle factors the common code for handles that can be used to reconnect connections.
-
-
Field Summary
-
Fields inherited from class CH.ifa.draw.standard.AbstractHandle
HANDLESIZE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddraw(java.awt.Graphics g)Draws this handle.voidinvokeEnd(int x, int y, int anchorX, int anchorY, DrawingView view)Connects the figure to the new target.voidinvokeStart(int x, int y, DrawingView view)Disconnects the connection.voidinvokeStep(int x, int y, int anchorX, int anchorY, DrawingView view)Finds a new target of the connection.-
Methods inherited from class CH.ifa.draw.standard.AbstractHandle
containsPoint, displayBox, invokeEnd, invokeStart, invokeStep, locate, owner
-
-
-
-
Method Detail
-
invokeStart
public void invokeStart(int x, int y, DrawingView view)Disconnects the connection.- 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)Finds a new target of the connection.- 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)Connects the figure to the new target. If there is no new target the connection reverts to its original one.- 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
-
draw
public void draw(java.awt.Graphics g)
Draws this handle.- Specified by:
drawin interfaceHandle- Overrides:
drawin classAbstractHandle
-
-
DataMelt 3.0 © DataMelt by jWork.ORG