Class GuiNWSMultiLine

java.lang.Object
org.ka2ddo.yaac.gui.GuiNWSMultiLine

public class GuiNWSMultiLine extends Object
This class provides graphical rendering support for NWS MultiLine encoded poly-figures. It can extract a MultiLine object from a PositionMessage's raw data.

The first two bytes are space and '}'. The next byte is a code for the type of data to plot:

lettercolorline typemeaning
aredsolidtornado warning
breddashedtornado watch
creddouble-dashed
dyellowsolidsevere thunderstorm warning
eyellowdashedsevere thunderstorm watch
fyellowdouble-dashed
gbluesolidtest warning
hbluedashedtest watch
ibluedouble-dashed
jgreensolid
kgreendashedmesoscale discussion area
lgreendouble-dashed
morangewide solidAloha circle for YAAC
norangewide dashedincomplete Aloha circle for YAAC
NWS Multiline display codes

The next byte indicates the type of figure:

charactermeaning
0closed polygon
1line segment
Figure type codes

For more information, see https://www.aprs-is.net/WX/MultilineProtocol.aspx.

Note that NWSMultiLine does not work for polygons and polylines spanning the International Date Line.

Author:
Andrew Pavlin, KA2DDO
See Also:
  • Method Details

    • getColor

      public static Color getColor(NWSMultiLine nws)
      Get the Color for rendering the specified NWSMultiline.
      Parameters:
      nws - NWSMultiline
      Returns:
      Color for rendering the multiline
    • getStroke

      public static Stroke getStroke(NWSMultiLine nws)
      Get the Stroke for rendering the specified NWSMultiline.
      Parameters:
      nws - NWSMultiline
      Returns:
      Stroke style for rendering the multiline