public interface ILcyLayerStyleProvider
Provides operations to retrieve and copy a layer's style.
To register a style provider, add it as a service to the Lucy backend. A layer's style should be contained in a ILcyLayerStyle and can be used to describe its visibility, painter settings, ...
Layer styles can be used to copy the style of the layer within layers of the same format.
Modifier and Type | Method and Description |
---|---|
void |
applyStyle(ILcyLayerStyle aLayerStyle,
ILcdLayer aLayerSFCT)
Applies the given style to the given layer.
|
boolean |
canApplyStyle(ILcyLayerStyle aLayerStyle,
ILcdLayer aLayerSFCT)
Returns true if the provider can apply the given style to the given layer.
|
boolean |
canGetStyle(ILcdLayer aLayer)
Returns true if the provider can return the given layer's style.
|
ILcyLayerStyle |
getStyle(ILcdLayer aLayer)
Returns the layer style of the given layer.
|
ILcyLayerStyle getStyle(ILcdLayer aLayer)
Returns the layer style of the given layer. As a result, modifying this style after it has been retrieved updates the layer style.
When this ILcyLayerStyleProvider
is unable to retrieve the layer's style,
null
should be returned.
aLayer
- The layer to get the style from.boolean canGetStyle(ILcdLayer aLayer)
aLayer
- the layer to get the style fromgetStyle(com.luciad.view.ILcdLayer)
void applyStyle(ILcyLayerStyle aLayerStyle, ILcdLayer aLayerSFCT)
aLayerStyle
- The style to apply.aLayerSFCT
- The layer to update.boolean canApplyStyle(ILcyLayerStyle aLayerStyle, ILcdLayer aLayerSFCT)
aLayerStyle
- The style to apply.aLayerSFCT
- The layer to update.applyStyle(ILcyLayerStyle, com.luciad.view.ILcdLayer)