|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.primordion.xholon.io.AbstractHistogramViewer org.primordion.xholon.io.HistogramViewerGnuplot
Captures data, and creates a histogram using gnuplot.
The file is in comma delimited .csv format, and can therefore be processed by various applications, including Microsoft Excel, and gnuplot. In addition to writing out the data, this class also produces a gnuplot script file that will generate a .png file from the data. You can download gnuplot free from www.gnuplot.info. On a Windows computer, if you double-click the .csv file, it will be directly loaded into Excel as a spreadsheet, from which you can easily generate a chart. Data and script files are written by default to the statistics directory.
Constructor Summary | |
HistogramViewerGnuplot()
default constructor |
|
HistogramViewerGnuplot(IXholon histRootModel,
IXholon histRootView,
IXholonClass xhClass,
int numBins,
int nameConcatLevels,
java.lang.String pathName,
java.lang.String typeOfData,
int writeType)
constructor |
Method Summary | |
void |
chart(double[] values)
Produce a histogram chart. |
void |
initialize(IXholon histRootModel,
IXholon histRootView,
IXholonClass xhClass,
int numBins,
int nameConcatLevels)
This method may not be useful for the Gnuplot concrete class. |
void |
initialize(IXholon histRootModel,
IXholon histRootView,
IXholonClass xhClass,
int numBins,
int nameConcatLevels,
java.lang.String pathName,
java.lang.String typeOfData,
int writeType)
Initialize the histogram viewer. |
void |
remove()
Remove the chart from the screen. |
Methods inherited from class org.primordion.xholon.io.AbstractHistogramViewer |
chart, setXRange, setYRange |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.primordion.xholon.io.IHistogramViewer |
chart, setXRange, setYRange |
Constructor Detail |
public HistogramViewerGnuplot()
public HistogramViewerGnuplot(IXholon histRootModel, IXholon histRootView, IXholonClass xhClass, int numBins, int nameConcatLevels, java.lang.String pathName, java.lang.String typeOfData, int writeType)
histRootModel
- The root node of a Xholon subtree in the model,
that will be traversed looking for instances of the xholon class.histRootView
- Root node in the view. This is the "HistogramViewer" node.xhClass
- A Xholon class whose instances will be queried for values, using getVal().numBins
- Number of bins.nameConcatLevels
- Number of composite levels to concatenate in deriving name.pathName
- Path in which data and plot files will be created.typeOfData
- The type of data will be included as part of the file name.writeType
- Type of data to write.Method Detail |
public void initialize(IXholon histRootModel, IXholon histRootView, IXholonClass xhClass, int numBins, int nameConcatLevels)
initialize
in interface IHistogramViewer
histRootModel
- The root node of a Xholon subtree in the model,
that will be traversed looking for instances of the xholon class.histRootView
- Root node in the view. This is the "HistogramViewer" node.xhClass
- A Xholon class whose instances will be queried for values, using getVal().numBins
- Number of bins.nameConcatLevels
- Number of composite levels to concatenate in deriving name.IHistogramViewer.initialize(org.primordion.xholon.base.IXholon, org.primordion.xholon.base.IXholon, org.primordion.xholon.base.IXholonClass, int, int)
public void initialize(IXholon histRootModel, IXholon histRootView, IXholonClass xhClass, int numBins, int nameConcatLevels, java.lang.String pathName, java.lang.String typeOfData, int writeType)
histRootModel
- The root node of a Xholon subtree in the model,
that will be traversed looking for instances of the xholon class.histRootView
- Root node in the view. This is the "HistogramViewer" node.xhClass
- A Xholon class whose instances will be queried for values, using getVal().numBins
- Number of bins.nameConcatLevels
- Number of composite levels to concatenate in deriving name.pathName
- Path in which data and plot files will be created.typeOfData
- The type of data will be included as part of the file name.writeType
- Type of data to write.public void chart(double[] values)
IHistogramViewer
chart
in interface IHistogramViewer
chart
in class AbstractHistogramViewer
public void remove()
IHistogramViewer
remove
in interface IHistogramViewer
remove
in class AbstractHistogramViewer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |