Commit graph

32 commits

Author SHA1 Message Date
Tiffany Meyer
2ad71b46b9 Minor update to add back in the Marine WWAs 2022-07-25 15:23:37 -04:00
tiffanycmeyer13
727c536219
Merge pull request #469 from srcarter3/unidata_18.2.1
WWA Updates
2022-06-29 16:31:42 -06:00
Tiffany Meyer
85fce0d84a Small change to resource text for Tropical/Marine WWA's 2022-06-29 18:26:08 -04:00
Shay Carter
c86003fdf1 WWA Change:
- added one more check on the drawing dialog before trying to update the enabled controls
2022-06-29 16:24:35 -06:00
Shay Carter
252ff1a221 Small WWA change:
- remove print statements from last commit
2022-06-29 16:19:05 -06:00
Shay Carter
c3945569a5 Another small update for WWA layers
- updated the sampling logic to only sample when it's supposed to
- added a method on DrawingPropertiesDialog to update the controls enabled if new data comes into the layer
- call the new update method when cycling through adding records, if the drawing dialog already exists
2022-06-29 16:14:02 -06:00
Tiffany Meyer
30e7806cc2 Change wording for Other/Statements in WWA's from "Sig Wx Advisory" to "Special Weather Statements" 2022-06-29 18:09:55 -04:00
Shay Carter
d7c17f1118 Small WWA change for sampling
-make small change to support sampling on/off for sig weather resource
2022-06-28 14:12:25 -06:00
tiffanycmeyer13
5e06eddf60
Merge pull request #465 from srcarter3/unidata_18.2.1
Small update to WWAs
2022-06-28 11:52:50 -06:00
Shay Carter
4fdfc7ffa1 Small update to WWAs
- add a new display option for showing/hiding sampling for each of the WWAO records
2022-06-28 11:10:26 -06:00
Tiffany Meyer
d6c4a35706 Updates to the WWA menus/bundles to add new products that weren't currently in our menus 2022-06-28 12:38:22 -04:00
Shay Carter
e9adbd7501 Changes to the WWA layers
AbstractWWAResource.java:
- added variables for 'statements/other' types
- added variables for controlling the "enabled" state of the display options
- created constants for the significance values of watches, warnings, and advisories since they're used in multiple places
- use the "other" display variables if the significance does not match watches, warnings or advisories
- in the addRecord() method, add logic to enable the corresponding record type display options.  This allows only the applicable display options to be enabled to help with clarity for layers that only load watches for example, or only load warnings, or in SPS case, only use the 'other' options
- add getters and setters for the 'other' display variables
- add getters for the "enable" variables so the dialog can properly set the gui components

CWAPSResource.java:
- in the initShape() method, always create both the wireframeShape (outline) and shadedShape (fill) and let the user decide if they want to use them or not

DrawingPropertiesDialog.java:
- add components for 'statements/other' display settings
- move the "watch" controls to the top of the dialog
- set the enabled status of the controls when creating the dialog
- add methods for setting the enabled components of the watches, warnings, advisories, and other components, individually

WWADrawingPropertiesAction.java:
- don't hide the drawing properties dialog for CWASPResources anymore now that we have "other" controls to control the graphics for this layer
2022-06-24 14:54:09 -06:00
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