pan continuously
.public class TLcdGXYContinuousPanController extends TLcdGXYPanController
TLcdGXYContinuousPanController
extends the regular
TLcdGXYPanController with features to enable continuous panning for a chosen set of layers.
The smart pan property will ensure that only newly exposed areas of the chosen
layers will be repainted. The recommended usage of this controller is to
choose a single raster layer for repaints. A typical application might
choose the topmost visible raster, or choose a raster that overlaps with the
current view boundaries.
The following restrictions apply while panning:
Constructor and Description |
---|
TLcdGXYContinuousPanController()
Deprecated.
|
TLcdGXYContinuousPanController(boolean aRegisterInstance)
Deprecated.
use a constructor without
aRegisterInstance parameter |
Modifier and Type | Method and Description |
---|---|
void |
addGXYLayerToPaintOnDrag(ILcdGXYLayer aGXYLayer)
Deprecated.
Adds an ILcdGXYLayer to be repainted continuously during panning.
|
protected void |
drawGhost(Graphics aGraphics,
int aXPressed,
int aYPressed,
int aXMouse,
int aYMouse)
Deprecated.
Overrides the method in TLcdGXYPanController.
|
ILcdGXYLayer |
getGXYLayerToPaintOnDrag(int aIndex)
Deprecated.
Returns one of the ILcdGXYLayers selected for continuous panning.
|
int |
getGXYLayerToPaintOnDragCount()
Deprecated.
Returns the number of ILcdGXYLayers that are selected for continuous
panning.
|
boolean |
isSmartPan()
Deprecated.
Returns the current state of the smart pan property.
|
void |
removeGXYLayerToPaintOnDrag(ILcdGXYLayer aGXYLayer)
Deprecated.
Removes an ILcdGXYLayer from the list of continuous pan layers.
|
void |
setSmartPan(boolean aSmartPan)
Deprecated.
If set to true, only newly exposed areas of the selected layers will be
repainted during panning.
|
addPropertyChangeListener, appendGXYController, doPan, doPan, getAWTFilter, getGhostColor, getGhostLineWidth, getNextGXYController, getRedoLeft, getUndoLeft, handleAWTEvent, isAutoRepaintOnView, isDragFrameOnPan, isDragImageOnPan, isDragViewOnPan, isDrawLineOnPan, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, paint, redo, removePropertyChangeListener, resetUndoHistory, setAutoRepaintView, setAWTFilter, setCursor, setDragFrameOnPan, setDragImageOnPan, setDragViewOnPan, setDrawLineOnPan, setGhostColor, setGhostLineWidth, setMouseDownCursor, setNextGXYController, startInteraction, terminateInteraction, undo
addUndoableListener, doPanGXYView, doZoomGXYView, fireUndoableEvent, getDownPanChars, getDownPanCodes, getLeftPanChars, getLeftPanCodes, getPanAbsDelta, getPanAbsDelta, getRightPanChars, getRightPanCodes, getUndoableListenerCount, getUpPanChars, getUpPanCodes, getZoomInChars, getZoomInCodes, getZoomOutChars, getZoomOutCodes, isDragging, isPanOnMouseDragExit, isPanOnMouseMoveExit, isPanUndoable, isRequestFocusOnMouseEntered, isRequestFocusOnMousePressed, isTraceOn, isZoomUndoable, keyPressed, keyReleased, keyTyped, mouseEntered, mouseExited, removeUndoableListener, setDownPanChars, setDownPanCodes, setIsDragging, setLeftPanChars, setLeftPanCodes, setPanAbsDelta, setPanOnMouseDragExit, setPanOnMouseMoveExit, setPanUndoable, setRequestFocusOnMouseEntered, setRequestFocusOnMousePressed, setRightPanChars, setRightPanCodes, setTraceOn, setUpPanChars, setUpPanCodes, setZoomInChars, setZoomInCodes, setZoomOutChars, setZoomOutCodes, setZoomUndoable, updateViewLocationAfterZoomSFCT
addStatusListener, asGXYController, fireStatusEvent, getCursor, getGXYView, getIcon, getName, getShortDescription, registerInstance, removeStatusListener, retrieveGXYViewXYWorldTransformation, setClassTraceOn, setGXYView, setIcon, setName, setShortDescription, viewRepaint
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mouseEntered, mouseExited
addUndoableListener, removeUndoableListener
getCursor, getIcon, getLayered, getName, getShortDescription, viewRepaint
public TLcdGXYContinuousPanController()
public TLcdGXYContinuousPanController(boolean aRegisterInstance)
aRegisterInstance
parameteraRegisterInstance
- deprecatedpublic void addGXYLayerToPaintOnDrag(ILcdGXYLayer aGXYLayer)
public void removeGXYLayerToPaintOnDrag(ILcdGXYLayer aGXYLayer)
public int getGXYLayerToPaintOnDragCount()
public ILcdGXYLayer getGXYLayerToPaintOnDrag(int aIndex)
aIndex
- the index of the requested layerpublic void setSmartPan(boolean aSmartPan)
public boolean isSmartPan()
protected void drawGhost(Graphics aGraphics, int aXPressed, int aYPressed, int aXMouse, int aYMouse)
drawGhost
in class TLcdGXYPanController
aGraphics
- the Graphics to draw toaXPressed
- the X coordinate where the mouse was pressedaYPressed
- the Y coordinate where the mouse was pressedaXMouse
- the current X coordinate of the mouse cursoraYMouse
- the current Y coordinate of the mouse cursorTLcdGXYPanController.drawGhost(java.awt.Graphics, int, int, int, int)