Class Histogram

    • Field Detail

      • m_Data

        protected SpreadSheet m_Data
        Data to be plotted
      • m_Array

        protected Double[] m_Array
        double array to plot.
      • m_Plot

        protected HistogramPanel m_Plot
        Panel for displaying the histogram
      • m_HistOptions

        protected HistogramOptions m_HistOptions
        Options for the histogram
      • m_Index

        protected int m_Index
        Position of the residuals attribute within the data
      • m_DataName

        protected String m_DataName
        the name to use for the x-axis.
      • m_Plotdata

        protected double[][] m_Plotdata
        the data to plot.
      • m_Ranges

        protected String[] m_Ranges
        the ranges.
      • m_BinWidth

        protected double m_BinWidth
        the bin width.
      • m_Name

        protected String m_Name
        the name of the x-axis.
      • m_FileChooser

        protected SpreadSheetFileChooser m_FileChooser
        the file chooser for saving a specific sequence.
    • Constructor Detail

      • Histogram

        public Histogram()
    • Method Detail

      • initGUI

        protected void initGUI()
        For initializing the GUI.
        initGUI in class BasePanel
      • setOptions

        public void setOptions​(HistogramOptions val)
        Set the options for this histogram
        val - Histogramoptions object containing all the options
      • getOptions

        public HistogramOptions getOptions()
        Returns the option for this histogram.
        the options
      • setData

        public void setData​(SpreadSheet value)
        Set the data for the histogram
        value - Data for the histogram plot
      • getData

        public SpreadSheet getData()
        Returns the instanecs for the histogram.
        the data, null if not set
      • setArray

        public void setArray​(Double[] value)
        Sets the array for this histogram.
        value - the array
      • getArray

        public Double[] getArray()
        Returns the current array.
        the array, null if not set
      • setDataName

        public void setDataName​(String value)
        Sets the name for the x-axis.
        value - the name
      • getDataName

        public String getDataName()
        Returns the name for the x-axis.
        the name
      • getPlot

        public PlotPanel getPlot()
        Returns the plot panel of the panel, null if no panel present.
        Specified by:
        getPlot in class PaintablePanel
        the plot panel
      • prepareUpdate

        public void prepareUpdate()
        Prepares the update, i.e., calculations etc.
        Specified by:
        prepareUpdate in class PaintablePanel
      • canPaint

        protected boolean canPaint​(Graphics g)
        Returns true if the paintlets can be executed.
        Specified by:
        canPaint in class PaintablePanel
        g - the graphics context
        true if painting can go ahead
      • setIndex

        public void setIndex​(int val)
        Set the index of residuals attribute within the data
        val - Position of residuals attribute
      • getIndex

        public int getIndex()
        Returns the currently set index.
        the index
      • getPlotdata

        public double[][] getPlotdata()
        Returns the plot data.
        the data
      • getRanges

        public String[] getRanges()
        Returns the ranges.
        the ranges
      • getBinWidth

        public double getBinWidth()
        Returns the bin width.
        the width
      • save

        protected void save()
        Saves the data as spreadsheet.
      • showData

        protected void showData()
        Displays the data as spreadsheet.
      • supplyText

        public String supplyText()
        Supplies the text. May get called even if actor hasn't been executed yet.
        Specified by:
        supplyText in interface TextSupplier
        Specified by:
        supplyText in interface TextSupporter
        the text, null if none available