Package adams.flow.container
Class SequencePlotterContainer
- java.lang.Object
-
- adams.flow.container.AbstractContainer
-
- adams.flow.container.SequencePlotterContainer
-
- All Implemented Interfaces:
CloneHandler<Container>,GlobalInfoSupporter,SpreadSheetSupporter,Container,Serializable
public class SequencePlotterContainer extends AbstractContainer
A container for a single plot item. Can be used to name plots.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSequencePlotterContainer.ContentTypeThe type of content in the container.
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_PLOTNAMEthe default plot name.static StringVALUE_CONTENTTYPEthe identifier for the "content type" value.static StringVALUE_ERROR_Xthe identifier for the X error value.static StringVALUE_ERROR_Ythe identifier for the Y error value.static StringVALUE_METADATAthe identifier for the meta-data.static StringVALUE_PLOTNAMEthe identifier for the PlotName.static StringVALUE_Xthe identifier for the X value.static StringVALUE_Ythe identifier for the Y value.-
Fields inherited from class adams.flow.container.AbstractContainer
m_AdditionalNames, m_Help, m_Values
-
-
Constructor Summary
Constructors Constructor Description SequencePlotterContainer()Initializes the container with the default plot name and no X value and Y value of 0.0.SequencePlotterContainer(Comparable x, Comparable y)Initializes the container with the default plot name.SequencePlotterContainer(String plotName, Comparable y)Initializes the container with the specified plot name and no X value.SequencePlotterContainer(String plotName, Comparable y, SequencePlotterContainer.ContentType type)Initializes the container with the specified plot name and no X value.SequencePlotterContainer(String plotName, Comparable x, Comparable y)Initializes the container with the default plot name.SequencePlotterContainer(String plotName, Comparable x, Comparable y, SequencePlotterContainer.ContentType type)Initializes the container with the default plot name.SequencePlotterContainer(String plotName, Comparable x, Comparable y, Double[] errorX, Double[] errorY, SequencePlotterContainer.ContentType type)Initializes the container with the default plot name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectaddMetaData(String key, Object value)Adds the meta-data key-value relation.HashMap<String,Object>getMetaData()Returns the meta-data, if any.booleanhasMetaData()Checks whether any meta-data is stored.protected voidinitHelp()Initializes the help strings.booleanisValid()Checks whether the setup of the container is valid.Iterator<String>names()Returns all value names that can be used (theoretically).-
Methods inherited from class adams.flow.container.AbstractContainer
addAdditionalName, addHelp, addHelp, addHelp, checkDefaultConstructor, getClone, getHelp, getValue, getValue, globalInfo, hasHelp, hasValue, isValidName, removeAdditionalName, setValue, store, stored, toSpreadSheet, toString
-
-
-
-
Field Detail
-
VALUE_PLOTNAME
public static final String VALUE_PLOTNAME
the identifier for the PlotName.- See Also:
- Constant Field Values
-
VALUE_X
public static final String VALUE_X
the identifier for the X value.- See Also:
- Constant Field Values
-
VALUE_Y
public static final String VALUE_Y
the identifier for the Y value.- See Also:
- Constant Field Values
-
VALUE_CONTENTTYPE
public static final String VALUE_CONTENTTYPE
the identifier for the "content type" value.- See Also:
- Constant Field Values
-
DEFAULT_PLOTNAME
public static final String DEFAULT_PLOTNAME
the default plot name.- See Also:
- Constant Field Values
-
VALUE_ERROR_X
public static final String VALUE_ERROR_X
the identifier for the X error value.- See Also:
- Constant Field Values
-
VALUE_ERROR_Y
public static final String VALUE_ERROR_Y
the identifier for the Y error value.- See Also:
- Constant Field Values
-
VALUE_METADATA
public static final String VALUE_METADATA
the identifier for the meta-data.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SequencePlotterContainer
public SequencePlotterContainer()
Initializes the container with the default plot name and no X value and Y value of 0.0.
Only used for generating help information.
-
SequencePlotterContainer
public SequencePlotterContainer(String plotName, Comparable y)
Initializes the container with the specified plot name and no X value.- Parameters:
plotName- the name of the ploty- the y value of the plot
-
SequencePlotterContainer
public SequencePlotterContainer(String plotName, Comparable y, SequencePlotterContainer.ContentType type)
Initializes the container with the specified plot name and no X value.- Parameters:
plotName- the name of the ploty- the y value of the plottype- what this container represents
-
SequencePlotterContainer
public SequencePlotterContainer(Comparable x, Comparable y)
Initializes the container with the default plot name.- Parameters:
x- the x value of the ploty- the y value of the plot- See Also:
DEFAULT_PLOTNAME
-
SequencePlotterContainer
public SequencePlotterContainer(String plotName, Comparable x, Comparable y)
Initializes the container with the default plot name.- Parameters:
plotName- the name of the plotx- the x value of the ploty- the y value of the plot
-
SequencePlotterContainer
public SequencePlotterContainer(String plotName, Comparable x, Comparable y, SequencePlotterContainer.ContentType type)
Initializes the container with the default plot name.- Parameters:
plotName- the name of the plotx- the x value of the ploty- the y value of the plottype- what this container represents
-
SequencePlotterContainer
public SequencePlotterContainer(String plotName, Comparable x, Comparable y, Double[] errorX, Double[] errorY, SequencePlotterContainer.ContentType type)
Initializes the container with the default plot name.- Parameters:
plotName- the name of the plotx- the x value of the ploty- the y value of the ploterrorX- the error range for XerrorY- the error range for Ytype- what this container represents
-
-
Method Detail
-
initHelp
protected void initHelp()
Initializes the help strings.- Overrides:
initHelpin classAbstractContainer
-
names
public Iterator<String> names()
Returns all value names that can be used (theoretically).- Specified by:
namesin interfaceContainer- Specified by:
namesin classAbstractContainer- Returns:
- enumeration over all possible value names
-
addMetaData
public Object addMetaData(String key, Object value)
Adds the meta-data key-value relation. Ignores null values.- Parameters:
key- the key of the meta-data valuevalue- the associated value- Returns:
- any previously stored value, null if none replaced
-
hasMetaData
public boolean hasMetaData()
Checks whether any meta-data is stored.- Returns:
- true if any meta-data stored
-
getMetaData
public HashMap<String,Object> getMetaData()
Returns the meta-data, if any.- Returns:
- the meta-data, null if none stored
-
isValid
public boolean isValid()
Checks whether the setup of the container is valid.- Specified by:
isValidin interfaceContainer- Specified by:
isValidin classAbstractContainer- Returns:
- true if all the necessary values are available
-
-