jas2.hist
Class JASHist1DFunctionData
- java.lang.Object
-
- java.util.Observable
-
- jas2.hist.JASHistData
-
- jas2.hist.JASHist1DFunctionData
-
- All Implemented Interfaces:
- java.io.Serializable, java.util.Observer
public class JASHist1DFunctionData extends JASHistData implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class jas2.hist.JASHistData
YAXIS_LEFT, YAXIS_RIGHT
-
-
Constructor Summary
Constructors Constructor and Description JASHist1DFunctionData(jas2.hist.DataManager parent, Basic1DFunction ds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaxisChanged()voiddelete()DataSourcegetDataSource()Get the DataSource associated with this JASHistDataJASHistStylegetStyle()Get the JASHistStyle associated with this DataSourcejava.lang.StringgetTitle()Get the title of the associated DataSourcevoidsetStyle(JASHistStyle style)Set a style for this data.voidsetXBounds(double xmin, double xmax)voidupdate(java.util.Observable o, java.lang.Object arg)voidwriteAsXML(jas2.hist.XMLPrintWriter pw, boolean snapshot)Writes the data and surrounding XML tags.-
Methods inherited from class jas2.hist.JASHistData
getFittableDataSource, getLegendText, getNormalization, getShowStatistics, getYAxis, isShowing, setLegendText, setNormalization, setShowing, setShowLegend, setShowStatistics, setYAxis, show, toString
-
-
-
-
Constructor Detail
-
JASHist1DFunctionData
public JASHist1DFunctionData(jas2.hist.DataManager parent, Basic1DFunction ds)
-
-
Method Detail
-
setStyle
public void setStyle(JASHistStyle style)
Description copied from class:JASHistDataSet a style for this data. The JASHistStyle object passed to this method must be appropriate for the corresponding DataSource, e.g. if the DataSource is a Rebinnable1DHistogramData then the JASHistStyle must be a JASHist1DStyle.- Specified by:
setStylein classJASHistData- Parameters:
style- The style to be set
-
update
public void update(java.util.Observable o, java.lang.Object arg)- Specified by:
updatein interfacejava.util.Observer
-
axisChanged
public void axisChanged()
-
setXBounds
public void setXBounds(double xmin, double xmax)- Overrides:
setXBoundsin classJASHistData
-
getTitle
public java.lang.String getTitle()
Description copied from class:JASHistDataGet the title of the associated DataSource- Specified by:
getTitlein classJASHistData- Returns:
- The title
-
getStyle
public JASHistStyle getStyle()
Description copied from class:JASHistDataGet the JASHistStyle associated with this DataSource- Specified by:
getStylein classJASHistData- Returns:
- The associated style
-
getDataSource
public DataSource getDataSource()
Description copied from class:JASHistDataGet the DataSource associated with this JASHistData- Specified by:
getDataSourcein classJASHistData- Returns:
- The associated DataSource
-
writeAsXML
public void writeAsXML(jas2.hist.XMLPrintWriter pw, boolean snapshot)Description copied from class:JASHistDataWrites the data and surrounding XML tags. Subclasses must implement this sensibly.
-
delete
public void delete()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG