Class TLcdGXYContinuousPanController

All Implemented Interfaces:
ILcdUndoableSource, ILcdAWTEventListener, ILcdStatusSource, ILcdGXYChainableController, ILcdGXYController, KeyListener, MouseListener, MouseMotionListener, Serializable, EventListener

public class TLcdGXYContinuousPanController extends TLcdGXYPanController
Deprecated.
TLcdGXYPanController features a more intuitive way (without the mentioned restrictions) to pan continuously.
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 Details

    • TLcdGXYContinuousPanController

      public TLcdGXYContinuousPanController()
      Deprecated.
    • TLcdGXYContinuousPanController

      public TLcdGXYContinuousPanController(boolean aRegisterInstance)
      Deprecated.
      use a constructor without aRegisterInstance parameter
      Parameters:
      aRegisterInstance - deprecated
  • Method Details

    • addGXYLayerToPaintOnDrag

      public void addGXYLayerToPaintOnDrag(ILcdGXYLayer aGXYLayer)
      Deprecated.
      Adds an ILcdGXYLayer to be repainted continuously during panning.
    • removeGXYLayerToPaintOnDrag

      public void removeGXYLayerToPaintOnDrag(ILcdGXYLayer aGXYLayer)
      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

      public ILcdGXYLayer getGXYLayerToPaintOnDrag(int aIndex)
      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 class TLcdGXYPanController
      Parameters:
      aGraphics - the Graphics to draw to
      aXPressed - the X coordinate where the mouse was pressed
      aYPressed - the Y coordinate where the mouse was pressed
      aXMouse - the current X coordinate of the mouse cursor
      aYMouse - the current Y coordinate of the mouse cursor
      See Also: