- 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
SPS.xml
- enabled sampling for SPS
WWADrawingPropertiesAction
- modified isHidden() to only show for watches and warning resources, but not for CWASPSResources
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
-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
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