Package org.ka2ddo.yaac.gui
Class GuiNWSMultiLine
java.lang.Object
org.ka2ddo.yaac.gui.GuiNWSMultiLine
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:
letter | color | line type | meaning |
---|---|---|---|
a | red | solid | tornado warning |
b | red | dashed | tornado watch |
c | red | double-dashed | |
d | yellow | solid | severe thunderstorm warning |
e | yellow | dashed | severe thunderstorm watch |
f | yellow | double-dashed | |
g | blue | solid | test warning |
h | blue | dashed | test watch |
i | blue | double-dashed | |
j | green | solid | |
k | green | dashed | mesoscale discussion area |
l | green | double-dashed | |
m | orange | wide solid | Aloha circle for YAAC |
n | orange | wide dashed | incomplete Aloha circle for YAAC |
The next byte indicates the type of figure:
character | meaning |
---|---|
0 | closed polygon |
1 | line segment |
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 Summary
Modifier and TypeMethodDescriptionstatic Color
getColor
(NWSMultiLine nws) Get the Color for rendering the specified NWSMultiline.static Stroke
getStroke
(NWSMultiLine nws) Get the Stroke for rendering the specified NWSMultiline.
-
Method Details
-
getColor
Get the Color for rendering the specified NWSMultiline.- Parameters:
nws
- NWSMultiline- Returns:
- Color for rendering the multiline
-
getStroke
Get the Stroke for rendering the specified NWSMultiline.- Parameters:
nws
- NWSMultiline- Returns:
- Stroke style for rendering the multiline
-