Class TLcdVPFLayerFactoryModel

java.lang.Object
com.luciad.format.vpf.TLcdVPFLayerFactoryModel
All Implemented Interfaces:
ILcdVPFLayerFactoryModel
Direct Known Subclasses:
TLcdVPFDatabasePanelModel

public class TLcdVPFLayerFactoryModel extends Object implements ILcdVPFLayerFactoryModel
Default implementation of ILcdVPFLayerFactoryModel. This class allows,for each TLcdVPFFeatureClass, to set the foreground , the background, the font and whether a area feature is filled.
  • Field Details

    • fForegrounds

      protected Hashtable fForegrounds
    • fSelectionForegrounds

      protected Hashtable fSelectionForegrounds
    • fTextFonts

      protected Hashtable fTextFonts
    • fFullDecoding

      protected Hashtable fFullDecoding
    • fIsAreaFilled

      protected Hashtable fIsAreaFilled
    • fLabelIndices

      protected Hashtable fLabelIndices
  • Constructor Details

    • TLcdVPFLayerFactoryModel

      public TLcdVPFLayerFactoryModel()
  • Method Details

    • setClassTraceOn

      public static void setClassTraceOn(boolean aClassTraceOn)
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Enables tracing for all instances of this class. If the argument is true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
      Parameters:
      aClassTraceOn - if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
    • setTraceOn

      public void setTraceOn(boolean aTraceOn)
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Enables tracing for this class instance. Calling this method with either true or false as argument automatically turns off tracing for all other class instances for which setTraceOn has not been called. If the argument is false then only the informative, warning and error log messages are recorded.
      Parameters:
      aTraceOn - if true then all log messages are recorded for this instance. If false, then only the informative, warning and error log messages are recorded.
    • isTraceOn

      public boolean isTraceOn()
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Returns true if tracing is enabled for this class.
      Returns:
      true if tracing is enabled for this class, false otherwise.
    • createRandomColor

      protected Color createRandomColor()
    • createRandomColor

      protected Color createRandomColor(Color aBaseColor)
    • getTextForeground

      public Color getTextForeground(TLcdVPFFeatureClass aVPFFeatureClass)
      Description copied from interface: ILcdVPFLayerFactoryModel
      Returns a color that can be used to draw textual descriptions for feature of the given feature class on a map.
      Specified by:
      getTextForeground in interface ILcdVPFLayerFactoryModel
      Parameters:
      aVPFFeatureClass - The feature class for which to return a text color.
      Returns:
      The color for drawing textual descriptions for features of the given feature class, or null if no text color is available for the given feature class.
    • getForeground

      protected Color getForeground(TLcdVPFFeatureClass aVPFFeatureClass)
    • setForeground

      public void setForeground(TLcdVPFFeatureClass aVPFFeatureClass, Color aColor)
    • getSelectionForeground

      protected Color getSelectionForeground(TLcdVPFFeatureClass aVPFFeatureClass)
    • setSelectionForeground

      public void setSelectionForeground(TLcdVPFFeatureClass aVPFFeatureClass, Color aColor)
    • setLabelIndices

      public void setLabelIndices(TLcdVPFFeatureClass aVPFFeatureClass, int[] aLabelIndices)
    • getLabelIndices

      public int[] getLabelIndices(TLcdVPFFeatureClass aVPFFeatureClass)
    • setDefaultModelType

      public void setDefaultModelType(int aDefaultModelType)
      The default model type to be uses by the getModelType method: shall one of [TLcdVPFModelDescriptor.EMPTY_MODEL, TLcdVPFModelDescriptor.FULL_MODEL]. Default is TLcdVPFModelDescriptor.EMPTY_MODEL
    • getDefaultModelType

      public int getDefaultModelType()
      See Also:
    • getModelType

      public int getModelType(TLcdVPFFeatureClass aVPFFeatureClass)
      Description copied from interface: ILcdVPFLayerFactoryModel
      Returns the type of model of the feature class.
      Specified by:
      getModelType in interface ILcdVPFLayerFactoryModel
      Parameters:
      aVPFFeatureClass - The feature class.
      Returns:
      The type of model of the feature class.
    • isAreaFilled

      public boolean isAreaFilled(TLcdVPFFeatureClass aVPFFeatureClass)
      Description copied from interface: ILcdVPFLayerFactoryModel
      Return true if the areas of this feature class should be filled.
      Specified by:
      isAreaFilled in interface ILcdVPFLayerFactoryModel
      Parameters:
      aVPFFeatureClass - The feature class for which to returned whether areas should be filled..
      Returns:
      true if areas of the given feature class should be filled, false otherwise.
    • setAreaFilled

      public void setAreaFilled(TLcdVPFFeatureClass aVPFFeatureClass, boolean aAreaIsFilled)
    • getScaleRange

      public ILcdInterval getScaleRange(TLcdVPFFeatureClass aVPFFeatureClass)
      Description copied from interface: ILcdVPFLayerFactoryModel
      Returns the scale range in which the given feature class should be shown.
      Specified by:
      getScaleRange in interface ILcdVPFLayerFactoryModel
      Parameters:
      aVPFFeatureClass - The feature class for which to return a scale range.
      Returns:
      The scale range in which the feature class should be shown, or null if no scale range is available for the given feature class.
    • getScaleRange

      public void getScaleRange(ILcdInterval aScaleRange)
      Deprecated.
    • setScaleRange

      public void setScaleRange(ILcdInterval aScaleRange)
    • getTextFont

      public Font getTextFont(TLcdVPFFeatureClass aVPFFeatureClass)
      Description copied from interface: ILcdVPFLayerFactoryModel
      Returns a font that can be used to draw textual descriptions for feature of the given feature class on a map.
      Specified by:
      getTextFont in interface ILcdVPFLayerFactoryModel
      Parameters:
      aVPFFeatureClass - The feature class for which to return a font.
      Returns:
      The font for drawing textual descriptions for features of the given feature class, or null if no text font is available for the given feature class.
    • setTextFont

      public void setTextFont(TLcdVPFFeatureClass aVPFFeatureClass, Font aFont)
    • getGXYLayerIcon

      public ILcdIcon getGXYLayerIcon(TLcdVPFFeatureClass aVPFFeatureClass)
      Description copied from interface: ILcdVPFLayerFactoryModel
      Returns an icon that can be used to represent this feature class, for example, in a layer control or database tree.
      Specified by:
      getGXYLayerIcon in interface ILcdVPFLayerFactoryModel
      Parameters:
      aVPFFeatureClass - The feature class for which to return an icon.
      Returns:
      The icon representing the given feature class, or null if no icon is available for the given feature class.
    • getLineStyle

      public ILcdGXYPainterStyle getLineStyle(TLcdVPFFeatureClass aVPFFeatureClass)
      Description copied from interface: ILcdVPFLayerFactoryModel
      Returns a line style that can be used to represent a feature of the given feature class on a map.
      Specified by:
      getLineStyle in interface ILcdVPFLayerFactoryModel
      Parameters:
      aVPFFeatureClass - The feature class for which to return a line style.
      Returns:
      The line style representing features of the given feature class, or null if no line style is available for the given feature class.
    • getFillStyle

      public ILcdGXYPainterStyle getFillStyle(TLcdVPFFeatureClass aVPFFeatureClass)
      Description copied from interface: ILcdVPFLayerFactoryModel
      Returns a fill style that can be used to represent a feature of the given feature class on a map.
      Specified by:
      getFillStyle in interface ILcdVPFLayerFactoryModel
      Parameters:
      aVPFFeatureClass - The feature class for which to return a fill style.
      Returns:
      The icon representing features of the given feature class, or null if no fill style is available for the given feature class.
    • getPointIcon

      public ILcdIcon getPointIcon(TLcdVPFFeatureClass aVPFFeatureClass)
      Description copied from interface: ILcdVPFLayerFactoryModel
      Returns an icon that can be used to represent a feature of the given feature class on a map.
      Specified by:
      getPointIcon in interface ILcdVPFLayerFactoryModel
      Parameters:
      aVPFFeatureClass - The feature class for which to return an icon.
      Returns:
      The icon representing features of the given feature class, or null if no icon is available for the given feature class.
    • getPointSelectionIcon

      public ILcdIcon getPointSelectionIcon(TLcdVPFFeatureClass aVPFFeatureClass)
      Description copied from interface: ILcdVPFLayerFactoryModel
      Returns an icon that can be used to represent a feature of the given feature class on a map, in selected state.
      Specified by:
      getPointSelectionIcon in interface ILcdVPFLayerFactoryModel
      Parameters:
      aVPFFeatureClass - The feature class for which to return an icon.
      Returns:
      The icon representing features of the given feature class in selected state, or null if no icon is available for the given feature class.