|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Frame | +--saaps.util.PlotFrame
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.
DataPlotterAppletAWT
,
DataPlotterAxisDialog
,
TimeSeries
,
TimeSeriesPlot.
, Serialized FormInner 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 |
|
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 |
protected TimeSeriesPlot timeSeriesPlot
private java.awt.MenuBar menuBar
private java.awt.Menu menuFile
private java.awt.MenuItem menuItemPrint
private java.awt.MenuItem menuItemQuit
private java.awt.Menu menuAxis
protected java.awt.CheckboxMenuItem checkboxMenuItemXAxis
protected java.awt.CheckboxMenuItem checkboxMenuItemYAxis
private java.awt.MenuItem menuItemAxisFill
private java.awt.MenuItem menuItemSetAxesLimits
private java.awt.MenuItem menuItemAxisCopy
private java.awt.MenuItem menuItemAxisPaste
private java.awt.Menu menuLines
protected java.awt.CheckboxMenuItem checkboxMenuItemLines
protected java.awt.CheckboxMenuItem checkboxMenuItemPoints
Constructor Detail |
public PlotFrame()
public PlotFrame(TimeSeries ts)
TimeSeries
object
as a function of calendar time.ts
- The time series to be plotted.public PlotFrame(TimeSeriesPlot tsp)
tsp
- The time series plotpublic PlotFrame(TimeSeries ts, int xf, int[] yfs, boolean li, boolean po, boolean xLog, boolean yLog)
public PlotFrame(TimeSeries ts, int xf, int[] yfs, boolean li, boolean po, java.lang.String xLabel, java.lang.String[] yLabels, boolean xLog, boolean yLog)
TimeSeries
object as a function of
another field, which can be the time field or another data field.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 |
public void useCalTime()
public void useRelTime()
protected void addToMenuBar(java.awt.Menu m)
public void plotData()
private void initComponents()
private void menuItemHelpActionPerformed(java.awt.event.ActionEvent evt)
private void menuItemSetAxesLimitsActionPerformed(java.awt.event.ActionEvent evt)
private void menuItemAxisFillActionPerformed(java.awt.event.ActionEvent evt)
private void formComponentResized(java.awt.event.ComponentEvent evt)
private void menuItemPrintActionPerformed(java.awt.event.ActionEvent evt)
private void checkboxMenuItemXAxisItemStateChanged(java.awt.event.ItemEvent evt)
private void checkboxMenuItemLinesItemStateChanged(java.awt.event.ItemEvent evt)
private void checkboxMenuItemPointsItemStateChanged(java.awt.event.ItemEvent evt)
private void checkboxMenuItemYAxisItemStateChanged(java.awt.event.ItemEvent evt)
private void menuItemQuitActionPerformed(java.awt.event.ActionEvent evt)
private void exitForm(java.awt.event.WindowEvent evt)
public static void main(java.lang.String[] args)
args
- the command line arguments
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |