Package com.luciad.view.gxy.controller
Class TLcdGXYContinuousPanController
java.lang.Object
com.luciad.view.gxy.controller.ALcdGXYController
com.luciad.view.gxy.controller.ALcdGXYSmartController
com.luciad.view.gxy.controller.TLcdGXYPanController
com.luciad.view.gxy.controller.TLcdGXYContinuousPanController
- All Implemented Interfaces:
ILcdUndoableSource
,ILcdAWTEventListener
,ILcdStatusSource
,ILcdGXYChainableController
,ILcdGXYController
,KeyListener
,MouseListener
,MouseMotionListener
,Serializable
,EventListener
Deprecated.
The
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:
- only the bodies of the selected layers are painted;
- this controller does not work with asynchronously painted layers;
- this controller changes the transformation and clip of the Graphics during pan operations. Unexpected results may occur if the controller is used with ILcdGXYLayer or ILcdGXYPainter implementations which also reset and/or modify the transformation or clip. In order to work correctly with continuous pan, such implementations will need to be modified to respect the existing settings of the Graphics object.
- See Also:
-
Constructor Summary
ConstructorDescriptionDeprecated.TLcdGXYContinuousPanController
(boolean aRegisterInstance) Deprecated.use a constructor withoutaRegisterInstance
parameter -
Method Summary
Modifier and TypeMethodDescriptionvoid
addGXYLayerToPaintOnDrag
(ILcdGXYLayer aGXYLayer) Deprecated.Adds an ILcdGXYLayer to be repainted continuously during panning.protected void
Deprecated.Overrides the method in TLcdGXYPanController.getGXYLayerToPaintOnDrag
(int aIndex) Deprecated.Returns one of the ILcdGXYLayers selected for continuous panning.int
Deprecated.Returns the number of ILcdGXYLayers that are selected for continuous panning.boolean
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.Methods inherited from class com.luciad.view.gxy.controller.TLcdGXYPanController
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
Methods inherited from class com.luciad.view.gxy.controller.ALcdGXYSmartController
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
Methods inherited from class com.luciad.view.gxy.controller.ALcdGXYController
addStatusListener, asGXYController, fireStatusEvent, getCursor, getGXYView, getIcon, getName, getShortDescription, registerInstance, removeStatusListener, retrieveGXYViewXYWorldTransformation, setClassTraceOn, setGXYView, setIcon, setName, setShortDescription, viewRepaint
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.view.gxy.ILcdGXYController
getCursor, getIcon, getLayered, getName, getShortDescription, viewRepaint
Methods inherited from interface com.luciad.gui.ILcdUndoableSource
addUndoableListener, removeUndoableListener
Methods inherited from interface java.awt.event.MouseListener
mouseEntered, mouseExited
-
Constructor Details
-
TLcdGXYContinuousPanController
public TLcdGXYContinuousPanController()Deprecated. -
TLcdGXYContinuousPanController
public TLcdGXYContinuousPanController(boolean aRegisterInstance) Deprecated.use a constructor withoutaRegisterInstance
parameter- Parameters:
aRegisterInstance
- deprecated
-
-
Method Details
-
addGXYLayerToPaintOnDrag
Deprecated.Adds an ILcdGXYLayer to be repainted continuously during panning. -
removeGXYLayerToPaintOnDrag
Deprecated.Removes an ILcdGXYLayer from the list of continuous pan layers. -
getGXYLayerToPaintOnDragCount
public int getGXYLayerToPaintOnDragCount()Deprecated.Returns the number of ILcdGXYLayers that are selected for continuous panning. -
getGXYLayerToPaintOnDrag
Deprecated.Returns one of the ILcdGXYLayers selected for continuous panning.- Parameters:
aIndex
- the index of the requested layer- Returns:
- an ILcdGXYLayer
-
setSmartPan
public void setSmartPan(boolean aSmartPan) Deprecated.If set to true, only newly exposed areas of the selected layers will be repainted during panning. Otherwise, the layers will be asked to repaint the entire view. -
isSmartPan
public boolean isSmartPan()Deprecated.Returns the current state of the smart pan property. -
drawGhost
protected void drawGhost(Graphics aGraphics, int aXPressed, int aYPressed, int aXMouse, int aYMouse) Deprecated.Overrides the method in TLcdGXYPanController. The behavior is now such that undefined areas surrounding the ghost image are not cleared, but are repainted by the layers enabled for continuous panning.- Overrides:
drawGhost
in classTLcdGXYPanController
- Parameters:
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 cursor- See Also:
-
pan continuously
.