public class BoundedDragInteractor extends DragInteractor
This interactor is intended more as an example of how to produce a customized drag-interactor than anything else.
| Constructor and Description |
|---|
BoundedDragInteractor(Rectangle2D bounds)
Create an instance that keeps figures inside the given regio
|
| Modifier and Type | Method and Description |
|---|---|
void |
setup(LayerEvent e)
Adjust the bounds so that the bounding-box of the target stays
within the region.
|
addLayerListener, appendConstraint, constrainPoint, fireLayerEvent, getSelectiveEnabled, getTargetArray, getX, getY, mouseDragged, mousePressed, mouseReleased, prependConstraint, removeLayerListener, setSelectiveEnabled, setTargetArray, targets, translateaccept, getMouseFilter, isConsuming, isEnabled, isMotionEnabled, mouseClicked, mouseEntered, mouseExited, mouseMoved, setConsuming, setEnabled, setMotionEnabled, setMouseFilterpublic BoundedDragInteractor(Rectangle2D bounds)
public void setup(LayerEvent e)
setup in class DragInteractorCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.