org.ka2ddo.yaac.gui
Class GuiNWSMultiLine

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

public class GuiNWSMultiLine
extends java.lang.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 http://www.aprs-is.net/WX/MultilineProtocol.aspx.

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

See Also:
NWSMultiLine

Method Summary
static java.awt.Color getColor(NWSMultiLine nws)
           
static java.awt.Stroke getStroke(NWSMultiLine nws)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getColor

public static java.awt.Color getColor(NWSMultiLine nws)

getStroke

public static java.awt.Stroke getStroke(NWSMultiLine nws)