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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Color
protected Color
createRandomColor
(Color aBaseColor) int
getFillStyle
(TLcdVPFFeatureClass aVPFFeatureClass) Returns a fill style that can be used to represent a feature of the given feature class on a map.protected Color
getForeground
(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.int
getModelType
(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.void
getScaleRange
(ILcdInterval aScaleRange) Deprecated.protected Color
getSelectionForeground
(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.boolean
isAreaFilled
(TLcdVPFFeatureClass aVPFFeatureClass) Returntrue
if the areas of this feature class should be filled.boolean
Deprecated.This method has been deprecated.void
setAreaFilled
(TLcdVPFFeatureClass aVPFFeatureClass, boolean aAreaIsFilled) static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.void
setDefaultModelType
(int aDefaultModelType) The default model type to be uses by the getModelType method: shall one of [TLcdVPFModelDescriptor.EMPTY_MODEL, TLcdVPFModelDescriptor.FULL_MODEL].void
setForeground
(TLcdVPFFeatureClass aVPFFeatureClass, Color aColor) void
setLabelIndices
(TLcdVPFFeatureClass aVPFFeatureClass, int[] aLabelIndices) void
setScaleRange
(ILcdInterval aScaleRange) void
setSelectionForeground
(TLcdVPFFeatureClass aVPFFeatureClass, Color aColor) void
setTextFont
(TLcdVPFFeatureClass aVPFFeatureClass, Font aFont) void
setTraceOn
(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 istrue
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 eithertrue
orfalse
as argument automatically turns off tracing for all other class instances for whichsetTraceOn
has not been called. If the argument isfalse
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.Returnstrue
if tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
createRandomColor
-
createRandomColor
-
getTextForeground
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 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
null
if 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:ILcdVPFLayerFactoryModel
Returns the type of model of the feature class.- Specified by:
getModelType
in interfaceILcdVPFLayerFactoryModel
- Parameters:
aVPFFeatureClass
- The feature class.- Returns:
- The type of model of the feature class.
-
isAreaFilled
Description copied from interface:ILcdVPFLayerFactoryModel
Returntrue
if the areas of this feature class should be filled.- Specified by:
isAreaFilled
in interfaceILcdVPFLayerFactoryModel
- 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
-
getScaleRange
Description copied from interface:ILcdVPFLayerFactoryModel
Returns the scale range in which the given feature class should be shown.- Specified by:
getScaleRange
in 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
null
if no scale range is available for the given feature class.
-
getScaleRange
Deprecated. -
setScaleRange
-
getTextFont
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 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
null
if no text font is available for the given feature class.
-
setTextFont
-
getGXYLayerIcon
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 interfaceILcdVPFLayerFactoryModel
- 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
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 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
null
if no line style is available for the given feature class.
-
getFillStyle
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 interfaceILcdVPFLayerFactoryModel
- 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
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 interfaceILcdVPFLayerFactoryModel
- 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
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 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
null
if no icon is available for the given feature class.
-