| |||||||||||
|
This demo shows a field of oil wells. Clicking on a well makes it pop to the front and display the drilling statistics. The Add button adds additional wells and the Remove button removes the selected well. Click on the screen shot to run the applet. Java Web Start The demo's data model, OilfieldData, implements the toolkit's DataModel interface and holds Well data objects which contain the locations of the wells, accessed by the renderers to position the graphics. The toolkit's element model instantiates display elements for the data objects as the data events arrive. The main class, Oilfield, configures the diagram and assembles the user interface. The diagram's raiseSelected property is used to pop the selected well to the front. The oilfield.rdr file configures the renderers. The drilling rig is an image created using a drawing editor. Text and FormattedText renderers add the well number and drilling statistics. Note also the use of converters to format the data values. The oilfield.properties file sets rendering hints. | |||||||||||
|
Copyright © 2001-2007 Apprisant Technologies Inc. | |||||||||||