Commit graph

20 commits

Author SHA1 Message Date
Shay Carter
dd2f8851f3 Slight modification to the Drawing Properties dialog for WWAs
- set the current values every time the dialog is opened.  This is to fix a bug when using the 'x' button to close, it was not populating the values properly
2022-03-21 15:14:35 -06:00
Shay Carter
7fa836b24c Small change for WWA functionality
SPS.xml
- enabled sampling for SPS

WWADrawingPropertiesAction
- modified isHidden() to only show for watches and warning resources, but not for CWASPSResources
2022-03-17 10:34:59 -06:00
Shay Carter
c5fbae1363 Update for WWA drawing and small update for Warngen
WarngenDialog
- changed the button layout at the bottom to have 2 columns instead of 3, so the buttons are centered now

AbstractWWAResource.java
- Add Default value variables for the outline, shape, text, and time displays for warnings, watches, and advisories
- Add display variables for outline, shape, text, and time displays for warnings, watches, and advisories and initialize them to the default values
- Add an instance of the new DrawingPropertiesDialog so it can be disposed of properly when needed
- modified the paintInternal method
	- set the inital drawing booleans to true
	- if the record is not null and has a sig, set the drawing booleans based on their specific display booleans
	- if the entry is not null, try to draw both the shape and the outline if their respective booleans and objects are not null
	- get both the outline style and outline width from the outline capability and use that to draw the outline
	- use the text and time booleans to set the textToPrint properly and only draw what is selected
- in disposeInternal() if the drawingDialog is not null, hide it and then set it to null so it's disposed of properly when a resource is unloaded
- add setters and getters for all the display booleans and the display dialog as well

WarningsResource.java
- in initShape() add a fill (shadedshape) and outline (wireframeshape) to every entry

WatchesResource.java
- in initShape() add a outline (wireframeshape) to every entry also (already added a fill)

WouWcnWatchesResource.java
- in initShape() add a outline (wireframeshape) to every entry also (already added a fill)

WWAResourceData.java
- added a method to get the resource name (this way you can get the name without the time text appended to the end, which is useful for setting a subtitle in the drawing dialog)

DrawingPropertiesDialog.java
- created a new CAVESWTDialog that is used in the resource menu for WWA resources
- this dialog contains options for outline, fill, text, and time displays for Warnings, Watches, and Advisories

WWADrawingPropertiesAction
- created a new resource menu action that creates and assigns a new DrawingPropertiesDialog to the associated wwa resource

plugin.xml
- added the WWADrawingPropertiesAction as an "extension" at the "contextualMenu" for the option to display for WWAResource resource menus
2022-03-16 14:39:50 -06:00
Tiffany Meyer
98f687e5b3 Update WWA files for new Snow Squall Warning (SQ.W) 2021-12-28 09:11:47 -05:00
Tiffany Meyer
c5ea024b82 CAVE updates to Watches, Warnings, and Advisories
-New bundle created  for Winter WWA
-Updated Surface Menu to add entry for Winter WWA
-Added Winter WWA and Convective WWA to the "All Weather Statements" bundle file
2021-12-27 13:57:19 -05:00
Shay Carter
631c211123 Add java class history comments for WWA change 2021-10-22 13:53:12 -06:00
Shay Carter
49327f3312 Small follow up commit
WarningsResource:
- remove an unused import
2021-10-21 16:43:30 -06:00
Shay Carter
50af7eed4b Changings to WWA resources to show warings and watches properly
WWAResourceData
- Simplified the constructResource to always create and return a WarningsResource
- the actual implementation of the constructResource method doesn't quite align with how it originally seemed to be designed. None of the data is actually in the PluginDataObject at this point, all the data is in the LoadProperties.  Because of that, differentiating between WatchResources and WarningResources doesn't work the way you would think it does.  You end up going through this method once, for the entire load of the WWAs.  Also, for some reason the way the WatchResource populated and eventually passed on its records for drawing, actually eliminated the watches.  So, by using the WarningsResource class all the time, all the watches, warnings, and advisories are persisted.

WarningsResource
- the proper convention is for watches to show up as a shaded (thatched) area, and the warnings and advisories to show up with an outline
- in the initShape method, look to see what the significance of the record is, and if it's a watch, then create and set the shadedShape (logic taken from the WatchesResource), otherwise create and set the wireframeShape
2021-10-21 16:36:42 -06:00
Tiffany Meyer
ed6f3eb531 Added menu option to load Convective Warnings 2021-05-04 13:47:46 -04:00
Tiffany Meyer
6e3d431977 These were changes Michael made on moe locally that were "added" but never committed. 2020-11-16 11:45:40 -05:00
mjames-upc
56b4db288b aviationadvisory localization files moves to warning plugin 2019-03-21 11:18:42 -06:00
Michael James
713e16fca7 menus and bundles for goes16/17 Procedures handled by Bundles 2019-01-24 17:36:08 -07:00
mjames-upc
feae73b2f7 WAA plugin reconfig 2018-12-20 16:25:42 -07:00
mjames-upc
ddeed72777 add WarningLookups, phensigColors.xml, AbstractWWAResource updates to map values to colors 2018-12-19 11:02:38 -07:00
mjames-upc
a5bf9dc37b merge origin/master_18.1.1 into unidata_17.1.1 for unidata_18.1.1 2018-07-05 11:49:57 -06:00
mjames-upc
7bd36e334c initial commit 2018-06-20 17:39:08 -06:00
mjames-upc
6168082298 added files from remotes/origin/master_17.1.1p2..remotes/origin/master_18.1.1 changes 2018-06-20 15:49:54 -06:00
mjames-upc
79d7ab168a removed files from remotes/origin/master_17.1.1p2..remotes/origin/master_18.1.1 2018-06-20 15:11:00 -06:00
Michael James
b67b8c9336 17.1.1 edex build ready 2017-04-21 22:46:12 -05:00
mjames-upc
7e05f25909 initial commit 2017-04-21 18:33:55 -06:00