|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Panel java.applet.Applet javax.swing.JApplet edu.ucla.stat.SOCR.core.ModelerGui
public class ModelerGui
This class defines a basic modeler object. Typically, the user generates some data by drawing with the mouse or reading URL/files. Then a model for the data is developed to fit the data. Usually the model has analytical (in terms of standard math functions), digital (discrete form of the analytical model) and graphical (visualization) components/representations. This class must be sub-classed by any SOCR Modeler Object to add the appropriate functionality. This class needs to be implemented fully. It's not complete as of Aug. 2003.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JApplet |
---|
javax.swing.JApplet.AccessibleJApplet |
Nested classes/interfaces inherited from class java.applet.Applet |
---|
java.applet.Applet.AccessibleApplet |
Nested classes/interfaces inherited from class java.awt.Panel |
---|
java.awt.Panel.AccessibleAWTPanel |
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.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
java.awt.datatransfer.Clipboard |
clipboard
|
java.lang.String[] |
columnNames
|
int |
columnNumber
|
java.lang.Object[][] |
dataObject
|
protected javax.swing.JPanel |
dataPanel
|
javax.swing.JTextField |
DataPts
|
SOCRJTable |
dataTable
|
protected java.lang.String |
dataText
|
protected javax.swing.JPanel |
datGenPanel
|
static double |
DEFAULT_MAX_X
|
static double |
DEFAULT_MAX_Y
|
static double |
DEFAULT_MIN_X
|
double |
defaultXMax
|
double |
defaultXMin
|
double |
defaultYMax
|
double |
defaultYMin
|
static java.lang.String |
FREQUENCY_COLUMN_NAME
|
ModelerHistogram |
graph
|
protected javax.swing.JPanel |
graphPanel
|
static double |
GUI_LOWER_LIMIT
|
static double |
GUI_UPPER_LIMIT
|
javax.swing.JTable |
headerTable
|
int |
histBinNos
|
protected javax.swing.JPanel |
infoPanel
|
javax.swing.JTextArea |
infoPanelTextArea
|
javax.swing.JLabel |
lDataPts
|
JSci.awt.DefaultGraph2DModel |
model
|
double |
modelLowerlimit
|
Modeler |
modelObject
|
int |
modelType
|
double |
modelUpperlimit
|
double[] |
modelXData
|
double[] |
modelYData
|
PluginLoader |
pLoader
|
float[] |
rawDat
|
protected javax.swing.JPanel |
resultPanel
|
javax.swing.JTextArea |
resultPanelTextArea
|
int |
rowNumber
|
sampler |
samplePanel
|
int |
scale
|
boolean |
scaleUp
|
javax.swing.JTabbedPane |
tabbedPanelContainer
|
javax.swing.table.DefaultTableModel |
tModel
|
static java.lang.String |
VALUE_COLUMN_NAME
This method initializes the experiment |
float[] |
xhist
|
float[] |
yhist
|
Fields inherited from class javax.swing.JApplet |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
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 | |
---|---|
ModelerGui()
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
This method handles the events for the About button and the Reset button. |
void |
addTabbedPane(java.lang.String name,
javax.swing.JComponent c)
|
void |
clearData()
|
double |
findMaxInput(float[] inputArray)
|
double |
findMinInput(float[] inputArray)
|
void |
fitC()
|
void |
fitC(boolean status)
|
void |
fitC(boolean rescaleClicked,
boolean status,
boolean reinitMixtureModel)
|
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
|
java.lang.String |
getAppletInfo()
This method returns basic copyright information |
static Modeler |
getInstance(java.lang.String classname)
|
java.lang.String |
getOnlineDescription()
This method returns an online description of this Model. |
float[] |
histBins(float[] xdata,
float minx,
float maxx)
|
void |
histToRaw()
|
void |
init()
|
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
void |
mouseClicked(java.awt.event.MouseEvent event)
|
void |
mouseDragged(java.awt.event.MouseEvent event)
|
void |
mouseEntered(java.awt.event.MouseEvent event)
|
void |
mouseExited(java.awt.event.MouseEvent event)
|
void |
mouseMoved(java.awt.event.MouseEvent event)
|
void |
mousePressed(java.awt.event.MouseEvent event)
|
void |
mouseReleased(java.awt.event.MouseEvent event)
|
void |
panLeft()
|
void |
panRight()
|
void |
rawToHist()
|
void |
reset()
This is the method for resetting the Model and should be overridden. |
void |
setBins(int bins)
|
void |
setCodeBase(java.net.URL codebase)
|
void |
setDataFromFile(float[] xData,
float[] yData)
|
void |
setLowerLimit(double input)
|
void |
setRawData(boolean isRaw)
|
void |
setUpperLimit(double input)
|
void |
setXScale(int XSize,
boolean positiveOnly)
|
void |
setYScale(int YSize)
|
void |
start()
This method sets up the About dialog box |
void |
syncData()
|
void |
syncMouseData()
|
void |
toggleParams(boolean isTrue)
|
boolean |
useInitButton()
|
void |
usePosNegX()
|
void |
usePosX()
|
int |
zoomIn(int bins,
boolean positiveOnly)
|
void |
zoomInY(double maxY,
boolean positiveOnly)
|
int |
zoomOut(int bins,
boolean positiveOnly)
|
Methods inherited from class javax.swing.JApplet |
---|
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.applet.Applet |
---|
destroy, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, stop |
Methods inherited from class java.awt.Panel |
---|
addNotify |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, 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 |
---|
public java.awt.datatransfer.Clipboard clipboard
public float[] xhist
public float[] yhist
public float[] rawDat
public int histBinNos
public int scale
public double[] modelXData
public double[] modelYData
public JSci.awt.DefaultGraph2DModel model
public boolean scaleUp
public int modelType
public Modeler modelObject
protected javax.swing.JPanel dataPanel
protected javax.swing.JPanel resultPanel
protected javax.swing.JPanel graphPanel
protected javax.swing.JPanel datGenPanel
protected javax.swing.JPanel infoPanel
public javax.swing.JTabbedPane tabbedPanelContainer
public javax.swing.JTextArea resultPanelTextArea
public javax.swing.JTextArea infoPanelTextArea
public SOCRJTable dataTable
public javax.swing.JTable headerTable
public javax.swing.JTextField DataPts
public javax.swing.JLabel lDataPts
public javax.swing.table.DefaultTableModel tModel
public java.lang.Object[][] dataObject
protected java.lang.String dataText
public int columnNumber
public int rowNumber
public java.lang.String[] columnNames
public static final double GUI_UPPER_LIMIT
public static final double GUI_LOWER_LIMIT
public double modelUpperlimit
public double modelLowerlimit
public double defaultXMax
public double defaultXMin
public double defaultYMin
public double defaultYMax
public ModelerHistogram graph
public sampler samplePanel
public PluginLoader pLoader
public static final java.lang.String VALUE_COLUMN_NAME
public static final java.lang.String FREQUENCY_COLUMN_NAME
public static final double DEFAULT_MAX_X
public static final double DEFAULT_MAX_Y
public static final double DEFAULT_MIN_X
Constructor Detail |
---|
public ModelerGui()
Method Detail |
---|
public void setCodeBase(java.net.URL codebase)
public void init()
init
in class java.applet.Applet
public static Modeler getInstance(java.lang.String classname) throws java.lang.Exception
java.lang.Exception
public void fitC(boolean rescaleClicked, boolean status, boolean reinitMixtureModel)
public void fitC(boolean status)
public void fitC()
public void syncMouseData()
public void syncData()
public java.lang.String getAppletInfo()
getAppletInfo
in class java.applet.Applet
public void start()
start
in class java.applet.Applet
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent event)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent event)
mouseExited
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent event)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent event)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void reset()
public java.lang.String getOnlineDescription()
public void addTabbedPane(java.lang.String name, javax.swing.JComponent c)
public void clearData()
public void toggleParams(boolean isTrue)
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
public void rawToHist()
public float[] histBins(float[] xdata, float minx, float maxx)
public void histToRaw()
public void setBins(int bins)
public void setXScale(int XSize, boolean positiveOnly)
public void setYScale(int YSize)
public void panLeft()
public void panRight()
public int zoomIn(int bins, boolean positiveOnly)
public int zoomOut(int bins, boolean positiveOnly)
public void zoomInY(double maxY, boolean positiveOnly)
public void usePosX()
public void usePosNegX()
public void setUpperLimit(double input)
public void setLowerLimit(double input)
public boolean useInitButton()
public double findMaxInput(float[] inputArray)
public double findMinInput(float[] inputArray)
public void setDataFromFile(float[] xData, float[] yData)
public void setRawData(boolean isRaw)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |