Class TLcdBUFRGXYLayerFactory

java.lang.Object
com.luciad.format.bufr.gxy.TLcdBUFRGXYLayerFactory
All Implemented Interfaces:
ILcdGXYLayerFactory

@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");

Since:
2020.0
  • Constructor Details

    • TLcdBUFRGXYLayerFactory

      public TLcdBUFRGXYLayerFactory()
      Creates a new layer factory that can create layers for WAFS Significant Weather Data (SIGWX) models.
    • TLcdBUFRGXYLayerFactory

      public TLcdBUFRGXYLayerFactory(TLcdBUFRStyleSettings aBUFRStyleSettings)
      Creates a new layer factory that can create layers for WAFS Significant Weather Data (SIGWX) models.
      Parameters:
      aBUFRStyleSettings - The style settings to use when creating layers
  • Method Details