|
SGT Time Series Demonstration |
More Demos |
|
This example uses a pre-created "Layout" for time series to simplify the construction of a plot. The JPlotLayout can plot multiple lines, with a legend and provides zooming and line hi-light capabilities. The source code for this example is JTimeSeriesDemo.java.
Zooming: To zoom on a region of the display press left mouse button and drag
the mouse to define rectangular region. To reset zoom press the "CTRL
" (control) key and
left mouse button at same time. Both spatial and time axes auto scale when zooming. The time axis also changes
its "style" to improve readability (see TimeAxis).
Object Selection: A label can be selected by clicking the left mouse button on the label. A red rectangle will indicate the label has been selected. You may then use the mouse to drag the rectangle to a new location. Once the mouse button is released the label will be drawn at the new location.
Property Editing: Right-clicking on a selected object, if property editing is turned on, will bring up a property editor dialog. Currently, labels and axes can be edited using this technique. Another method of property editing uses the object tree to select the object to be modified.
Line Key: A line can be modified by using the mouse to right-click on a line
in the LineKey
.
US Dept of Commerce NOAA / OAR / PMEL / EPIC