saaps.util
Class PlotFrame

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--saaps.util.PlotFrame
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
SEAPlotFrame

public class PlotFrame
extends java.awt.Frame

This windows shows the plot requested from the Data Plotter Applet. The window contains a menu from which the plot axes and lines can be modified.

Version:
1.0 2000-08-08
Author:
Peter Wintoft
See Also:
DataPlotterAppletAWT, DataPlotterAxisDialog, TimeSeries, TimeSeriesPlot., Serialized Form

Inner classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Inner classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock
 
Field Summary
protected  java.awt.CheckboxMenuItem checkboxMenuItemLines
           
protected  java.awt.CheckboxMenuItem checkboxMenuItemPoints
           
protected  java.awt.CheckboxMenuItem checkboxMenuItemXAxis
           
protected  java.awt.CheckboxMenuItem checkboxMenuItemYAxis
           
private  java.awt.Menu menuAxis
           
private  java.awt.MenuBar menuBar
           
private  java.awt.Menu menuFile
           
private  java.awt.MenuItem menuItemAxisCopy
           
private  java.awt.MenuItem menuItemAxisFill
           
private  java.awt.MenuItem menuItemAxisPaste
           
private  java.awt.MenuItem menuItemPrint
           
private  java.awt.MenuItem menuItemQuit
           
private  java.awt.MenuItem menuItemSetAxesLimits
           
private  java.awt.Menu menuLines
           
protected  TimeSeriesPlot timeSeriesPlot
           
 
Fields inherited from class java.awt.Frame
base, CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, frameSerializedDataVersion, HAND_CURSOR, icon, ICONIFIED, mbManagement, MOVE_CURSOR, N_RESIZE_CURSOR, nameCounter, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, ownedWindows, resizable, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, serialVersionUID, state, SW_RESIZE_CURSOR, TEXT_CURSOR, title, W_RESIZE_CURSOR, WAIT_CURSOR, weakThis
 
Fields inherited from class java.awt.Window
active, dbg, focusMgr, inputContext, inputContextLock, OPENED, ownedWindowList, warningString, windowListener, windowSerializedDataVersion
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads
 
Fields inherited from class java.awt.Component
accessibleContext, actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PlotFrame()
          Creates new form DataPlotterFrame
PlotFrame(TimeSeries ts)
          Plot all data fields in the TimeSeries object as a function of calendar time.
PlotFrame(TimeSeries ts, int xf, int[] yfs, boolean li, boolean po, boolean xLog, boolean yLog)
           
PlotFrame(TimeSeries ts, int xf, int[] yfs, boolean li, boolean po, java.lang.String xLabel, java.lang.String[] yLabels, boolean xLog, boolean yLog)
          Plot selected data fields from a TimeSeries object as a function of another field, which can be the time field or another data field.
PlotFrame(TimeSeriesPlot tsp)
          Plot a time series plot.
 
Method Summary
protected  void addToMenuBar(java.awt.Menu m)
           
private  void checkboxMenuItemLinesItemStateChanged(java.awt.event.ItemEvent evt)
           
private  void checkboxMenuItemPointsItemStateChanged(java.awt.event.ItemEvent evt)
           
private  void checkboxMenuItemXAxisItemStateChanged(java.awt.event.ItemEvent evt)
           
private  void checkboxMenuItemYAxisItemStateChanged(java.awt.event.ItemEvent evt)
           
private  void exitForm(java.awt.event.WindowEvent evt)
          Exit the Application
private  void formComponentResized(java.awt.event.ComponentEvent evt)
           
private  void initComponents()
          This method is called from within the constructor to initialize the form.
static void main(java.lang.String[] args)
          The main method is used for testing.
private  void menuItemAxisFillActionPerformed(java.awt.event.ActionEvent evt)
           
private  void menuItemHelpActionPerformed(java.awt.event.ActionEvent evt)
           
private  void menuItemPrintActionPerformed(java.awt.event.ActionEvent evt)
           
private  void menuItemQuitActionPerformed(java.awt.event.ActionEvent evt)
           
private  void menuItemSetAxesLimitsActionPerformed(java.awt.event.ActionEvent evt)
           
 void plotData()
           
 void useCalTime()
           
 void useRelTime()
           
 
Methods inherited from class java.awt.Frame
, addNotify, addToFrameList, constructComponentName, finalize, getAccessibleContext, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, initIDs, isResizable, paramString, postProcessKeyEvent, readObject, remove, removeFromFrameList, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle, writeObject
 
Methods inherited from class java.awt.Window
addOwnedWindow, addWindowListener, adjustListeningChildren, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, dispose, eventEnabled, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isActive, isShowing, nextFocus, ownedInit, pack, postEvent, postWindowEvent, preProcessKeyEvent, processEvent, processWindowEvent, removeOwnedWindow, removeWindowListener, resetGC, setCursor, setFocusOwner, setWarningString, show, toBack, toFront, transferFocus
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, numListening, paint, paintComponents, paintHeavyweightComponents, postsOldMouseEvents, preferredSize, print, printComponents, printHeavyweightComponents, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, setFont, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

timeSeriesPlot

protected TimeSeriesPlot timeSeriesPlot

menuBar

private java.awt.MenuBar menuBar

menuFile

private java.awt.Menu menuFile

menuItemPrint

private java.awt.MenuItem menuItemPrint

menuItemQuit

private java.awt.MenuItem menuItemQuit

menuAxis

private java.awt.Menu menuAxis

checkboxMenuItemXAxis

protected java.awt.CheckboxMenuItem checkboxMenuItemXAxis

checkboxMenuItemYAxis

protected java.awt.CheckboxMenuItem checkboxMenuItemYAxis

menuItemAxisFill

private java.awt.MenuItem menuItemAxisFill

menuItemSetAxesLimits

private java.awt.MenuItem menuItemSetAxesLimits

menuItemAxisCopy

private java.awt.MenuItem menuItemAxisCopy

menuItemAxisPaste

private java.awt.MenuItem menuItemAxisPaste

menuLines

private java.awt.Menu menuLines

checkboxMenuItemLines

protected java.awt.CheckboxMenuItem checkboxMenuItemLines

checkboxMenuItemPoints

protected java.awt.CheckboxMenuItem checkboxMenuItemPoints
Constructor Detail

PlotFrame

public PlotFrame()
Creates new form DataPlotterFrame

PlotFrame

public PlotFrame(TimeSeries ts)
Plot all data fields in the TimeSeries object as a function of calendar time.
Parameters:
ts - The time series to be plotted.

PlotFrame

public PlotFrame(TimeSeriesPlot tsp)
Plot a time series plot.
Parameters:
tsp - The time series plot

PlotFrame

public PlotFrame(TimeSeries ts,
                 int xf,
                 int[] yfs,
                 boolean li,
                 boolean po,
                 boolean xLog,
                 boolean yLog)

PlotFrame

public PlotFrame(TimeSeries ts,
                 int xf,
                 int[] yfs,
                 boolean li,
                 boolean po,
                 java.lang.String xLabel,
                 java.lang.String[] yLabels,
                 boolean xLog,
                 boolean yLog)
Plot selected data fields from a TimeSeries object as a function of another field, which can be the time field or another data field.
Parameters:
ts - The time series object.
xf - The field for the x-axis. This can be a data field (xf>=0) or xf=TimeSeriesPlot.REL_TIME or xf=TimeSeriesPlot.CAL_TIME.
yfs - The fields for the y-axis.
li - True if lines should be used.
po - True if points should be used.
xLabel - The x-label.
yLabels - The y-labels.
xLog - True if the x-axis should be logarithmic.
yLog - True if the y-axis should be logarithmic.
Method Detail

useCalTime

public void useCalTime()

useRelTime

public void useRelTime()

addToMenuBar

protected void addToMenuBar(java.awt.Menu m)

plotData

public void plotData()

initComponents

private void initComponents()
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the FormEditor.

menuItemHelpActionPerformed

private void menuItemHelpActionPerformed(java.awt.event.ActionEvent evt)

menuItemSetAxesLimitsActionPerformed

private void menuItemSetAxesLimitsActionPerformed(java.awt.event.ActionEvent evt)

menuItemAxisFillActionPerformed

private void menuItemAxisFillActionPerformed(java.awt.event.ActionEvent evt)

formComponentResized

private void formComponentResized(java.awt.event.ComponentEvent evt)

menuItemPrintActionPerformed

private void menuItemPrintActionPerformed(java.awt.event.ActionEvent evt)

checkboxMenuItemXAxisItemStateChanged

private void checkboxMenuItemXAxisItemStateChanged(java.awt.event.ItemEvent evt)

checkboxMenuItemLinesItemStateChanged

private void checkboxMenuItemLinesItemStateChanged(java.awt.event.ItemEvent evt)

checkboxMenuItemPointsItemStateChanged

private void checkboxMenuItemPointsItemStateChanged(java.awt.event.ItemEvent evt)

checkboxMenuItemYAxisItemStateChanged

private void checkboxMenuItemYAxisItemStateChanged(java.awt.event.ItemEvent evt)

menuItemQuitActionPerformed

private void menuItemQuitActionPerformed(java.awt.event.ActionEvent evt)

exitForm

private void exitForm(java.awt.event.WindowEvent evt)
Exit the Application

main

public static void main(java.lang.String[] args)
The main method is used for testing.
Parameters:
args - the command line arguments