public class PlotProvider
extends java.lang.Object
Constructor and Description |
---|
PlotProvider()
Default constructor
|
PlotProvider(java.lang.String newPlotTitle)
A comprehensive constructor that takes in a plot title
|
Modifier and Type | Method and Description |
---|---|
void |
addSeries(double time,
SeriesProvider newSeries)
Adds a new SeriesProvider to the specified time
|
java.lang.String |
getPlotTitle()
Accessor for the plot title
|
java.util.ArrayList<SeriesProvider> |
getSeriesAtTime(double time)
Returns all the series at a specified time
|
java.util.ArrayList<java.lang.Double> |
getTimes()
Accessor for the times
|
java.lang.String |
getTimeUnits()
Accessor for the time units
|
java.lang.String |
getXAxisTitle()
Accessor for the x axis title
|
java.lang.String |
getYAxisTitle()
Accessor for the y axis title
|
boolean |
isContour()
Method to check if this plotProvider is a contour
|
void |
removeSeries(double time,
SeriesProvider oldSeries)
Removes an existing SeriesProvider from the specified time.
|
void |
setPlotAsContour() |
void |
setPlotTitle(java.lang.String plotTitle)
Mutator for the plot title
|
void |
setTimeUnits(java.lang.String timeUnits) |
void |
setXAxisTitle(java.lang.String newXTitle) |
void |
setYAxisTitle(java.lang.String newYTitle) |
public PlotProvider()
public PlotProvider(java.lang.String newPlotTitle)
public void addSeries(double time, SeriesProvider newSeries)
time
- newSeries
- public void removeSeries(double time, SeriesProvider oldSeries)
time
- The time at which the series should be removed.oldSeries
- The series that should be removed.public java.util.ArrayList<SeriesProvider> getSeriesAtTime(double time)
time
- public java.lang.String getPlotTitle()
public java.lang.String getXAxisTitle()
public java.lang.String getYAxisTitle()
public java.lang.String getTimeUnits()
public java.util.ArrayList<java.lang.Double> getTimes()
public boolean isContour()
public void setPlotTitle(java.lang.String plotTitle)
plotTitle
- public void setXAxisTitle(java.lang.String newXTitle)
newXTitle
- public void setYAxisTitle(java.lang.String newYTitle)
newYTitle
- public void setTimeUnits(java.lang.String timeUnits)
timeUnits
- public void setPlotAsContour()