|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.analysis.AbstractChartModel
public abstract class AbstractChartModel
Model (MVC) class used by the Chart GUI. A Model should contain enough data to create the appropriate plot object (OpenSequenceGraph, etc.) for that particular kind of plot. The actual models for Sequence Graphs, Histograms and so forth will extend this class.
| Field Summary | |
|---|---|
protected java.util.ArrayList |
dataSources
|
protected static java.lang.String |
SEQ_GIF
|
protected SimModel |
simModel
|
protected java.lang.String |
title
|
protected java.lang.String |
xAxisTitle
|
protected double |
xRangeIncr
|
protected double |
xRangeMax
|
protected double |
xRangeMin
|
protected java.lang.String |
yAxisTitle
|
protected double |
yRangeIncr
|
protected double |
yRangeMax
|
protected double |
yRangeMin
|
| Constructor Summary | |
|---|---|
AbstractChartModel(SimModel model)
Creates an AbstractChartModel. |
|
| Method Summary | |
|---|---|
abstract AbstractChartModel |
copy()
|
protected AbstractChartModel |
copy(AbstractChartModel aCopy)
Returns a deep copy of this AbstractChartModel. |
abstract OpenGraph |
createChart()
|
java.util.ArrayList |
getDataSources()
Returns an ArrayList of GuiChartDataSource objects. |
abstract javax.swing.Icon |
getIcon()
|
abstract java.util.ArrayList |
getModelDataSources()
|
SimModel |
getSimModel()
Returns the SimModel associated with this AbstractChartModel. |
java.lang.String |
getTitle()
Returns the title for the chart produced by this AbstractChartModel. |
abstract java.lang.String |
getType()
|
java.lang.String |
getXAxisTitle()
Gets the x-axis title for the chart produced by this AbstractChartModel. |
protected java.lang.String |
getXML()
Returns an XML string of the attributes of this AbstractChartModel. |
double |
getXRangeIncr()
Gets the amount to increment the displayed x-axis range when autoscaling the the chart produced by this AbstractChartModel. |
double |
getXRangeMax()
Gets the initial maximum value for the x-axis of the chart produced by this AbstractChartModel. |
double |
getXRangeMin()
Gets the initial minimum value for the x-axis of the chart produced by this AbstractChartModel. |
java.lang.String |
getYAxisTitle()
Gets the y-axis title for the chart produced by this AbstractChartModel. |
double |
getYRangeIncr()
Sets the amount to increment the displayed y-axis range when autoscaling the the chart produced by this AbstractChartModel. |
double |
getYRangeMax()
Gets the initial maximum value for the y-axis of the chart produced by this AbstractChartModel. |
double |
getYRangeMin()
Gets the initial minimum value for the y-axis of the chart produced by this AbstractChartModel. |
void |
setDataSources(java.util.ArrayList dataSources)
Sets the list of GuiChartDataSource objects. |
void |
setTitle(java.lang.String title)
Sets the title for the chart produced by this AbstractChartModel. |
void |
setXAxisTitle(java.lang.String xAxisTitle)
Sets the x-axis title for the chart produced by this AbstractChartModel. |
void |
setXRangeIncr(double xRangeIncr)
Sets the amount to increment the displayed x-axis range when autoscaling the the chart produced by this AbstractChartModel. |
void |
setXRangeIncr(java.lang.String xRangeIncr)
Sets the amount to increment the displayed x-axis range when autoscaling the the chart produced by this AbstractChartModel. |
void |
setXRangeMax(double xRangeMax)
Sets the initial maximum value for the x-axis of the chart produced by this AbstractChartModel. |
void |
setXRangeMax(java.lang.String xRangeMax)
Sets the initial maximum value for the x-axis of the chart produced by this AbstractChartModel. |
void |
setXRangeMin(double xRangeMin)
Sets the initial minimum value for the x-axis of the chart produced by this AbstractChartModel. |
void |
setXRangeMin(java.lang.String xRangeMin)
Sets the initial minimum value for the x-axis of the chart produced by this AbstractChartModel. |
void |
setYAxisTitle(java.lang.String yAxisTitle)
Sets the y-axis title for the chart produced by this AbstractChartModel. |
void |
setYRangeIncr(double yRangeIncr)
Sets the amount to increment the displayed y-axis range when autoscaling the the chart produced by this AbstractChartModel. |
void |
setYRangeIncr(java.lang.String yRangeIncr)
Sets the amount to increment the displayed y-axis range when autoscaling the the chart produced by this AbstractChartModel. |
void |
setYRangeMax(double yRangeMax)
Sets the initial maximum value for the y-axis of the chart produced by this AbstractChartModel. |
void |
setYRangeMax(java.lang.String yRangeMax)
Sets the initial maximum value for the y-axis of the chart produced by this AbstractChartModel. |
void |
setYRangeMin(double yRangeMin)
Sets the initial minimum value for the y-axis of the chart produced by this AbstractChartModel. |
void |
setYRangeMin(java.lang.String yRangeMin)
Sets the initial minimum value for the y-axis of the chart produced by this AbstractChartModel. |
abstract java.lang.String |
toXML()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String SEQ_GIF
protected java.lang.String title
protected java.lang.String xAxisTitle
protected java.lang.String yAxisTitle
protected double xRangeMin
protected double xRangeMax
protected double xRangeIncr
protected double yRangeMin
protected double yRangeMax
protected double yRangeIncr
protected SimModel simModel
protected java.util.ArrayList dataSources
| Constructor Detail |
|---|
public AbstractChartModel(SimModel model)
model - the SimModel associated with this AbstractChartModel| Method Detail |
|---|
public abstract java.lang.String getType()
public abstract AbstractChartModel copy()
public abstract java.util.ArrayList getModelDataSources()
public abstract javax.swing.Icon getIcon()
public abstract OpenGraph createChart()
public abstract java.lang.String toXML()
protected AbstractChartModel copy(AbstractChartModel aCopy)
aCopy - the subclass object to copy.
public SimModel getSimModel()
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title - the title for the chart produced by this model.public java.lang.String getXAxisTitle()
public void setXAxisTitle(java.lang.String xAxisTitle)
xAxisTitle - the x-axis titlepublic java.lang.String getYAxisTitle()
public void setYAxisTitle(java.lang.String yAxisTitle)
yAxisTitle - the y-axis titlepublic double getXRangeMin()
public void setXRangeMin(java.lang.String xRangeMin)
xRangeMin - the minimum x-axis valuepublic void setXRangeMin(double xRangeMin)
xRangeMin - the minimum x-axis valuepublic double getXRangeMax()
public void setXRangeMax(java.lang.String xRangeMax)
xRangeMax - the maximum x-axis valuepublic void setXRangeMax(double xRangeMax)
xRangeMax - the maximum x-axis valuepublic double getXRangeIncr()
public void setXRangeIncr(java.lang.String xRangeIncr)
xRangeIncr - the x-axis range incrementpublic void setXRangeIncr(double xRangeIncr)
xRangeIncr - the x-axis range incrementpublic double getYRangeMin()
public void setYRangeMin(java.lang.String yRangeMin)
yRangeMin - the minimum x-axis valuepublic void setYRangeMin(double yRangeMin)
yRangeMin - the minimum x-axis valuepublic double getYRangeMax()
public void setYRangeMax(java.lang.String yRangeMax)
yRangeMax - the maximum x-axis valuepublic void setYRangeMax(double yRangeMax)
yRangeMax - the maximum x-axis valuepublic double getYRangeIncr()
public void setYRangeIncr(java.lang.String yRangeIncr)
yRangeIncr - the y-axis range incrementpublic void setYRangeIncr(double yRangeIncr)
yRangeIncr - the y-axis range incrementpublic java.util.ArrayList getDataSources()
public void setDataSources(java.util.ArrayList dataSources)
dataSources - GuiChartDataSources for this AbstractChartModelprotected java.lang.String getXML()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||