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 Link icon

    • fForegrounds Link icon

      protected Hashtable fForegrounds
    • fSelectionForegrounds Link icon

      protected Hashtable fSelectionForegrounds
    • fTextFonts Link icon

      protected Hashtable fTextFonts
    • fFullDecoding Link icon

      protected Hashtable fFullDecoding
    • fIsAreaFilled Link icon

      protected Hashtable fIsAreaFilled
    • fLabelIndices Link icon

      protected Hashtable fLabelIndices
  • Constructor Details Link icon

    • TLcdVPFLayerFactoryModel Link icon

      public TLcdVPFLayerFactoryModel()
  • Method Details Link icon

    • setClassTraceOn Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      protected Color createRandomColor()
    • createRandomColor Link icon

      protected Color createRandomColor(Color aBaseColor)
    • getTextForeground Link icon

      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 Link icon

      protected Color getForeground(TLcdVPFFeatureClass aVPFFeatureClass)
    • setForeground Link icon

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

      protected Color getSelectionForeground(TLcdVPFFeatureClass aVPFFeatureClass)
    • setSelectionForeground Link icon

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

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

      public int[] getLabelIndices(TLcdVPFFeatureClass aVPFFeatureClass)
    • setDefaultModelType Link icon

      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 Link icon

      public int getDefaultModelType()
      See Also:
    • getModelType Link icon

      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 Link icon

      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 Link icon

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

      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 Link icon

      public void getScaleRange(ILcdInterval aScaleRange)
      Deprecated.
    • setScaleRange Link icon

      public void setScaleRange(ILcdInterval aScaleRange)
    • getTextFont Link icon

      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 Link icon

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

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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.