Class ScatterPlot

    • Field Detail

      • m_XIndexReg

        protected BaseRegExp m_XIndexReg
        Regular expression given as an option to choose x attribute
      • m_XIndex

        protected Index m_XIndex
        Index object given as an option to choose x object
      • m_YIndexReg

        protected BaseRegExp m_YIndexReg
        regular expression given as an option to choose y attribute
      • m_YIndex

        protected Index m_YIndex
        Index given as an option to choose y attribute
      • m_ColorIndexReg

        protected BaseRegExp m_ColorIndexReg
        regular expression given as an option to choose color attribute
      • m_ColorIndex

        protected Index m_ColorIndex
        Index given as an option to choose color attribute
      • m_ColorIntIndex

        protected int m_ColorIntIndex
        the index of the color attribute.
      • m_ComboBoxY

        protected BaseComboBox<String> m_ComboBoxY
        For choosing attribute to display on x axis
      • m_ComboBoxX

        protected BaseComboBox<String> m_ComboBoxX
        For choosing attribute to display on y axis
      • m_ComboBoxColor

        protected BaseComboBox<String> m_ComboBoxColor
        For choosing attribute to use for color.
      • m_ModelColor

        protected DefaultComboBoxModel<String> m_ModelColor
        Model for the comboBox choosing the color attribute to display
      • m_PanelOverlay

        protected GenericArrayEditorPanel m_PanelOverlay
        for displaying a genericarrayEditor for choosing overlays
      • m_PanelPaintlet

        protected GenericObjectEditorPanel m_PanelPaintlet
        for displaying a genericobjecteditor for choosing paintlet
      • m_MouseClickAction

        protected MouseClickAction m_MouseClickAction
        the mouse click action.
      • m_FileChooser

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

      • ScatterPlot

        public ScatterPlot()
    • Method Detail

      • reset

        public void reset()
        Called by the class that creates this scatterplot called after fields have been set
      • changeOverlay

        protected void changeOverlay()
        called when new overlays have been chosen
      • changePaintlet

        protected void changePaintlet()
        Called when the paintlet used has been changed
      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class BasePanel
      • getXIndex

        public Index getXIndex()
        Get the index object for choosing the attribute to display.
        Returns:
        chosen index
      • setXIndex

        public void setXIndex​(Index val)
        Set the x attribute index.
        Parameters:
        val - chosen index
      • setXRegExp

        public void setXRegExp​(BaseRegExp val)
        Set the regular expression to use when determining the x attribute.
        Parameters:
        val - regular expression for choosing x attribute
      • getXRegExp

        public BaseRegExp getXRegExp()
        Gets the regular expression used when determining the x attribute.
        Returns:
        regular expression for choosing x attribute
      • getYIndex

        public Index getYIndex()
        Get the index object for choosing the y attribute.
        Returns:
        chosen index
      • setYIndex

        public void setYIndex​(Index val)
        Set the index for the y attribute.
        Parameters:
        val - chosen y index
      • setYRegExp

        public void setYRegExp​(BaseRegExp val)
        Set the regular expression to use when determining the y attribute.
        Parameters:
        val - regular expression for choosing y attribute
      • getYRegExp

        public BaseRegExp getYRegExp()
        Gets the regular expression used when determining the y attribute.
        Returns:
        regular expression for choosing y attribute
      • getColorIndex

        public Index getColorIndex()
        Get the index object for choosing the color attribute.
        Returns:
        chosen index
      • setColorIndex

        public void setColorIndex​(Index val)
        Set the index for the color attribute.
        Parameters:
        val - chosen color index
      • setColorRegExp

        public void setColorRegExp​(BaseRegExp val)
        Set the regular expression to use when determining the color attribute.
        Parameters:
        val - regular expression for choosing color attribute
      • getColorRegExp

        public BaseRegExp getColorRegExp()
        Gets the regular expression used when determining the color attribute.
        Returns:
        regular expression for choosing color attribute
      • setOverlays

        public void setOverlays​(AbstractScatterPlotOverlay[] val)
        Set the overlays array containing overlays to apply
        Parameters:
        val - Array containing overlays to apply to the scatter plot
      • getOverlays

        public AbstractScatterPlotOverlay[] getOverlays()
        Get the overlays array containing overlays to apply
        Returns:
        Array containing overlays to apply to the scatter plot
      • getPaintlet

        public AbstractScatterPlotPaintlet getPaintlet()
        Get the paintlet used initially to plot the data
        Returns:
        Paintlet used
      • change

        public void change()
        called when a field has changed, updates all paintlets etc
      • prepareUpdate

        public void prepareUpdate()
        Updates the overlays, calculates each
        Specified by:
        prepareUpdate in class PaintablePanel
      • setMouseClickAction

        public void setMouseClickAction​(MouseClickAction value)
        Sets the mouse click action to use.
        Parameters:
        value - the action
      • getMouseClickAction

        public MouseClickAction getMouseClickAction()
        Returns the mouse click action in use.
        Returns:
        the action, null if non set
      • showData

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

        protected void save​(double[] xRange,
                            double[] yRange)
        Saves the data as spreadsheet.
        Parameters:
        xRange - the optional limits for X
        yRange - the optional limits for Y
      • save

        protected void save()
        Saves all data points to a spreadsheet.
      • saveVisible

        protected void saveVisible()
        Saves only the visible data points to a spreadsheet.