Package com.luciad.format.grib.gxy
Class TLcdGRIBGXYController
java.lang.Object
com.luciad.view.gxy.controller.ALcdGXYController
com.luciad.view.gxy.controller.ALcdGXYSmartController
com.luciad.format.grib.gxy.TLcdGRIBGXYController
- All Implemented Interfaces:
ILcdUndoableSource,ILcdStatusSource,ILcdGXYController,KeyListener,MouseListener,MouseMotionListener,Serializable,EventListener
Deprecated.
When active on a
ILcdGXYView, this ILcdGXYController displays a label showing the GRIB
parameter value at the point under the mouse cursor. If there are more layers with GRIB data, the value of the
highest visible GRIB layer that has a value in that position, is displayed.- Since:
- 6.5
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Default constructor.TLcdGRIBGXYController(Cursor aCursor) Deprecated.Creates a newTLcdGRIBGXYControllerwith the given cursor. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringformatValue(TLcdGRIBModelDescriptor aGRIBModelDescriptor, int aInternalValue) Deprecated.Formats the given internal GRIB value as a String.protected StringformatValues(TLcdMultivaluedRasterModelDescriptor aMultivaluedRasterModelDescriptor, int[] aInternalValues) Deprecated.Formats the given internal GRIB values as a String.Deprecated.Gets the decimal format for the GRIB value.Deprecated.Returns the label background color.Deprecated.Returns the font for used by the label displaying the GRIB parameter value.Deprecated.Returns the color of the font of the label displaying the GRIB parameter value.booleanDeprecated.Returns true if the label should be displayed, false otherwise.voidmouseClicked(MouseEvent aMouseEvent) Deprecated.voidmouseDragged(MouseEvent aMouseEvent) Deprecated.voidDeprecated.voidDeprecated.Will perform a pan depending on the values of isDragging, isPanOnMouseDragExit and isPanOnMouseMoveExit propertiesvoidmouseMoved(MouseEvent aMouseEvent) Deprecated.voidDeprecated.voidmouseReleased(MouseEvent aMouseEvent) Deprecated.voidDeprecated.Enables the controller to give visual feedback on the current user interactions.voidsetDecimalFormat(DecimalFormat aDecimalFormat) Deprecated.Sets the decimal format for the GRIB value.voidsetDisplayLabel(boolean aDisplayLabel) Deprecated.Sets whether this controller should display a label containing the GRIB parameter at the point under the mouse cursor.voidsetLabelBackgroundColor(Color aLabelBackgroundColor) Deprecated.Sets a new background color for the label.voidsetLabelFont(Font aLabelFont) Deprecated.Sets a new font for the label displaying the GRIB parameter value.voidsetLabelFontColor(Color aLabelFontColor) Deprecated.Sets the font color of the label.voidstartInteraction(ILcdGXYView aView) Deprecated.Sets up the controller to receive input through the view passed.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, removeUndoableListener, setDownPanChars, setDownPanCodes, setIsDragging, setLeftPanChars, setLeftPanCodes, setPanAbsDelta, setPanOnMouseDragExit, setPanOnMouseMoveExit, setPanUndoable, setRequestFocusOnMouseEntered, setRequestFocusOnMousePressed, setRightPanChars, setRightPanCodes, setTraceOn, setUpPanChars, setUpPanCodes, setZoomInChars, setZoomInCodes, setZoomOutChars, setZoomOutCodes, setZoomUndoable, terminateInteraction, updateViewLocationAfterZoomSFCTMethods inherited from class com.luciad.view.gxy.controller.ALcdGXYController
addStatusListener, asGXYController, fireStatusEvent, getCursor, getGXYView, getIcon, getName, getShortDescription, 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
-
TLcdGRIBGXYController
public TLcdGRIBGXYController()Deprecated.Default constructor. -
TLcdGRIBGXYController
Deprecated.Creates a newTLcdGRIBGXYControllerwith the given cursor.- Parameters:
aCursor- The cursor for this controller
-
-
Method Details
-
getLabelFontColor
Deprecated.Returns the color of the font of the label displaying the GRIB parameter value.- Returns:
- the color of the font of the label displaying the GRIB parameter value.
- See Also:
-
setLabelFontColor
Deprecated.Sets the font color of the label.- Parameters:
aLabelFontColor- The color for the font of the label.- See Also:
-
getLabelBackgroundColor
Deprecated.Returns the label background color.- Returns:
- the label background color.
- See Also:
-
setLabelBackgroundColor
Deprecated.Sets a new background color for the label.- Parameters:
aLabelBackgroundColor- The background color for the label.- See Also:
-
getLabelFont
Deprecated.Returns the font for used by the label displaying the GRIB parameter value.- Returns:
- the font for used by the label displaying the GRIB parameter value.
- See Also:
-
setLabelFont
Deprecated.Sets a new font for the label displaying the GRIB parameter value.- Parameters:
aLabelFont- The new font.- See Also:
-
getDecimalFormat
Deprecated.Gets the decimal format for the GRIB value.- Returns:
- The decimal format for the GRIB value.
- See Also:
-
setDecimalFormat
Deprecated.Sets the decimal format for the GRIB value.- Parameters:
aDecimalFormat- The decimal format for the GRIB value.- See Also:
-
isDisplayLabel
public boolean isDisplayLabel()Deprecated.Returns true if the label should be displayed, false otherwise.- Returns:
- true if the label should be displayed, false otherwise.
- See Also:
-
setDisplayLabel
public void setDisplayLabel(boolean aDisplayLabel) Deprecated.Sets whether this controller should display a label containing the GRIB parameter at the point under the mouse cursor.- Parameters:
aDisplayLabel- True if the label has to be displayed, false otherwise.- See Also:
-
startInteraction
Deprecated.Description copied from class:ALcdGXYControllerSets up the controller to receive input through the view passed.All
ILcdGXYViewimplementations that support interaction call this method when the controller has been made active withsetGXYControlleron the view, so this method shouldn't normally be called directly. Note that most view implementations add the controller as listener if appropriate before calling this method.Sets the cursor on the view and sets the view for which this controller is now active. Sends out a status event based on the
short description.- Specified by:
startInteractionin interfaceILcdGXYController- Overrides:
startInteractionin classALcdGXYSmartController- Parameters:
aView- theILcdGXYViewthisILcdGXYControllerwill interact with.- See Also:
-
mouseReleased
Deprecated.- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classALcdGXYSmartController
-
mouseDragged
Deprecated.- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classALcdGXYSmartController
-
mouseMoved
Deprecated.- Specified by:
mouseMovedin interfaceMouseMotionListener- Overrides:
mouseMovedin classALcdGXYSmartController
-
mouseClicked
Deprecated.- Specified by:
mouseClickedin interfaceMouseListener- Overrides:
mouseClickedin classALcdGXYSmartController
-
mousePressed
Deprecated.- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classALcdGXYSmartController
-
mouseEntered
Deprecated.- Specified by:
mouseEnteredin interfaceMouseListener- Overrides:
mouseEnteredin classALcdGXYSmartController
-
mouseExited
Deprecated.Description copied from class:ALcdGXYSmartControllerWill perform a pan depending on the values of isDragging, isPanOnMouseDragExit and isPanOnMouseMoveExit properties- Specified by:
mouseExitedin interfaceMouseListener- Overrides:
mouseExitedin classALcdGXYSmartController
-
paint
Deprecated.Description copied from class:ALcdGXYControllerEnables the controller to give visual feedback on the current user interactions. Note that the controller is responsible for repainting the view.Empty implementation. Redefine this method to render on the Graphics on which the view is rendered.
- Specified by:
paintin interfaceILcdGXYController- Overrides:
paintin classALcdGXYController- Parameters:
aGraphics- the Graphics on which the view was rendered.
-
formatValues
protected String formatValues(TLcdMultivaluedRasterModelDescriptor aMultivaluedRasterModelDescriptor, int[] aInternalValues) Deprecated.Formats the given internal GRIB values as a String. This implementation concatenates the individual formatted values, separated by commas and enclosed by parentheses.- Parameters:
aMultivaluedRasterModelDescriptor- the model descriptor describing the multi-valued raster from which the values originate.aInternalValues- the values to be formatted.- Returns:
- a readable representation of the values.
- See Also:
-
formatValue
Deprecated.Formats the given internal GRIB value as a String. This implementation converts the value to an actual value, formats it using the decimal format, and appends the unit.- Parameters:
aGRIBModelDescriptor- the model descriptor describing the GRIB raster from which the value originates.aInternalValue- the value to be formatted.- Returns:
- a readable representation of the value.
-
samples.gxy.common.MouseLocationComponentshows how it can be linked to the current mouse position.