public class AttachedIntermediateEventHandler extends AttachedNodeHandler
Modifier and Type | Field and Description |
---|---|
static int |
POSITION_BOTTOM |
static int |
POSITION_LEFT |
static int |
POSITION_OUT |
static int |
POSITION_RIGHT |
static int |
POSITION_TOP |
RESIZE_EAST, RESIZE_NORTH, RESIZE_SOUTH, RESIZE_WEST
Constructor and Description |
---|
AttachedIntermediateEventHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
isAttachable(ProcessNode source,
AttachedNode target)
Returns true if the target ProcessNode can be attached to the source
ProcessNode at their current positions.
|
void |
sourceResized(ProcessNode oldSource,
ProcessNode newSource,
java.util.List<AttachedNode> attachedNodes,
int direction)
Is called each time the source ProcessNode is resized.
|
attach, detach, sourceMoved
public static final int POSITION_OUT
public static final int POSITION_TOP
public static final int POSITION_RIGHT
public static final int POSITION_BOTTOM
public static final int POSITION_LEFT
public boolean isAttachable(ProcessNode source, AttachedNode target)
AttachedNodeHandler
isAttachable
in class AttachedNodeHandler
public void sourceResized(ProcessNode oldSource, ProcessNode newSource, java.util.List<AttachedNode> attachedNodes, int direction)
AttachedNodeHandler
sourceResized
in class AttachedNodeHandler
direction
- One of RESIZE_{NORTH,SOUTH,EAST,WEST}