Package com.luciad.view.gxy.controller
Class TLcdGXYCenterRasterController
java.lang.Object
com.luciad.view.gxy.controller.ALcdGXYController
com.luciad.view.gxy.controller.ALcdGXYSmartController
com.luciad.view.gxy.controller.TLcdGXYCenterRasterController
- All Implemented Interfaces:
ILcdUndoableSource
,ILcdStatusSource
,ILcdGXYController
,KeyListener
,MouseListener
,MouseMotionListener
,Serializable
,EventListener
Deprecated.
Centers an
ILcdView
on an instance of ILcdRaster
.
The ILcdRaster
which contains the location of the MouseEvent
on the ILcdView
,
is the one on which to center. The location of the MouseEvent
will be the new center of the view.
If no raster contains the location, the last ILcdRaster
instance
will be centered upon.
In case of a ILcdMultilevelRaster
the second of its ILcdRaster
instances is considered.
Resulting from the center operation, the scale of the ILcdGXYView
is such that the
raster is depicted with a resolution of one. That is
one pixel of the original image that the tile represents corresponds to one screen pixel.
If necessary, the scale is clamped to lie within the scale range of the
ILcdGXYLayer
.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
centerRaster
(ILcdRaster aRaster, ILcdModelXYWorldTransformation aMWT, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, MouseEvent aMouseEvent) Deprecated.This method will center aRaster in aGXYView.protected void
centerRaster
(MouseEvent aMouseEvent) Deprecated.protected boolean
containsValidRaster
(ILcdGXYLayer aGXYLayer, ILcdPoint aModelPoint) Deprecated.void
Deprecated.This method doesn't perform any operation.void
Deprecated.This method doesn't perform any operation.void
Deprecated.This method doesn't perform any operation.void
Deprecated.This method doesn't perform any operation.void
Deprecated.This method triggers the centering of the view on a raster (see description above).protected ILcdGXYLayer
retrieveGXYLayer
(ILcdGXYView aGXYView, MouseEvent aMouseEvent) Deprecated.Retrieves the firstILcdGXYLayer
within the givenILcdGXYView
which model has anILcdModelDescriptor
that is aTLcdRasterModelDescriptor
orTLcdMultilevelRasterModelDescriptor
and which contains the location of mouse event.protected ILcdRaster
retrieveRaster
(ILcdGXYLayer aGXYLayer, ILcdPoint aModelPoint) Deprecated.This method returns the first instance ofILcdRaster
of theILcdModel
of the givenILcdGXYLayer
that contains the givenILcdPoint
.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, mouseDragged, mouseMoved, removeUndoableListener, setDownPanChars, setDownPanCodes, setIsDragging, setLeftPanChars, setLeftPanCodes, setPanAbsDelta, setPanOnMouseDragExit, setPanOnMouseMoveExit, setPanUndoable, setRequestFocusOnMouseEntered, setRequestFocusOnMousePressed, setRightPanChars, setRightPanCodes, setTraceOn, setUpPanChars, setUpPanCodes, setZoomInChars, setZoomInCodes, setZoomOutChars, setZoomOutCodes, setZoomUndoable, startInteraction, terminateInteraction, updateViewLocationAfterZoomSFCT
Methods inherited from class com.luciad.view.gxy.controller.ALcdGXYController
addStatusListener, asGXYController, fireStatusEvent, getCursor, getGXYView, getIcon, getName, getShortDescription, paint, registerInstance, removeStatusListener, retrieveGXYViewXYWorldTransformation, setClassTraceOn, setCursor, 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
getLayered
-
Constructor Details
-
TLcdGXYCenterRasterController
public TLcdGXYCenterRasterController()Deprecated.
-
-
Method Details
-
retrieveGXYLayer
Deprecated.Retrieves the firstILcdGXYLayer
within the givenILcdGXYView
which model has anILcdModelDescriptor
that is aTLcdRasterModelDescriptor
orTLcdMultilevelRasterModelDescriptor
and which contains the location of mouse event. If no layer contains the the location of the mouse event, the topmost raster layer is returned. If no raster layers exists, null is returned. -
retrieveRaster
Deprecated.This method returns the first instance ofILcdRaster
of theILcdModel
of the givenILcdGXYLayer
that contains the givenILcdPoint
. In case of anILcdMultilevelRaster
the second of itsILcdRaster
instances is chosen. If aModelPoint is null, the last encountered single level raster is returned. If the layer doesn't contain such a raster, the raster at the second level of the last encountered multilevel raster is returned. -
containsValidRaster
Deprecated. -
centerRaster
Deprecated.- See Also:
-
centerRaster
protected void centerRaster(ILcdRaster aRaster, ILcdModelXYWorldTransformation aMWT, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, MouseEvent aMouseEvent) Deprecated.This method will center aRaster in aGXYView. The givenILcdRaster
is represented in the givenILcdGXYLayer
which is drawn in theILcdGXYView
. If the location of the MouseEvent is within the raster, the raster is center on that point, else the middle of the raster will be the central point in the view. -
mouseClicked
Deprecated.This method doesn't perform any operation.- Specified by:
mouseClicked
in interfaceMouseListener
- Overrides:
mouseClicked
in classALcdGXYSmartController
-
mousePressed
Deprecated.This method doesn't perform any operation.- Specified by:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classALcdGXYSmartController
-
mouseReleased
Deprecated.This method triggers the centering of the view on a raster (see description above).- Specified by:
mouseReleased
in interfaceMouseListener
- Overrides:
mouseReleased
in classALcdGXYSmartController
-
mouseEntered
Deprecated.This method doesn't perform any operation.- Specified by:
mouseEntered
in interfaceMouseListener
- Overrides:
mouseEntered
in classALcdGXYSmartController
-
mouseExited
Deprecated.This method doesn't perform any operation.- Specified by:
mouseExited
in interfaceMouseListener
- Overrides:
mouseExited
in classALcdGXYSmartController
-
snap
to raster and multilevel raster scales.