@LcdService(service=ILcdGXYLayerFactory.class, priority=20000) public final class TLcdBUFRGXYLayerFactory extends Object implements ILcdGXYLayerFactory
The default layer factory for BUFR models. All models created by the TLcdBUFRModelDecoder are supported.
An example of how to use this factory:
TLcdBUFRGXYLayerFactory layerFactory = new TLcdBUFRGXYLayerFactory();
ILcdGXYLayer layer = layerFactory.createGXYLayer(model);
layer.setLabel("My BUFR layer");
An example of how to add styling to a layer using this factory:
TLcdBUFRStyleSettings styleSettings = TLcdBUFRStyleSettings
.newBuilder()
.sigwxStyleSettings(
TLcdSIGWXStyleSettings
.newBuilder()
.cloudBorderColor(new Color(205, 0, 0))
.cloudBorderLineWidth(1)
.jetStreamLineColor(new Color(0, 139, 0))
.jetStreamLineWidth(3)
.jetStreamWindSymbolColor(new Color(0, 139, 0))
.jetStreamLabelForegroundColor(new Color(0, 139, 0))
.clearAirTurbulenceBorderColor(new Color(255, 255, 0))
.clearAirTurbulenceBorderLineWidth(2)
.volcanoLabelForegroundColor(Color.white)
.volcanoIconColor(Color.red)
.radiationIconColor(Color.red)
.radiationLabelForegroundColor(Color.white)
.stormIconColor(Color.red)
.stormLabelForegroundColor(Color.white)
.build())
.build();
TLcdBUFRGXYLayerFactory layerFactory = new TLcdBUFRGXYLayerFactory(styleSettings);
ILcdGXYLayer styledLayer = layerFactory.createGXYLayer(model);
styledLayer.setLabel("My styled BUFR layer");
Constructor and Description |
---|
TLcdBUFRGXYLayerFactory()
Creates a new layer factory that can create layers for WAFS Significant Weather Data (SIGWX) models.
|
TLcdBUFRGXYLayerFactory(TLcdBUFRStyleSettings aBUFRStyleSettings)
Creates a new layer factory that can create layers for WAFS Significant Weather Data (SIGWX) models.
|
Modifier and Type | Method and Description |
---|---|
ILcdGXYLayer |
createGXYLayer(ILcdModel aModel)
Creates an
ILcdGXYLayer for representing
an ILcdModel on an ILcdGXYView . |
public TLcdBUFRGXYLayerFactory()
public TLcdBUFRGXYLayerFactory(TLcdBUFRStyleSettings aBUFRStyleSettings)
aBUFRStyleSettings
- The style settings to use when creating layerspublic ILcdGXYLayer createGXYLayer(ILcdModel aModel)
ILcdGXYLayerFactory
ILcdGXYLayer
for representing
an ILcdModel
on an ILcdGXYView
.createGXYLayer
in interface ILcdGXYLayerFactory
aModel
- a model that needs to be visualized in an ILcdGXYView
null
if such a layer cannot be createdTLcdGXYViewJPanel.setGXYLayerFactory(com.luciad.view.gxy.ILcdGXYLayerFactory)