public class TLcdVPFLayerFactoryModel extends Object implements ILcdVPFLayerFactoryModel
ILcdVPFLayerFactoryModel
.
This class allows,for each TLcdVPFFeatureClass
, to set the foreground , the background, the font and whether
a area feature is filled.Modifier and Type | Field and Description |
---|---|
protected Hashtable |
fForegrounds |
protected Hashtable |
fFullDecoding |
protected Hashtable |
fIsAreaFilled |
protected Hashtable |
fLabelIndices |
protected Hashtable |
fSelectionForegrounds |
protected Hashtable |
fTextFonts |
Constructor and Description |
---|
TLcdVPFLayerFactoryModel() |
Modifier and Type | Method and Description |
---|---|
protected Color |
createRandomColor() |
protected Color |
createRandomColor(Color aBaseColor) |
int |
getDefaultModelType() |
ILcdGXYPainterStyle |
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) |
ILcdIcon |
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) |
ILcdGXYPainterStyle |
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.
|
ILcdIcon |
getPointIcon(TLcdVPFFeatureClass aVPFFeatureClass)
Returns an icon that can be used to represent a feature of the given
feature class on a map.
|
ILcdIcon |
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.
|
void |
getScaleRange(ILcdInterval aScaleRange)
Deprecated.
|
ILcdInterval |
getScaleRange(TLcdVPFFeatureClass aVPFFeatureClass)
Returns the scale range in which the given feature class should be shown.
|
protected Color |
getSelectionForeground(TLcdVPFFeatureClass aVPFFeatureClass) |
Font |
getTextFont(TLcdVPFFeatureClass aVPFFeatureClass)
Returns a font that can be used to draw textual descriptions for feature of the given
feature class on a map.
|
Color |
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)
Return
true if the areas of this feature class should be filled. |
boolean |
isTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setAreaFilled(TLcdVPFFeatureClass aVPFFeatureClass,
boolean aAreaIsFilled) |
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
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. It is recommended to use the
standard Java logging framework directly.
|
protected Hashtable fForegrounds
protected Hashtable fSelectionForegrounds
protected Hashtable fTextFonts
protected Hashtable fFullDecoding
protected Hashtable fIsAreaFilled
protected Hashtable fLabelIndices
public static void setClassTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.public void setTraceOn(boolean aTraceOn)
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.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.public boolean isTraceOn()
true
if tracing is enabled for this class.protected Color createRandomColor()
public Color getTextForeground(TLcdVPFFeatureClass aVPFFeatureClass)
ILcdVPFLayerFactoryModel
getTextForeground
in interface ILcdVPFLayerFactoryModel
aVPFFeatureClass
- The feature class for which to return a text color.null
if no text color is available for the given feature class.protected Color getForeground(TLcdVPFFeatureClass aVPFFeatureClass)
public void setForeground(TLcdVPFFeatureClass aVPFFeatureClass, Color aColor)
protected Color getSelectionForeground(TLcdVPFFeatureClass aVPFFeatureClass)
public void setSelectionForeground(TLcdVPFFeatureClass aVPFFeatureClass, Color aColor)
public void setLabelIndices(TLcdVPFFeatureClass aVPFFeatureClass, int[] aLabelIndices)
public int[] getLabelIndices(TLcdVPFFeatureClass aVPFFeatureClass)
public void setDefaultModelType(int aDefaultModelType)
public int getDefaultModelType()
setDefaultModelType(int)
public int getModelType(TLcdVPFFeatureClass aVPFFeatureClass)
ILcdVPFLayerFactoryModel
getModelType
in interface ILcdVPFLayerFactoryModel
aVPFFeatureClass
- The feature class.public boolean isAreaFilled(TLcdVPFFeatureClass aVPFFeatureClass)
ILcdVPFLayerFactoryModel
true
if the areas of this feature class should be filled.isAreaFilled
in interface ILcdVPFLayerFactoryModel
aVPFFeatureClass
- The feature class for which to returned whether areas
should be filled..true
if areas of the given feature class should be filled,
false
otherwise.public void setAreaFilled(TLcdVPFFeatureClass aVPFFeatureClass, boolean aAreaIsFilled)
public ILcdInterval getScaleRange(TLcdVPFFeatureClass aVPFFeatureClass)
ILcdVPFLayerFactoryModel
getScaleRange
in interface ILcdVPFLayerFactoryModel
aVPFFeatureClass
- The feature class for which to return a scale range.null
if no scale range is available for the given feature class.public void getScaleRange(ILcdInterval aScaleRange)
public void setScaleRange(ILcdInterval aScaleRange)
public Font getTextFont(TLcdVPFFeatureClass aVPFFeatureClass)
ILcdVPFLayerFactoryModel
getTextFont
in interface ILcdVPFLayerFactoryModel
aVPFFeatureClass
- The feature class for which to return a font.null
if no text font is available for the given feature class.public void setTextFont(TLcdVPFFeatureClass aVPFFeatureClass, Font aFont)
public ILcdIcon getGXYLayerIcon(TLcdVPFFeatureClass aVPFFeatureClass)
ILcdVPFLayerFactoryModel
getGXYLayerIcon
in interface ILcdVPFLayerFactoryModel
aVPFFeatureClass
- The feature class for which to return an icon.null
if no icon is available for the given feature class.public ILcdGXYPainterStyle getLineStyle(TLcdVPFFeatureClass aVPFFeatureClass)
ILcdVPFLayerFactoryModel
getLineStyle
in interface ILcdVPFLayerFactoryModel
aVPFFeatureClass
- The feature class for which to return a line style.null
if no line style is available for the given feature class.public ILcdGXYPainterStyle getFillStyle(TLcdVPFFeatureClass aVPFFeatureClass)
ILcdVPFLayerFactoryModel
getFillStyle
in interface ILcdVPFLayerFactoryModel
aVPFFeatureClass
- The feature class for which to return a fill style.null
if no fill style is available for the given feature class.public ILcdIcon getPointIcon(TLcdVPFFeatureClass aVPFFeatureClass)
ILcdVPFLayerFactoryModel
getPointIcon
in interface ILcdVPFLayerFactoryModel
aVPFFeatureClass
- The feature class for which to return an icon.null
if no icon is available for the given feature class.public ILcdIcon getPointSelectionIcon(TLcdVPFFeatureClass aVPFFeatureClass)
ILcdVPFLayerFactoryModel
getPointSelectionIcon
in interface ILcdVPFLayerFactoryModel
aVPFFeatureClass
- The feature class for which to return an icon.null
if no icon is available for the given
feature class.