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 ILcdGXYViewis 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 voidcenterRaster(ILcdRaster aRaster, ILcdModelXYWorldTransformation aMWT, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView, MouseEvent aMouseEvent) Deprecated.This method will center aRaster in aGXYView.protected voidcenterRaster(MouseEvent aMouseEvent) Deprecated.protected booleancontainsValidRaster(ILcdGXYLayer aGXYLayer, ILcdPoint aModelPoint) Deprecated.voidDeprecated.This method doesn't perform any operation.voidDeprecated.This method doesn't perform any operation.voidDeprecated.This method doesn't perform any operation.voidDeprecated.This method doesn't perform any operation.voidDeprecated.This method triggers the centering of the view on a raster (see description above).protected ILcdGXYLayerretrieveGXYLayer(ILcdGXYView aGXYView, MouseEvent aMouseEvent) Deprecated.Retrieves the firstILcdGXYLayerwithin the givenILcdGXYViewwhich model has anILcdModelDescriptorthat is aTLcdRasterModelDescriptororTLcdMultilevelRasterModelDescriptorand which contains the location of mouse event.protected ILcdRasterretrieveRaster(ILcdGXYLayer aGXYLayer, ILcdPoint aModelPoint) Deprecated.This method returns the first instance ofILcdRasterof theILcdModelof the givenILcdGXYLayerthat 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, updateViewLocationAfterZoomSFCTMethods 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, viewRepaintMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.view.gxy.ILcdGXYController
getLayered
-
Constructor Details
-
TLcdGXYCenterRasterController
public TLcdGXYCenterRasterController()Deprecated.
-
-
Method Details
-
retrieveGXYLayer
Deprecated.Retrieves the firstILcdGXYLayerwithin the givenILcdGXYViewwhich model has anILcdModelDescriptorthat is aTLcdRasterModelDescriptororTLcdMultilevelRasterModelDescriptorand 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 ofILcdRasterof theILcdModelof the givenILcdGXYLayerthat contains the givenILcdPoint. In case of anILcdMultilevelRasterthe second of itsILcdRasterinstances 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 givenILcdRasteris represented in the givenILcdGXYLayerwhich 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:
mouseClickedin interfaceMouseListener- Overrides:
mouseClickedin classALcdGXYSmartController
-
mousePressed
Deprecated.This method doesn't perform any operation.- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classALcdGXYSmartController
-
mouseReleased
Deprecated.This method triggers the centering of the view on a raster (see description above).- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classALcdGXYSmartController
-
mouseEntered
Deprecated.This method doesn't perform any operation.- Specified by:
mouseEnteredin interfaceMouseListener- Overrides:
mouseEnteredin classALcdGXYSmartController
-
mouseExited
Deprecated.This method doesn't perform any operation.- Specified by:
mouseExitedin interfaceMouseListener- Overrides:
mouseExitedin classALcdGXYSmartController
-
snapto raster and multilevel raster scales.