Class TLcdMIFGXYPainterProvider

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

public class TLcdMIFGXYPainterProvider extends Object implements ILcdGXYPainterProvider
This class implements an ILcdGXYPainterProvider for MIF objects.
See Also:
  • Constructor Details

    • TLcdMIFGXYPainterProvider

      public TLcdMIFGXYPainterProvider(TLcdMIFModelDescriptor aMIFModelDescriptor, boolean aUsePaintCache)
      Creates a new TLcdMIFGXYPainterProvider based on the given TLcdMIFModelDescriptor. The painter styles that will be used by the painters are suitable for standard drawing of MIF files.
      Parameters:
      aMIFModelDescriptor - the TLcdMIFModelDescriptor that contains information to be used by the painters.
      aUsePaintCache - specifies whether the painters should cache transformed coordinates.
    • TLcdMIFGXYPainterProvider

      public TLcdMIFGXYPainterProvider(TLcdMIFModelDescriptor aMIFModelDescriptor, boolean aUsePaintCache, TLcdMIFSymbolIconProvider aIconProvider, TLcdMIFPenGXYPainterStyle aPenStyle, TLcdMIFBrushGXYPainterStyle aBrushStyle, TLcdMIFTextGXYFontStyle aTextFontStyle, TLcdMIFTextGXYFillStyle aTextFillStyle)
      Creates a new TLcdMIFGXYPainterProvider with the given level symbology and color table, and a set of painter styles to specify the drawing style of the ILcdMIFShape objects.
      Parameters:
      aMIFModelDescriptor - the TLcdMIFModelDescriptor that contains information to be used by the painters.
      aUsePaintCache - specifies whether the painters should cache transformed coordinates.
      aIconProvider - icon provider that the painters will use for determining which symbol corresponds to an object.
      aPenStyle - the TLcdMIFPenGXYPainterStyle that the painters will use for painting lines.
      aBrushStyle - the TLcdMIFBrushGXYPainterStyle that the painters will use for filling areas.
      aTextFontStyle - the TLcdMIFTextGXYFontStyle that the painters will use for painting text.
      aTextFillStyle - the TLcdMIFTextGXYFillStyle that the painters will use for painting text.
  • Method Details

    • getGXYPainter

      public ILcdGXYPainter getGXYPainter(Object aObject)
      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.
    • clone

      public Object clone()
      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: