@LcdService(service=ILcdSLDGXYLayerFactory.class, priority=20000) public class TLcdS52SLDGXYLayerFactory extends Object implements ILcdSLDGXYLayerFactory
ILcdSLDGXYLayerFactory
implementation which can create layers for S-57 models using a given SLD style.
This layer factory can only be used for SLD styles that use a TLcdS52SLDSymbolizer
.
Otherwise, no layer is created. Both AML and ENC models are supported. The returned layer is an
ILcdGXYEditableLabelsLayer
.
Constructor and Description |
---|
TLcdS52SLDGXYLayerFactory() |
Modifier and Type | Method and Description |
---|---|
ILcdGXYLayer |
createGXYLayer(ILcdModel aModel,
List<TLcdSLDFeatureTypeStyle> aStyles)
Creates an
ILcdGXYLayer for representing
the given ILcdModel on an ILcdGXYView , according to the given TLcdSLDFeatureTypeStyle 's. |
double |
getScaleFactor()
Gets the scale factor for the S-52 symbols rendered by this layer factory, in pixels per
millimeter.
|
boolean |
isAntiAliasing()
Indicates whether the S-52 symbologies used by this layer factory use anti-aliasing or not.
|
void |
setAntiAliasing(boolean aAntiAliasing)
Indicates whether the S-52 symbologies used by this layer factory should use anti-aliasing
or not.
|
void |
setScaleFactor(double aScaleFactor)
Sets the scale factor for the S-52 symbols rendered by this layer factory, in pixels per
millimeter.
|
public ILcdGXYLayer createGXYLayer(ILcdModel aModel, List<TLcdSLDFeatureTypeStyle> aStyles)
ILcdSLDGXYLayerFactory
ILcdGXYLayer
for representing
the given ILcdModel
on an ILcdGXYView
, according to the given TLcdSLDFeatureTypeStyle
's.createGXYLayer
in interface ILcdSLDGXYLayerFactory
aModel
- the model that needs to be visualized in an ILcdGXYView
aStyles
- the SLD feature type style(s) defining how the model should be visually represented on the viewnull
if a layer cannot be created (e.g. because this layer
factory doesn't support the given model).public void setAntiAliasing(boolean aAntiAliasing)
Indicates whether the S-52 symbologies used by this layer factory should use anti-aliasing or not. Anti-aliasing currently only affects icons, not lines. Anti-aliasing results in smoother icons but may be slightly slower in rendering.
Changing this setting will only affect layers which are created after this setting has been changed. Layers which have been created earlier remain unaffected.
aAntiAliasing
- true
when anti-aliasing should be turned onpublic boolean isAntiAliasing()
Indicates whether the S-52 symbologies used by this layer factory use anti-aliasing or not. Anti-aliasing currently only affects icons, not lines. Anti-aliasing results in smoother icons but may be slightly slower in rendering.
true
when anti-aliasing is turned on; false
otherwisepublic void setScaleFactor(double aScaleFactor)
aScaleFactor
- a scale factor, in pixels per millimeterpublic double getScaleFactor()