Class TLcdGRIBGXYController

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

@Deprecated public class TLcdGRIBGXYController extends ALcdGXYSmartController
Deprecated.
For newer code, consider using TLcdGXYViewMeasureProvider, which is a more general approach for retrieving measured values at a particular point. The samples.gxy.common.MouseLocationComponent shows how it can be linked to the current mouse position.
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 Details

    • TLcdGRIBGXYController

      public TLcdGRIBGXYController()
      Deprecated.
      Default constructor.
    • TLcdGRIBGXYController

      public TLcdGRIBGXYController(Cursor aCursor)
      Deprecated.
      Creates a new TLcdGRIBGXYController with the given cursor.
      Parameters:
      aCursor - The cursor for this controller
  • Method Details

    • getLabelFontColor

      public Color 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

      public void setLabelFontColor(Color aLabelFontColor)
      Deprecated.
      Sets the font color of the label.
      Parameters:
      aLabelFontColor - The color for the font of the label.
      See Also:
    • getLabelBackgroundColor

      public Color getLabelBackgroundColor()
      Deprecated.
      Returns the label background color.
      Returns:
      the label background color.
      See Also:
    • setLabelBackgroundColor

      public void setLabelBackgroundColor(Color aLabelBackgroundColor)
      Deprecated.
      Sets a new background color for the label.
      Parameters:
      aLabelBackgroundColor - The background color for the label.
      See Also:
    • getLabelFont

      public Font 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

      public void setLabelFont(Font aLabelFont)
      Deprecated.
      Sets a new font for the label displaying the GRIB parameter value.
      Parameters:
      aLabelFont - The new font.
      See Also:
    • getDecimalFormat

      public DecimalFormat getDecimalFormat()
      Deprecated.
      Gets the decimal format for the GRIB value.
      Returns:
      The decimal format for the GRIB value.
      See Also:
    • setDecimalFormat

      public void setDecimalFormat(DecimalFormat aDecimalFormat)
      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

      public void startInteraction(ILcdGXYView aView)
      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 with setGXYController 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 interface ILcdGXYController
      Overrides:
      startInteraction in class ALcdGXYSmartController
      Parameters:
      aView - the ILcdGXYView this ILcdGXYController will interact with.
      See Also:
    • mouseReleased

      public void mouseReleased(MouseEvent aMouseEvent)
      Deprecated.
      Specified by:
      mouseReleased in interface MouseListener
      Overrides:
      mouseReleased in class ALcdGXYSmartController
    • mouseDragged

      public void mouseDragged(MouseEvent aMouseEvent)
      Deprecated.
      Specified by:
      mouseDragged in interface MouseMotionListener
      Overrides:
      mouseDragged in class ALcdGXYSmartController
    • mouseMoved

      public void mouseMoved(MouseEvent aMouseEvent)
      Deprecated.
      Specified by:
      mouseMoved in interface MouseMotionListener
      Overrides:
      mouseMoved in class ALcdGXYSmartController
    • mouseClicked

      public void mouseClicked(MouseEvent aMouseEvent)
      Deprecated.
      Specified by:
      mouseClicked in interface MouseListener
      Overrides:
      mouseClicked in class ALcdGXYSmartController
    • mousePressed

      public void mousePressed(MouseEvent me)
      Deprecated.
      Specified by:
      mousePressed in interface MouseListener
      Overrides:
      mousePressed in class ALcdGXYSmartController
    • mouseEntered

      public void mouseEntered(MouseEvent me)
      Deprecated.
      Specified by:
      mouseEntered in interface MouseListener
      Overrides:
      mouseEntered in class ALcdGXYSmartController
    • mouseExited

      public void mouseExited(MouseEvent me)
      Deprecated.
      Description copied from class: ALcdGXYSmartController
      Will perform a pan depending on the values of isDragging, isPanOnMouseDragExit and isPanOnMouseMoveExit properties
      Specified by:
      mouseExited in interface MouseListener
      Overrides:
      mouseExited in class ALcdGXYSmartController
    • paint

      public void paint(Graphics aGraphics)
      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 interface ILcdGXYController
      Overrides:
      paint in class ALcdGXYController
      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

      protected String formatValue(TLcdGRIBModelDescriptor aGRIBModelDescriptor, int aInternalValue)
      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.