edu.mit.sketch.toolkit
Class StatisticsModule
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Frame
|
+--edu.mit.sketch.toolkit.StatisticsModule
- All Implemented Interfaces:
- Accessible, ActionListener, EventListener, ImageObserver, KeyListener, MenuContainer, MouseListener, MouseMotionListener, Serializable
- public class StatisticsModule
- extends Frame
- implements ActionListener, KeyListener, MouseMotionListener, MouseListener
This class is supposed to show basic statistical data about
the recognized objects.
- See Also:
- Serialized Form
| Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
|
Method Summary |
void |
actionPerformed(ActionEvent e)
Handle action events |
void |
clearScreen()
Clear screen |
static int[] |
getSlidingWindowHistogram(double[] data,
double min,
double max,
double dx,
double window_width)
Plot sliding window |
void |
keyPressed(KeyEvent k)
Handle key stroke events |
void |
keyReleased(KeyEvent k)
Handle key stroke events |
void |
keyTyped(KeyEvent k)
Handle key stroke events |
void |
mouseClicked(MouseEvent e)
Handle mouse events |
void |
mouseDragged(MouseEvent e)
Handle mouse motion events |
void |
mouseEntered(MouseEvent e)
Handle mouse events |
void |
mouseExited(MouseEvent e)
Handle mouse events |
void |
mouseMoved(MouseEvent e)
Handle mouse motion events |
void |
mousePressed(MouseEvent e)
Handle mouse events |
void |
mouseReleased(MouseEvent e)
Handle mouse events |
void |
paint(Graphics g)
Overloaded for double buffering. |
void |
plotBarGraph(double[] data,
double min,
double max,
double dx)
Plot bar graph |
void |
plotSlidingWindowGraph(double[] data,
double min,
double max,
double dx,
double window_width)
Plot sliding window |
void |
update(Graphics g)
Handle double buffering and do the real drawing. |
| Methods inherited from class java.awt.Frame |
addNotify, finalize, getAccessibleContext, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, isResizable, paramString, remove, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle |
| Methods inherited from class java.awt.Window |
addWindowListener, applyResourceBundle, applyResourceBundle, dispose, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isShowing, pack, postEvent, processEvent, processWindowEvent, removeWindowListener, setCursor, show, toBack, toFront |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setFont, setLayout, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, 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 |
file
public Menu file
menubar
public MenuBar menubar
quit_menu
public MenuItem quit_menu
StatisticsModule
public StatisticsModule(String title)
- The constructor.
paint
public void paint(Graphics g)
- Overloaded for double buffering.
- Overrides:
paint in class Container
keyPressed
public void keyPressed(KeyEvent k)
- Handle key stroke events
- Specified by:
keyPressed in interface KeyListener
keyReleased
public void keyReleased(KeyEvent k)
- Handle key stroke events
- Specified by:
keyReleased in interface KeyListener
keyTyped
public void keyTyped(KeyEvent k)
- Handle key stroke events
- Specified by:
keyTyped in interface KeyListener
actionPerformed
public void actionPerformed(ActionEvent e)
- Handle action events
- Specified by:
actionPerformed in interface ActionListener
mouseClicked
public void mouseClicked(MouseEvent e)
- Handle mouse events
- Specified by:
mouseClicked in interface MouseListener
mouseEntered
public void mouseEntered(MouseEvent e)
- Handle mouse events
- Specified by:
mouseEntered in interface MouseListener
mouseExited
public void mouseExited(MouseEvent e)
- Handle mouse events
- Specified by:
mouseExited in interface MouseListener
mousePressed
public void mousePressed(MouseEvent e)
- Handle mouse events
- Specified by:
mousePressed in interface MouseListener
mouseReleased
public void mouseReleased(MouseEvent e)
- Handle mouse events
- Specified by:
mouseReleased in interface MouseListener
mouseDragged
public void mouseDragged(MouseEvent e)
- Handle mouse motion events
- Specified by:
mouseDragged in interface MouseMotionListener
clearScreen
public void clearScreen()
- Clear screen
mouseMoved
public void mouseMoved(MouseEvent e)
- Handle mouse motion events
- Specified by:
mouseMoved in interface MouseMotionListener
update
public void update(Graphics g)
- Handle double buffering and do the real drawing.
- Overrides:
update in class Container
plotBarGraph
public void plotBarGraph(double[] data,
double min,
double max,
double dx)
- Plot bar graph
plotSlidingWindowGraph
public void plotSlidingWindowGraph(double[] data,
double min,
double max,
double dx,
double window_width)
- Plot sliding window
getSlidingWindowHistogram
public static int[] getSlidingWindowHistogram(double[] data,
double min,
double max,
double dx,
double window_width)
- Plot sliding window