Using Java Graphics to Display Ocean Observations in NOAAServer D.W. Denbo Joint Institute for the Study of Ocean and Atmosphere (JISAO), University of Washington, Seattle, WA (JISAO is a joint institute of the University of Washington and the National Oceanic and Atmospheric Administration's Pacific Marine Environmental Laboratory) “
January 14, th IIPS, Dallas, TX2 Introduction zNOAAServer Project was created to provide a view of NOAA’s on-line information free of organizational boundaries. zTo accomplish this goal NOAAServer applies a combination of World Wide Web and network computing technologies. zJava graphics enables highly interactive client- side graphics. NOAAServer Project was established by and is managed out of the Environmental Services Data and Information Management (ESDIM) office.
January 14, th IIPS, Dallas, TX3 Design Goals zAllow graphics developer flexibility and freedom zGIS style layer approach zSupport several display types yX-Y plot y2-D contour and “pixel” plots yVector plot yPoint-Value plot zDevelop a framework that can be easily extended
January 14, th IIPS, Dallas, TX4 Implementation z Two coordinate systems yphysical yuser z Three main components yPane yLayer xLineKey xSGLabel yGraph xAxes xRenderer
January 14, th IIPS, Dallas, TX5 Mouse Events zMouse events are pre-processed by Pane zEvents passed to user are yObject selection yZoom rectangle selected zEvents processed by sgt are yObject move yLine hi-lighting
January 14, th IIPS, Dallas, TX6 Graphics Data Model zData model needs to ysupport X-Y, contour, raster, vector, and point plots ybe compact and “light-weight” for client-server Web zAccomplish the above by ysupporting “plottable” objects xone- and two-dimensional arrays xcoordinate information xunits and titles ydata models implemented using java interfaces
January 14, th IIPS, Dallas, TX7 Graphics Data Model zPrimitive Data Types ySGTPoint ySGTLine ySGTGrid (2-dimensional) ySGTVector (2-component) ySGTImage zSGTMetaData ygetName() ygetUnits() yisModulo() ygetProperties()
January 14, th IIPS, Dallas, TX8 NOAAServer Application zClient allows user to yselect a remote dataset ynavigate through the dataset yreceive the data request ygraphically display the data zSGT used to display data in an independent window zLayouts construct a graph, manage zooming, and add datasets to the graphs
January 14, th IIPS, Dallas, TX9
January 14, th IIPS, Dallas, TX10 Station Locations zUses StationPlotLayout with yLineCartesianRenderer yMultiple SGTLine objects yLineAttribute set for MARK style xLayout uses different plot marks for each set of stations yLineKey used to identify each set of stations ySupports zooming
January 14, th IIPS, Dallas, TX11
January 14, th IIPS, Dallas, TX12 Time Series Plot zUses LineTimeSeriesLayout yLineCartesianRenderer yMultiple SGTLine objects yLineAttribute set for SOLID lines xLayout uses different pen colors for each line yLineKey used to identify each station ySupports zooming
January 14, th IIPS, Dallas, TX13
January 14, th IIPS, Dallas, TX14 Raster Time Series Plot zUses RasterTimeSeriesLayout with yRasterCartesianRenderer ySingle SGTGrid object yColorMap used to map temperature to a color yColorKey graphically displays the mapping
January 14, th IIPS, Dallas, TX15
January 14, th IIPS, Dallas, TX16 Future Directions zNext major version will include Java2D capabilities yLine widths yDash styles yMore font control for Labels yArbitrary rotated text zImplement MapGraph and supporting classes
January 14, th IIPS, Dallas, TX17 References zBrazille, W., D.W. Denbo, and W.H. Zhu, NOAAServer Version 2 Co- plotting Prototype. Presented at NOAA WebShop97, October 22-23, 1997, Silver Spring, Maryland.Brazille, W., D.W. Denbo, and W.H. Zhu, NOAAServer Version 2 Co- plotting Prototype zDenbo, D.W., Scigraph: Object-Oriented 2D Scientific Graphics Library. Presented at the 14th International Conference on Interactive Information and Processing Systems for Meteorology, Oceanography, and Hydrology, January 12-16, 1998, Phoenix, Arizona.Denbo, D.W., Scigraph: Object-Oriented 2D Scientific Graphics Library zDenbo, D.W., NOAAServer Graphics Engine Architecture. Presented at NOAA WebShop97, October 22-23, 1997, Silver Spring, Maryland.Denbo, D.W., NOAAServer Graphics Engine Architecture