public class PlotModel extends AbstractDataModel
IqmDataBox.| Modifier and Type | Field and Description |
|---|---|
private Vector<Double> |
data
The variable for the data values.
|
private String |
dataHeader
The variable for the data header (y-axis).
|
private String |
dataUnit
The variable for the data unit.
|
private Vector<Double> |
domain
The variable for the domain values.
|
private String |
domainHeader
The variable for the domain header (x-axis).
|
private String |
domainUnit
The variable for the domain units.
|
private static long |
serialVersionUID
The UID for serialization.
|
modelName, properties| Constructor and Description |
|---|
PlotModel()
Standard Constructor.
|
PlotModel(String name,
String domainHeader,
String domainUnit,
String dataHeader,
String dataUnit,
Vector<Double> domain,
Vector<Double> data)
Directly construct a new
PlotModel. |
PlotModel(String domainHeader,
String domainUnit,
String dataHeader,
String dataUnit,
Vector<Double> domain,
Vector<Double> data)
Directly construct a new
PlotModel. |
| Modifier and Type | Method and Description |
|---|---|
PlotModel |
clone() |
void |
createLinearDomain(Number start,
Number end,
Number step)
Creates a linear domain for a given range.
|
Vector<Double> |
getData()
Get the values for the plot's range (y-coordinates).
|
String |
getDataHeader()
Get the values for the plot's range (y-coordinates).
|
String |
getDataUnit()
Get the values for the plot's range (y-coordinates).
|
Vector<Double> |
getDomain()
Get the values for the plot's domain (x-coordinates).
|
String |
getDomainHeader()
Get the header description for the plot's domain (x-coordinates).
|
String |
getDomainUnit()
Get the unit for the plot's domain (x-coordinates).
|
void |
setData(Vector<Double> data)
Set the values for the plot's range (y-coordinates).
|
void |
setDataHeader(String dataHeader)
Set the header for the plot's range (y-coordinates).
|
void |
setDataUnit(String dataUnit)
Set the unit for the plot's range (y-coordinates).
|
void |
setDomain(Vector<Double> domain)
Set the values for the plot's domain (x-coordinates).
|
void |
setDomainHeader(String domainHeader)
Set the header description for the plot's domain (x-coordinates).
|
void |
setDomainUnit(String domainUnit)
Set the unit for the plot's domain (x-coordinates).
|
copyProperties, getDataType, getModelName, getProperties, getProperty, setDataType, setModelName, setProperties, setPropertyprivate static final long serialVersionUID
private String dataHeader
private String dataUnit
private String domainHeader
private String domainUnit
public PlotModel()
public PlotModel(String domainHeader, String domainUnit, String dataHeader, String dataUnit, Vector<Double> domain, Vector<Double> data)
PlotModel.domainHeader - The header of the x-axis. May be null.domainUnit - The units of the x-axis. May be null.dataHeader - The header of the y-axis. May be null.dataUnit - The units of the y-axis. May be null.domain - The values for the x-axis. Must not be null.data - The values for the y-axis. Must not be null.public PlotModel(String name, String domainHeader, String domainUnit, String dataHeader, String dataUnit, Vector<Double> domain, Vector<Double> data)
PlotModel.name - The name of the model. Must not be null.domainHeader - The header of the x-axis. May be null.domainUnit - The units of the x-axis. May be null.dataHeader - The header of the y-axis. May be null.dataUnit - The units of the y-axis. May be null.domain - The values for the x-axis. Must not be null.data - The values for the y-axis. Must not be null.public String getDataHeader()
Optional. Header description of the data (i.e. the y-axis): e.g. "velocity" or "v".
public void setDataHeader(String dataHeader)
Optional. Header description of the data (i.e. the y-axis): e.g. "velocity" or "v".
dataHeader - public String getDataUnit()
Optional. Unit, the data is represented in: e.g. "km/h".
public void setDataUnit(String dataUnit)
Optional. Unit, the data is represented in: e.g. "km/h".
dataUnit - public Vector<Double> getData()
Required. The original series (1 dimensional) data vector in double precision.
public void setData(Vector<Double> data)
Required. The original series (1 dimensional) data vector in double precision.
data - public String getDomainHeader()
Optional. Header description of the domain (i.e. the x-axis): e.g. "space" or "s".
public void setDomainHeader(String domainHeader)
Optional. Header description of the domain (i.e. the x-axis): e.g. "space" or "s".
domainHeader - public String getDomainUnit()
Optional. Unit, the data is represented in: e.g. "km".
public void setDomainUnit(String domainUnit)
Optional. Unit, the data is represented in: e.g. "km".
domainUnit - public Vector<Double> getDomain()
Optional. A custom (1-dimensional) domain value vector in double precision.
public void setDomain(Vector<Double> domain)
Optional. A custom (1-dimensional) domain value vector in double precision.
domain - public void createLinearDomain(Number start, Number end, Number step)
start - start pointend - end pointstep - the step sizepublic PlotModel clone() throws CloneNotSupportedException
clone in class AbstractDataModelCloneNotSupportedExceptionCopyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.