Package com.luciad.format.vpf
Class TLcdVPFLayerFactoryModel
java.lang.Object
com.luciad.format.vpf.TLcdVPFLayerFactoryModel
- All Implemented Interfaces:
ILcdVPFLayerFactoryModel
- Direct Known Subclasses:
TLcdVPFDatabasePanelModel
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Colorprotected ColorcreateRandomColor(Color aBaseColor) intgetFillStyle(TLcdVPFFeatureClass aVPFFeatureClass) Returns a fill style that can be used to represent a feature of the given feature class on a map.protected ColorgetForeground(TLcdVPFFeatureClass aVPFFeatureClass) getGXYLayerIcon(TLcdVPFFeatureClass aVPFFeatureClass) Returns an icon that can be used to represent this feature class, for example, in a layer control or database tree.int[]getLabelIndices(TLcdVPFFeatureClass aVPFFeatureClass) getLineStyle(TLcdVPFFeatureClass aVPFFeatureClass) Returns a line style that can be used to represent a feature of the given feature class on a map.intgetModelType(TLcdVPFFeatureClass aVPFFeatureClass) Returns the type of model of the feature class.getPointIcon(TLcdVPFFeatureClass aVPFFeatureClass) Returns an icon that can be used to represent a feature of the given feature class on a map.getPointSelectionIcon(TLcdVPFFeatureClass aVPFFeatureClass) Returns an icon that can be used to represent a feature of the given feature class on a map, in selected state.getScaleRange(TLcdVPFFeatureClass aVPFFeatureClass) Returns the scale range in which the given feature class should be shown.voidgetScaleRange(ILcdInterval aScaleRange) Deprecated.protected ColorgetSelectionForeground(TLcdVPFFeatureClass aVPFFeatureClass) getTextFont(TLcdVPFFeatureClass aVPFFeatureClass) Returns a font that can be used to draw textual descriptions for feature of the given feature class on a map.getTextForeground(TLcdVPFFeatureClass aVPFFeatureClass) Returns a color that can be used to draw textual descriptions for feature of the given feature class on a map.booleanisAreaFilled(TLcdVPFFeatureClass aVPFFeatureClass) Returntrueif the areas of this feature class should be filled.booleanDeprecated.This method has been deprecated.voidsetAreaFilled(TLcdVPFFeatureClass aVPFFeatureClass, boolean aAreaIsFilled) static voidsetClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated.voidsetDefaultModelType(int aDefaultModelType) The default model type to be uses by the getModelType method: shall one of [TLcdVPFModelDescriptor.EMPTY_MODEL, TLcdVPFModelDescriptor.FULL_MODEL].voidsetForeground(TLcdVPFFeatureClass aVPFFeatureClass, Color aColor) voidsetLabelIndices(TLcdVPFFeatureClass aVPFFeatureClass, int[] aLabelIndices) voidsetScaleRange(ILcdInterval aScaleRange) voidsetSelectionForeground(TLcdVPFFeatureClass aVPFFeatureClass, Color aColor) voidsetTextFont(TLcdVPFFeatureClass aVPFFeatureClass, Font aFont) voidsetTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated.
-
Field Details
-
fForegrounds
-
fSelectionForegrounds
-
fTextFonts
-
fFullDecoding
-
fIsAreaFilled
-
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 istruethen 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 eithertrueorfalseas argument automatically turns off tracing for all other class instances for whichsetTraceOnhas not been called. If the argument isfalsethen 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.Returnstrueif tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
createRandomColor
-
createRandomColor
-
getTextForeground
Description copied from interface:ILcdVPFLayerFactoryModelReturns a color that can be used to draw textual descriptions for feature of the given feature class on a map.- Specified by:
getTextForegroundin interfaceILcdVPFLayerFactoryModel- 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
nullif no text color is available for the given feature class.
-
getForeground
-
setForeground
-
getSelectionForeground
-
setSelectionForeground
-
setLabelIndices
-
getLabelIndices
-
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
Description copied from interface:ILcdVPFLayerFactoryModelReturns the type of model of the feature class.- Specified by:
getModelTypein interfaceILcdVPFLayerFactoryModel- Parameters:
aVPFFeatureClass- The feature class.- Returns:
- The type of model of the feature class.
-
isAreaFilled
Description copied from interface:ILcdVPFLayerFactoryModelReturntrueif the areas of this feature class should be filled.- Specified by:
isAreaFilledin interfaceILcdVPFLayerFactoryModel- Parameters:
aVPFFeatureClass- The feature class for which to returned whether areas should be filled..- Returns:
trueif areas of the given feature class should be filled,falseotherwise.
-
setAreaFilled
-
getScaleRange
Description copied from interface:ILcdVPFLayerFactoryModelReturns the scale range in which the given feature class should be shown.- Specified by:
getScaleRangein interfaceILcdVPFLayerFactoryModel- 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
nullif no scale range is available for the given feature class.
-
getScaleRange
Deprecated. -
setScaleRange
-
getTextFont
Description copied from interface:ILcdVPFLayerFactoryModelReturns a font that can be used to draw textual descriptions for feature of the given feature class on a map.- Specified by:
getTextFontin interfaceILcdVPFLayerFactoryModel- 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
nullif no text font is available for the given feature class.
-
setTextFont
-
getGXYLayerIcon
Description copied from interface:ILcdVPFLayerFactoryModelReturns an icon that can be used to represent this feature class, for example, in a layer control or database tree.- Specified by:
getGXYLayerIconin interfaceILcdVPFLayerFactoryModel- Parameters:
aVPFFeatureClass- The feature class for which to return an icon.- Returns:
- The icon representing the given feature class, or
nullif no icon is available for the given feature class.
-
getLineStyle
Description copied from interface:ILcdVPFLayerFactoryModelReturns a line style that can be used to represent a feature of the given feature class on a map.- Specified by:
getLineStylein interfaceILcdVPFLayerFactoryModel- Parameters:
aVPFFeatureClass- The feature class for which to return a line style.- Returns:
- The line style representing features of the given feature class, or
nullif no line style is available for the given feature class.
-
getFillStyle
Description copied from interface:ILcdVPFLayerFactoryModelReturns a fill style that can be used to represent a feature of the given feature class on a map.- Specified by:
getFillStylein interfaceILcdVPFLayerFactoryModel- Parameters:
aVPFFeatureClass- The feature class for which to return a fill style.- Returns:
- The icon representing features of the given feature class, or
nullif no fill style is available for the given feature class.
-
getPointIcon
Description copied from interface:ILcdVPFLayerFactoryModelReturns an icon that can be used to represent a feature of the given feature class on a map.- Specified by:
getPointIconin interfaceILcdVPFLayerFactoryModel- Parameters:
aVPFFeatureClass- The feature class for which to return an icon.- Returns:
- The icon representing features of the given feature class, or
nullif no icon is available for the given feature class.
-
getPointSelectionIcon
Description copied from interface:ILcdVPFLayerFactoryModelReturns an icon that can be used to represent a feature of the given feature class on a map, in selected state.- Specified by:
getPointSelectionIconin interfaceILcdVPFLayerFactoryModel- 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
nullif no icon is available for the given feature class.
-