New Controls Work
JDK 1.3 API

gov.fnal.controls.applications.ParameterPage
Class SlowPlotGUI

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--gov.fnal.controls.applications.ParameterPage.SlowPlotGUI
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable
Direct Known Subclasses:
SnapPlotGUI

public class SlowPlotGUI
extends JPanel

This class is JPanel with PlotDisplay and MessageWindow. It has also some functions working with the Traces. It is base class for SnapPlotGUI, widely used in applications. It is used as "GUI" for SlowPlotDisposition. Example of usage:

		SlowPlotDisposition to   = new SlowPlotDisposition();
		DataSource 	    from = new AcceleratorSource();
		DataEvent  	    when = new DeltaTimeEvent(100);
		DataItem   	    item = new CompDeviceItem("Celcium=(M:OUTTMP-32)*5/9;C");
		try{
			DaqUser    user      = new DaqUser("DaeTest", "belobog.fnal.gov"); //DaqUser.get();
			DaqJobControl jcl    = new DaqJobControl(null, null, null, true); //this first ...
			DaqJob job           = new DaqJob(from, to, item, when, user, jcl);
			job.start();
			job.waitForCompletion();
		}catch(Exception e){ pln("Exception "+e); }
 
SlowPlotDisposition creates new JFrame with SlowPlotGUI inside.

Author:
Tim Bolshakov
See Also:
Serialized Form

Inner classes inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Inner classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
Component.AccessibleAWTComponent
 
Field Summary
protected  double commonMax
           
protected  double commonMin
           
protected  double counter
           
protected  double maxY
           
protected  double minY
           
protected  boolean needT1T2
           
protected  int pointsNumber
           
protected  double quant
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
SlowPlotGUI()
           
SlowPlotGUI(boolean nm)
           
 
Method Summary
 void addTrace(String name, Trace t)
           
 void addTrace(String name, Trace t, double xMin, double xMax, double yMin, double yMax)
           
 void autoScale_actionPerformed(ActionEvent ae)
           
 void clean()
           
 boolean containTrace(Trace t)
           
 int countTraces()
           
static JFrame createFrame()
           
 double getCurrentTick()
           
 String getFileName(Frame f, boolean save, FileFilter filter)
           
 Frame getFrame()
           
 double getMax()
           
 double getMin()
           
 int getPointsNumber()
           
 double getQuant()
           
 double getYMax()
           
 double getYMin()
           
static void pln(String s)
           
 void printMessage(Object message)
           
 void setColumns(int i)
           
 void setExtrema(double min, double max)
           
 void setMax(double m)
           
 void setMin(double m)
           
 void setPointsNumber(int i)
           
 void setQuant(double q)
           
 void setYExtrema(double min, double max)
           
 void setYMax(double m)
           
 void setYMin(double m)
           
 void showMessage(Object message)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUIClassID, paramString, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

needT1T2

protected boolean needT1T2

commonMax

protected double commonMax

commonMin

protected double commonMin

quant

protected double quant

minY

protected double minY

maxY

protected double maxY

counter

protected double counter

pointsNumber

protected int pointsNumber
Constructor Detail

SlowPlotGUI

public SlowPlotGUI()

SlowPlotGUI

public SlowPlotGUI(boolean nm)
Method Detail

printMessage

public void printMessage(Object message)

createFrame

public static JFrame createFrame()

addTrace

public void addTrace(String name,
                     Trace t)

addTrace

public void addTrace(String name,
                     Trace t,
                     double xMin,
                     double xMax,
                     double yMin,
                     double yMax)

pln

public static void pln(String s)

showMessage

public void showMessage(Object message)

setMax

public void setMax(double m)

setMin

public void setMin(double m)

setExtrema

public void setExtrema(double min,
                       double max)

setQuant

public void setQuant(double q)

getQuant

public double getQuant()

getMax

public double getMax()

getMin

public double getMin()

getYMax

public double getYMax()

getYMin

public double getYMin()

setYMax

public void setYMax(double m)

setYMin

public void setYMin(double m)

setYExtrema

public void setYExtrema(double min,
                        double max)

getCurrentTick

public double getCurrentTick()

setPointsNumber

public void setPointsNumber(int i)

getPointsNumber

public int getPointsNumber()

getFileName

public String getFileName(Frame f,
                          boolean save,
                          FileFilter filter)

getFrame

public Frame getFrame()

clean

public void clean()

autoScale_actionPerformed

public void autoScale_actionPerformed(ActionEvent ae)

countTraces

public int countTraces()

setColumns

public void setColumns(int i)

containTrace

public boolean containTrace(Trace t)

New Controls Work
JDK 1.3 API

Generated Wed Jul 11 09:44:20 2001 by devoy using alphadoc v1.0

Copyright © 2000-2001, Universities Research Association, Inc. All rights reserved.