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(java.awt.geom.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, translate
accept, getMouseFilter, isConsuming, isEnabled, isMotionEnabled, mouseClicked, mouseEntered, mouseExited, mouseMoved, setConsuming, setEnabled, setMotionEnabled, setMouseFilter
public BoundedDragInteractor(java.awt.geom.Rectangle2D bounds)
public void setup(LayerEvent e)
setup
in class DragInteractor