Class TLcdGRIBGXYPainterProvider

java.lang.Object
com.luciad.format.grib.gxy.TLcdGRIBGXYPainterProvider
All Implemented Interfaces:
ILcdCloneable, ILcdGXYPainterProvider, Serializable, Cloneable

@Deprecated public class TLcdGRIBGXYPainterProvider extends Object implements ILcdGXYPainterProvider
Deprecated.
The NetCDF decoder should be used to decode GRIB data.

Painter provider for GRIB models, visualizing GRIB 1 and GRIB 2 raster and multi-valued raster models. It provides sensible coloring and icons defaults for many GRIB types.

This painter provider paints GRIB data as rasters or as icons. Icon visualization is used whenever the GRIB objects implement ILcdMultivaluedRaster. In the other case, raster visualization is used.

Since:
2013.0
See Also:
  • Constructor Details

    • TLcdGRIBGXYPainterProvider

      public TLcdGRIBGXYPainterProvider(ILcdModelDescriptor aModelDescriptor)
      Deprecated.
  • Method Details

    • getGXYPainter

      public ILcdGXYPainter getGXYPainter(Object aObject)
      Deprecated.
      Description copied from interface: ILcdGXYPainterProvider
      Finds an ILcdGXYPainter that can be used to paint or locate the object passed.

      The painter provider is responsible for setting the object to the painter before returning the painter. An implementation should therefore have the following structure:

      
       public ILcdGXYPainter getGXYPainter(Object aObject) {
         ILcdGXYPainter painter = ... // find the painter for the object
         if (painter != null) {
          painter.setObject(aObject);
         }
         return painter;
       }
       

      Specified by:
      getGXYPainter in interface ILcdGXYPainterProvider
      Parameters:
      aObject - the object to find a painter for
      Returns:
      a painter that can be used to paint or locate the object; or null if no painter could be found for the given object, or the object could not be set on the retrieved painter.
    • createRasterPainter

      protected ILcdRasterPainter createRasterPainter(TLcdGRIBModelDescriptor aModelDescriptor)
      Deprecated.
      Creates and configures a raster painter for the given model descriptor.
      Returns:
      a configured raster painter
    • createMultiValuedRasterPainter

      protected TLcdGRIBRasterPainter createMultiValuedRasterPainter(TLcdMultivaluedRasterModelDescriptor aModelDescriptor)
      Deprecated.
      Creates and configures a multi-valued raster painter for the given model descriptor.
      Returns:
      a configured GRIB raster painter
    • setGRIBIcon

      public void setGRIBIcon(ILcdGRIBIcon aIcon)
      Deprecated.
      Sets the icon to use for multi-valued rasters (if any). If null, an attempt is made to create an appropriate icon.
      The specified icon will be painted at regular grid locations in the view.
      Parameters:
      aIcon - the icon to use, or null for a default icon
      See Also:
    • getGRIBIcon

      public ILcdGRIBIcon getGRIBIcon()
      Deprecated.
      Returns the icon to use for multi-valued rasters (if any).
      Returns:
      the icon to use for multi-valued rasters
    • setColorModel

      public void setColorModel(ColorModel aColorModel)
      Deprecated.
      Sets the color model to use for the raster visualization.
      Parameters:
      aColorModel - the color model to use for the raster visualization, or null for a default color model
      See Also:
    • getColorModel

      public ColorModel getColorModel()
      Deprecated.
      Returns the currently set color model for the raster visualization.
      Returns:
      the currently set color model for the raster visualization, or null if a default is used
    • getIconSpacing

      public int getIconSpacing()
      Deprecated.
      Returns the grid spacing of of multi-valued raster icons (if any), expressed in pixels.
    • setIconSpacing

      public void setIconSpacing(int aIconSpacing)
      Deprecated.
      Sets the grid spacing of multi-valued raster icons (if any), expressed in pixels.
      See Also:
    • clone

      public Object clone()
      Deprecated.
      Description copied from interface: ILcdGXYPainterProvider
      Redefines Object.clone to make it public.
      Specified by:
      clone in interface ILcdCloneable
      Specified by:
      clone in interface ILcdGXYPainterProvider
      Overrides:
      clone in class Object
      Returns:
      a clone of this painter provider.
      See Also: