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 |
numStocks
applet, 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, updateGraph
addGraph, addTable, addTool, addTool2, addToolbar, format, getMainPanel, getName, getRecordTable, getTextPanel, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, play, setName
createComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSetters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doExperiment, getResultTable, getStopFreq, getTime, graphUpdate, reset, setShowModelDistribution, setStopFreq, setStopNow, step, stop
getName, setApplet
protected 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 Application
protected 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.Observer
update
in class MultiplePartsPanel
public void calculate(java.lang.String choice)
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
public void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class MultiplePartsPanel
public java.lang.String getOnlineDescription()
getOnlineDescription
in interface IExperiment
getOnlineDescription
in class Application
public java.lang.String getAppletInfo()
getAppletInfo
in interface IExperiment
getAppletInfo
in class Application
public java.awt.Container getDisplayPane()
getDisplayPane
in interface Pluginable
getDisplayPane
in class Application
public void update()
IExperiment
update
in interface IExperiment
update
in class Application
public void initialize()
initialize
in interface IExperiment
initialize
in class Application