public class StockApplication extends Application implements java.util.Observer, IExperiment, java.awt.event.ActionListener
MultiplePartsPanel.SOCRToolBar| Modifier and Type | Field and Description |
|---|---|
protected int |
CHART_SIZE_X |
protected int |
CHART_SIZE_Y |
protected org.jfree.chart.ChartPanel |
chartPanel |
protected javax.swing.JTextField[] |
in |
protected double[] |
input |
protected javax.swing.JSplitPane |
upContainer |
numStocksapplet, fName, graphs, mainPane, recordTable, tables, toolbar, toolbar2, toolbars| Constructor and Description |
|---|
StockApplication() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt) |
void |
calculate(java.lang.String choice) |
protected org.jfree.data.xy.XYSeriesCollection |
createDataset(java.lang.String choice) |
protected org.jfree.chart.JFreeChart |
createEmptyChart(org.jfree.data.general.PieDataset dataset) |
java.lang.String |
getAppletInfo() |
java.awt.Container |
getDisplayPane() |
java.lang.String |
getOnlineDescription() |
void |
init() |
void |
initialize() |
void |
mouseClicked(java.awt.event.MouseEvent event) |
void |
update()
This method is the default update method and defines how the display is
updated.
|
void |
update(java.util.Observable arg0,
java.lang.Object arg1)
This method is the default update method and defines how the display is
updated.
|
addTool2, doExperiment, emptyTool, emptyTool2, getInstance, getLocalAbout, getLocalHelp, getResultTable, getStopFreq, getTime, getWikiAbout, getWikiHelp, graphUpdate, loadSlider, reset, setApplet, setNumberStocks, setShowModelDistribution, setStopFreq, setStopNow, setTangent, step, stop, updateGraphaddGraph, addTable, addTool, addTool2, addToolbar, format, getMainPanel, getName, getRecordTable, getTextPanel, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, play, setNamecreateComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSettersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoExperiment, getResultTable, getStopFreq, getTime, graphUpdate, reset, setShowModelDistribution, setStopFreq, setStopNow, step, stopgetName, setAppletprotected final int CHART_SIZE_X
protected final int CHART_SIZE_Y
protected org.jfree.chart.ChartPanel chartPanel
protected javax.swing.JSplitPane upContainer
protected double[] input
protected javax.swing.JTextField[] in
public void init()
init in class Applicationprotected org.jfree.data.xy.XYSeriesCollection createDataset(java.lang.String choice)
protected org.jfree.chart.JFreeChart createEmptyChart(org.jfree.data.general.PieDataset dataset)
public void update(java.util.Observable arg0,
java.lang.Object arg1)
update in interface java.util.Observerupdate in class MultiplePartsPanelpublic void calculate(java.lang.String choice)
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed in interface java.awt.event.ActionListenerpublic void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked in interface java.awt.event.MouseListenermouseClicked in class MultiplePartsPanelpublic java.lang.String getOnlineDescription()
getOnlineDescription in interface IExperimentgetOnlineDescription in class Applicationpublic java.lang.String getAppletInfo()
getAppletInfo in interface IExperimentgetAppletInfo in class Applicationpublic java.awt.Container getDisplayPane()
getDisplayPane in interface PluginablegetDisplayPane in class Applicationpublic void update()
IExperimentupdate in interface IExperimentupdate in class Applicationpublic void initialize()
initialize in interface IExperimentinitialize in class Application