15
Plug and Play Scientific Graphics with SGT Donald Denbo NOAA/PMEL-UW/JISAO Presented by Christopher Moore NOAA/PMEL-UW/JISAO http://www.epic.noaa.gov/java/sgt

Plug and Play Scientific Graphics with SGT

  • Upload
    gen

  • View
    42

  • Download
    0

Embed Size (px)

DESCRIPTION

Plug and Play Scientific Graphics with SGT. Donald Denbo NOAA/PMEL-UW/JISAO Presented by Christopher Moore NOAA/PMEL-UW/JISAO. http://www.epic.noaa.gov/java/sgt. Introduction. The Scientific Graphics Toolkit (SGT) is a collection of Java classes to produce scientific 2D graphics. - PowerPoint PPT Presentation

Citation preview

Page 1: Plug and Play Scientific Graphics with SGT

Plug and Play Scientific Graphics with SGT

Donald DenboNOAA/PMEL-UW/JISAO

Presented byChristopher MooreNOAA/PMEL-UW/JISAO

http://www.epic.noaa.gov/java/sgt

Page 2: Plug and Play Scientific Graphics with SGT

2003-06-05 NOAAResearch WebShop 2003, Longmont, CO 2

Introduction• The Scientific Graphics

Toolkit (SGT) is a collection of Java classes to produce scientific 2D graphics.

• SGT is a flexible system, allowing developers to produce custom graphics.

• SGT, while popular, does require an expert programmer to use it effectively.

Page 3: Plug and Play Scientific Graphics with SGT

2003-06-05 NOAAResearch WebShop 2003, Longmont, CO 3

Goals for Plug n’ Play Graphics

• Create easy-to-use JavaBeans from the SGT classes.

• JavaBeans enables beginner and intermediate developers a quick entry into SGT graphics.

• SGT Beans handles most events and provides tools to easily customize the appearance of the plot.

Page 4: Plug and Play Scientific Graphics with SGT

2003-06-05 NOAAResearch WebShop 2003, Longmont, CO 4

Why JavaBeans?

• Provide component technology for Java. Components enhance re-usability in the Java environment.

• Can easily be used in IDE and RAD environments.• Bean Customizers can be developed to work within

IDE and RAD tools.• Beans provide a standard mechanism to interact with

development tools and simplify access to complicated Java class libraries.

• Beans have an object persistence mechanism. (XML serialization)

Page 5: Plug and Play Scientific Graphics with SGT

2003-06-05 NOAAResearch WebShop 2003, Longmont, CO 5

Java Development Tools

• BeanBuilderAvailable free from Sun Microsystems for JVM 1.4 or later

• Java Integrated Development Environments (JBuilder, Eclipse, NetBeans)

Page 6: Plug and Play Scientific Graphics with SGT

2003-06-05 NOAAResearch WebShop 2003, Longmont, CO 6

BeanBuilderEvent Connection Component Layout

Page 7: Plug and Play Scientific Graphics with SGT

2003-06-05 NOAAResearch WebShop 2003, Longmont, CO 7

SGT JavaBeans

Page 8: Plug and Play Scientific Graphics with SGT

SGT PanelModel Customizer

Page 9: Plug and Play Scientific Graphics with SGT

SGT Page Bean with graphics

Page 10: Plug and Play Scientific Graphics with SGT

2003-06-05 NOAAResearch WebShop 2003, Longmont, CO 10

Design

Page

Page 11: Plug and Play Scientific Graphics with SGT

2003-06-05 NOAAResearch WebShop 2003, Longmont, CO 11

Page JavaBean

• Visual JavaBean. Page can be added to any swing container.

• Page can have any number of Panels placed inside it. Each Panel provides an independent graphical display of data from the DataModel.

• The location and size of the Panels are specified in the PanelModel.

Page 12: Plug and Play Scientific Graphics with SGT

2003-06-05 NOAAResearch WebShop 2003, Longmont, CO 12

PanelModel JavaBean

• Non-visual JavaBean.• PanelModel maintains:

– location and size of Panels on Page– DataGroups and their positions on a Panel– Legend position on a Panel– Titles and annotation positions on a Panel

Page 13: Plug and Play Scientific Graphics with SGT

2003-06-05 NOAAResearch WebShop 2003, Longmont, CO 13

DataModel JavaBean

• Non-visual JavaBean.• DataModel uses information from the

PanelModel to specify the connection between data and Panel/DataGroup.

• Contains the SGTData and Attribute objects.

Page 14: Plug and Play Scientific Graphics with SGT

2003-06-05 NOAAResearch WebShop 2003, Longmont, CO 14

Real World Example1. User opens ncReader and

selects a netCDF file.2. ncReader accesses the

PanelModel to generate a list of Panel/DataGroups.

3. User selects which Panel/DataGroup the data subset should be attached.

4. ncReader adds the data with the Panel/DataGroup information to the DataModel.

ncReader

dataDataModel

PanelModel Page

Page 15: Plug and Play Scientific Graphics with SGT

2003-06-05 NOAAResearch WebShop 2003, Longmont, CO 15

Future Directions

• Design is completed and implementation will be finished by September 2003.

• Beta version of SGT Beans will be made available once an initial implementation of the Page, PanelModel, DataModel, and Customizer are complete (~1 month).

• User feedback will help guide additional development.

http://www.epic.noaa.gov/java/sgt