@Deprecated public class TLcdGRIBGXYPainterProvider extends Object implements ILcdGXYPainterProvider
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.
Constructor and Description |
---|
TLcdGRIBGXYPainterProvider(ILcdModelDescriptor aModelDescriptor)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Deprecated.
Redefines
Object.clone to make it public. |
protected TLcdGRIBRasterPainter |
createMultiValuedRasterPainter(TLcdMultivaluedRasterModelDescriptor aModelDescriptor)
Deprecated.
Creates and configures a multi-valued raster painter for the given model descriptor.
|
protected ILcdRasterPainter |
createRasterPainter(TLcdGRIBModelDescriptor aModelDescriptor)
Deprecated.
Creates and configures a raster painter for the given model descriptor.
|
ColorModel |
getColorModel()
Deprecated.
Returns the currently set color model for the raster visualization.
|
ILcdGRIBIcon |
getGRIBIcon()
Deprecated.
Returns the icon to use for multi-valued rasters (if any).
|
ILcdGXYPainter |
getGXYPainter(Object aObject)
Deprecated.
Finds an
ILcdGXYPainter that can be used to paint or locate the object passed. |
int |
getIconSpacing()
Deprecated.
Returns the grid spacing of of multi-valued raster icons (if any), expressed in pixels.
|
void |
setColorModel(ColorModel aColorModel)
Deprecated.
Sets the color model to use for the raster visualization.
|
void |
setGRIBIcon(ILcdGRIBIcon aIcon)
Deprecated.
Sets the icon to use for multi-valued rasters (if any).
|
void |
setIconSpacing(int aIconSpacing)
Deprecated.
Sets the grid spacing of multi-valued raster icons (if any), expressed in pixels.
|
public TLcdGRIBGXYPainterProvider(ILcdModelDescriptor aModelDescriptor)
public ILcdGXYPainter getGXYPainter(Object aObject)
ILcdGXYPainterProvider
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;
}
getGXYPainter
in interface ILcdGXYPainterProvider
aObject
- the object to find a painter forprotected ILcdRasterPainter createRasterPainter(TLcdGRIBModelDescriptor aModelDescriptor)
protected TLcdGRIBRasterPainter createMultiValuedRasterPainter(TLcdMultivaluedRasterModelDescriptor aModelDescriptor)
public void setGRIBIcon(ILcdGRIBIcon aIcon)
aIcon
- the icon to use, or null for a default iconTLcdGRIBRasterPainter
public ILcdGRIBIcon getGRIBIcon()
public void setColorModel(ColorModel aColorModel)
aColorModel
- the color model to use for the raster visualization, or null for a default
color modelILcdRasterPainter
public ColorModel getColorModel()
public int getIconSpacing()
public void setIconSpacing(int aIconSpacing)
TLcdGRIBRasterPainter
public Object clone()
ILcdGXYPainterProvider
Object.clone
to make it public.clone
in interface ILcdCloneable
clone
in interface ILcdGXYPainterProvider
clone
in class Object
Object.clone()