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
ConstructorDescriptionDeprecated.Default constructor.TLcdGRIBGXYController
(Cursor aCursor) Deprecated.Creates a newTLcdGRIBGXYController
with the given cursor. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
formatValue
(TLcdGRIBModelDescriptor aGRIBModelDescriptor, int aInternalValue) Deprecated.Formats the given internal GRIB value as a String.protected String
formatValues
(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.boolean
Deprecated.Returns true if the label should be displayed, false otherwise.void
mouseClicked
(MouseEvent aMouseEvent) Deprecated.void
mouseDragged
(MouseEvent aMouseEvent) Deprecated.void
Deprecated.void
Deprecated.Will perform a pan depending on the values of isDragging, isPanOnMouseDragExit and isPanOnMouseMoveExit propertiesvoid
mouseMoved
(MouseEvent aMouseEvent) Deprecated.void
Deprecated.void
mouseReleased
(MouseEvent aMouseEvent) Deprecated.void
Deprecated.Enables the controller to give visual feedback on the current user interactions.void
setDecimalFormat
(DecimalFormat aDecimalFormat) Deprecated.Sets the decimal format for the GRIB value.void
setDisplayLabel
(boolean aDisplayLabel) Deprecated.Sets whether this controller should display a label containing the GRIB parameter at the point under the mouse cursor.void
setLabelBackgroundColor
(Color aLabelBackgroundColor) Deprecated.Sets a new background color for the label.void
setLabelFont
(Font aLabelFont) Deprecated.Sets a new font for the label displaying the GRIB parameter value.void
setLabelFontColor
(Color aLabelFontColor) Deprecated.Sets the font color of the label.void
startInteraction
(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, updateViewLocationAfterZoomSFCT
Methods 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, 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
-
TLcdGRIBGXYController
public TLcdGRIBGXYController()Deprecated.Default constructor. -
TLcdGRIBGXYController
Deprecated.Creates a newTLcdGRIBGXYController
with 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:ALcdGXYController
Sets up the controller to receive input through the view passed.All
ILcdGXYView
implementations that support interaction call this method when the controller has been made active withsetGXYController
on 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:
startInteraction
in interfaceILcdGXYController
- Overrides:
startInteraction
in classALcdGXYSmartController
- Parameters:
aView
- theILcdGXYView
thisILcdGXYController
will interact with.- See Also:
-
mouseReleased
Deprecated.- Specified by:
mouseReleased
in interfaceMouseListener
- Overrides:
mouseReleased
in classALcdGXYSmartController
-
mouseDragged
Deprecated.- Specified by:
mouseDragged
in interfaceMouseMotionListener
- Overrides:
mouseDragged
in classALcdGXYSmartController
-
mouseMoved
Deprecated.- Specified by:
mouseMoved
in interfaceMouseMotionListener
- Overrides:
mouseMoved
in classALcdGXYSmartController
-
mouseClicked
Deprecated.- Specified by:
mouseClicked
in interfaceMouseListener
- Overrides:
mouseClicked
in classALcdGXYSmartController
-
mousePressed
Deprecated.- Specified by:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classALcdGXYSmartController
-
mouseEntered
Deprecated.- Specified by:
mouseEntered
in interfaceMouseListener
- Overrides:
mouseEntered
in classALcdGXYSmartController
-
mouseExited
Deprecated.Description copied from class:ALcdGXYSmartController
Will perform a pan depending on the values of isDragging, isPanOnMouseDragExit and isPanOnMouseMoveExit properties- Specified by:
mouseExited
in interfaceMouseListener
- Overrides:
mouseExited
in classALcdGXYSmartController
-
paint
Deprecated.Description copied from class:ALcdGXYController
Enables 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:
paint
in interfaceILcdGXYController
- Overrides:
paint
in 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.MouseLocationComponent
shows how it can be linked to the current mouse position.