edu.ucla.stat.SOCR.util
Class SamplingExperimentHistogram

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by edu.ucla.stat.SOCR.util.SamplingExperimentHistogram
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class SamplingExperimentHistogram
extends javax.swing.JPanel
implements java.awt.event.MouseMotionListener, java.awt.event.MouseListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 java.lang.String title
           
 
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
SamplingExperimentHistogram(float[] fs, int[] is, int i)
           
SamplingExperimentHistogram(java.lang.String string, float[] fs, int[] is, int i, boolean[] bools, boolean bool, int i_0_, int i_1_, int i_2_, boolean bool_3_, boolean bool_4_, int i_5_, java.awt.Color[] colors)
           
 
Method Summary
 void addX(int i)
           
 void AdRect(int i, java.awt.Graphics graphics)
           
 void changeDist(int i, int i_48_)
           
 void clear()
           
 double ComputeGroupedMean(int[] is, float[] fs, int i)
           
 double ComputeGroupedMedian(int[] is, int i, int i_15_)
           
 double ComputeGroupedRange(int[] is, float[] fs, int i)
           
 double ComputeGroupedsd(int[] is, float[] fs, int i)
           
 double ComputeKurt(int[] is, float[] fs, int i, double d)
           
 double ComputeMAD(int[] is, float[] fs, int i)
           
 double ComputeSkew(int[] is, float[] fs, int i, double d)
           
 void computeStats()
           
 double[] getComputedHistoStats()
           
 int getNumSamples()
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void paintComponent(java.awt.Graphics graphics)
           
 void plotStats(java.awt.Graphics graphics)
           
 int PrepAdd(double d)
           
 void printStat(double d, boolean bool, float f, float f_127_, int i, int i_128_, int i_129_, int i_130_, java.lang.String string, java.awt.Graphics graphics, java.awt.FontMetrics fontmetrics)
           
 void setClickable(boolean bool)
           
 void setData(float[] fs)
           
 void setData(int[] is, int i, boolean bool, double d, double d_135_)
           
 void setEndsOnly(boolean bool)
           
 void setFmax(double d)
           
 void setGap(int i)
           
 void SetNorm(boolean bool)
           
 void setStats(boolean bool)
           
 void setStats(boolean[] bools)
           
 void setTitle(java.lang.String string)
           
 void setXaxisDec(int i)
           
 void update(java.awt.Graphics graphics)
           
 double zprob(double d)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

title

public java.lang.String title
Constructor Detail

SamplingExperimentHistogram

public SamplingExperimentHistogram(java.lang.String string,
                                   float[] fs,
                                   int[] is,
                                   int i,
                                   boolean[] bools,
                                   boolean bool,
                                   int i_0_,
                                   int i_1_,
                                   int i_2_,
                                   boolean bool_3_,
                                   boolean bool_4_,
                                   int i_5_,
                                   java.awt.Color[] colors)

SamplingExperimentHistogram

public SamplingExperimentHistogram(float[] fs,
                                   int[] is,
                                   int i)
Method Detail

AdRect

public void AdRect(int i,
                   java.awt.Graphics graphics)

ComputeGroupedMean

public double ComputeGroupedMean(int[] is,
                                 float[] fs,
                                 int i)

ComputeGroupedMedian

public double ComputeGroupedMedian(int[] is,
                                   int i,
                                   int i_15_)

ComputeGroupedRange

public double ComputeGroupedRange(int[] is,
                                  float[] fs,
                                  int i)

ComputeGroupedsd

public double ComputeGroupedsd(int[] is,
                               float[] fs,
                               int i)

ComputeKurt

public double ComputeKurt(int[] is,
                          float[] fs,
                          int i,
                          double d)

ComputeMAD

public double ComputeMAD(int[] is,
                         float[] fs,
                         int i)

ComputeSkew

public double ComputeSkew(int[] is,
                          float[] fs,
                          int i,
                          double d)

PrepAdd

public int PrepAdd(double d)

SetNorm

public final void SetNorm(boolean bool)

addX

public void addX(int i)

changeDist

public void changeDist(int i,
                       int i_48_)

clear

public void clear()

getNumSamples

public int getNumSamples()

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

paintComponent

public void paintComponent(java.awt.Graphics graphics)
Overrides:
paintComponent in class javax.swing.JComponent

computeStats

public void computeStats()

getComputedHistoStats

public double[] getComputedHistoStats()

plotStats

public void plotStats(java.awt.Graphics graphics)

printStat

public void printStat(double d,
                      boolean bool,
                      float f,
                      float f_127_,
                      int i,
                      int i_128_,
                      int i_129_,
                      int i_130_,
                      java.lang.String string,
                      java.awt.Graphics graphics,
                      java.awt.FontMetrics fontmetrics)

setClickable

public void setClickable(boolean bool)

setData

public void setData(float[] fs)

setData

public void setData(int[] is,
                    int i,
                    boolean bool,
                    double d,
                    double d_135_)

setEndsOnly

public void setEndsOnly(boolean bool)

setFmax

public void setFmax(double d)

setGap

public void setGap(int i)

setStats

public void setStats(boolean bool)

setStats

public void setStats(boolean[] bools)

setTitle

public void setTitle(java.lang.String string)

setXaxisDec

public void setXaxisDec(int i)

update

public void update(java.awt.Graphics graphics)
Overrides:
update in class javax.swing.JComponent

zprob

public double zprob(double d)