Interface ILcdRasterPainter

All Superinterfaces:
Cloneable, ILcdCloneable, ILcdGXYPainter, ILcdPropertyChangeSource, Serializable
All Known Implementing Classes:
ALcdRasterPainter, TLcdAllInMemoryRasterPainter, TLcdHypsometricMultilevelRasterPainter, TLcdHypsometricRasterPainter, TLcdMultilevelRasterPainter, TLcdNoWarpMultilevelRasterPainter, TLcdNoWarpRasterPainter, TLcdRasterPainter, TLcdShadedMultilevelRasterPainter, TLcdShadedRasterPainter, TLcdWarpMultilevelRasterPainter, TLcdWarpRasterPainter

public interface ILcdRasterPainter extends ILcdGXYPainter
An ILcdRasterPainter provides additional common methods over ILcdGXYPainter, that are typically useful for painting rasters.
  • Method Details

    • setStartResolutionFactor

      void setStartResolutionFactor(double aFactor)
      Sets the highest pixel density (number of raster pixels per screen pixel) at which a raster is painted. If the pixel density is too high, only the raster outlines and tile outlines are painted (or a lower resolution level is chosen). This can avoid having to load a large raster to fill a relatively small view.
    • getStartResolutionFactor

      double getStartResolutionFactor()
      See Also:
    • setStopResolutionFactor

      void setStopResolutionFactor(double aFactor)
      Sets the lowest pixel density (number of raster pixels per screen pixel) at which a raster is painted. If the pixel density is too low, nothing is painted. This can avoid painting overly pixelated rasters.
    • getStopResolutionFactor

      double getStopResolutionFactor()
      See Also:
    • setForcePainting

      void setForcePainting(boolean aForcePainting)
      Specifies whether the visible portion of the raster should always be painted, irrespective of the startResolutionFactor and stopResolutionFactor.
      See Also:
    • isForcePainting

      boolean isForcePainting()
      See Also:
    • setPaintOutline

      void setPaintOutline(boolean aPaintOutline)
      Specifies whether the raster outlines and tile outlines should be painted when the pixel density (number of raster pixels per screen pixel) of the raster to be painted is higher than the startResolutionFactor.
      See Also:
    • isPaintOutline

      boolean isPaintOutline()
      See Also:
    • setOutlineColor

      void setOutlineColor(Color aColor)
      Sets the line color used to paint the raster outlines and tile outlines when the pixel density (number of raster pixels per screen pixel) of the raster to be painted is higher than the startResolutionFactor.
      See Also:
    • getOutlineColor

      Color getOutlineColor()
      See Also:
    • setMaxNumberOfOutlineTiles

      void setMaxNumberOfOutlineTiles(int aMaxNumberOfOutlineTiles)
      Sets the maximum number of outlines of individual tiles to paint when the pixel density (number of raster pixels per screen pixel) of the raster to be painted is higher than the startResolutionFactor. If the number of tiles is larger than this maximum, only the global outline of the raster is painted.
      See Also:
    • getMaxNumberOfOutlineTiles

      int getMaxNumberOfOutlineTiles()
      See Also:
    • setMaxNoOfOutlineTiles

      void setMaxNoOfOutlineTiles(int aMaxNumberOfOutlineTiles)
    • getMaxNoOfOutlineTiles

      int getMaxNoOfOutlineTiles()
    • setColorModel

      void setColorModel(ColorModel aColorModel)
      Sets the ColorModel that determines how a raster pixel is transformed into color components for a screen pixel. If it is not set, the raster itself determines the ColorModel. If that is not set either, the contained raster tiles determine the ColorModel.
    • getColorModel

      ColorModel getColorModel()
      See Also:
    • setBrightness

      void setBrightness(float aBrightness)
      Sets the brightness that is applied to painted rasters. It is a value in [0, 2]. A value of 1 (the default) leaves the brightness unchanged. Values larger than 1 makes the colors brighter, while a value smaller than 1 makes the colors less bright.
      See Also:
    • getBrightness

      float getBrightness()
      See Also:
    • setTransparency

      void setTransparency(float aTransparency)
      Sets the transparency factor that is applied to painted rasters. It is an alpha value between 0 and 1, with 0 being perfectly transparent, and 1 (the default) being perfectly opaque.
    • getTransparency

      float getTransparency()
      See Also: