public class DragRegion extends SelectionDragger
SelectionDragger
Modifier and Type | Field and Description |
---|---|
protected EventListenerList |
listeners |
_rubberBand
Constructor and Description |
---|
DragRegion()
Create a new DragRegion.
|
DragRegion(GraphicsPane gpane)
Create a new DragRegion attached to the given graphics
pane.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(FigureListener l)
Registers a listener for to be informed when figure changes
occur.
|
protected void |
fireCompleted(LayerEvent le)
Send an event to all FigureListeners that this pseudo-figure
has completed its work.
|
Rectangle2D |
getFinalShape()
Get shape of rectangle when released.
|
void |
mouseReleased(LayerEvent event)
Delete the rubber-band.
|
void |
removeListener(FigureListener l)
Remove a listener.
|
addSelectionInteractor, clearSelection, contractSelection, expandSelection, getEventLayer, getFigureLayer, getOverlayLayer, getSelectionFilter, getToggleFilter, mouseDragged, mousePressed, removeSelectionInteractor, selectionInteractors, setEventLayer, setFigureLayer, setOverlayLayer, setSelectionFilter, setToggleFilter, terminateDragSelection
addLayerListener, appendConstraint, constrainPoint, fireLayerEvent, getSelectiveEnabled, getTargetArray, getX, getY, prependConstraint, removeLayerListener, setSelectiveEnabled, setTargetArray, setup, targets, translate
accept, getMouseFilter, isConsuming, isEnabled, isMotionEnabled, mouseClicked, mouseEntered, mouseExited, mouseMoved, setConsuming, setEnabled, setMotionEnabled, setMouseFilter
protected EventListenerList listeners
public DragRegion()
public DragRegion(GraphicsPane gpane)
public void mouseReleased(LayerEvent event)
mouseReleased
in interface LayerListener
mouseReleased
in class SelectionDragger
public Rectangle2D getFinalShape()
public void addListener(FigureListener l)
l
- the FigureListenerpublic void removeListener(FigureListener l)
l
- the FigureListenerprotected void fireCompleted(LayerEvent le)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.