Class JISASeries

  • All Implemented Interfaces:
    Series

    public class JISASeries
    extends java.lang.Object
    implements Series
    • Constructor Detail

      • JISASeries

        public JISASeries​(java.lang.String name,
                          Plot plot)
    • Method Detail

      • watch

        public Series watch​(ResultTable table,
                            Column<? extends java.lang.Number> xData,
                            Column<? extends java.lang.Number> yData)
        Description copied from interface: Series
        Watch the specified ResultTable object, plotting points without error-bars based on the specified x and y values.
        Specified by:
        watch in interface Series
        Parameters:
        table - ResultTable to watch
        xData - Index representing the x-data to plot
        yData - Index representing the y-data to plot
        Returns:
        Self-reference
      • setLimit

        public Series setLimit​(int count)
        Description copied from interface: Series
        Instructs the Series to only plot the last N points added to it. A value of 0 indicates no limit.
        Specified by:
        setLimit in interface Series
        Parameters:
        count - The maximum number of plots to point.
        Returns:
        Self-reference
      • getLimit

        public int getLimit()
        Specified by:
        getLimit in interface Series
      • watch

        public Series watch​(ResultTable table,
                            Column<? extends java.lang.Number> xData,
                            Column<? extends java.lang.Number> yData,
                            Column<? extends java.lang.Number> eData)
        Description copied from interface: Series
        Watch the specified ResultTable object, plotting points with error-bars based on the specified x,y and error values.
        Specified by:
        watch in interface Series
        Parameters:
        table - ResultTable to watch
        xData - Index representing the x-data to plot
        yData - Index representing the y-data to plot
        Returns:
        Self-reference
      • regeneratePoints

        protected void regeneratePoints()
      • split

        public Series split​(RowEvaluable<?> splitBy,
                            Series.SeriesFormatter pattern)
        Description copied from interface: Series
        Cause the series to automatically split into a set of sub-series based on a value in each result.
        Specified by:
        split in interface Series
        Parameters:
        splitBy - Lambda representing the value to split by
        pattern - Lambda that returns the name of each series
        Returns:
        Self-reference
      • getWatched

        public ResultTable getWatched()
        Description copied from interface: Series
        Returns which, if any, ResultTable is currently being watched by this series.
        Specified by:
        getWatched in interface Series
        Returns:
        ResultTable, null if none
      • filter

        public Series filter​(java.util.function.Predicate<Row> filter)
        Description copied from interface: Series
        Set a true/false test to filter data by, only plotting rows from the ResultTable that return true when tested.
        Specified by:
        filter in interface Series
        Parameters:
        filter - true/false test
        Returns:
        Self-reference
      • addPoint

        public Series addPoint​(double x,
                               double y,
                               double errorX,
                               double errorY)
        Specified by:
        addPoint in interface Series
      • addPoints

        public Series addPoints​(java.lang.Iterable<? extends java.lang.Number> x,
                                java.lang.Iterable<? extends java.lang.Number> y,
                                java.lang.Iterable<? extends java.lang.Number> eY)
        Specified by:
        addPoints in interface Series
      • clear

        public Series clear()
        Description copied from interface: Series
        Remove all points from this series.
        Specified by:
        clear in interface Series
        Returns:
        Self-reference
      • setMarkerVisible

        public Series setMarkerVisible​(boolean show)
        Description copied from interface: Series
        Sets whether a marker should be placed at each data point in this series or not.
        Specified by:
        setMarkerVisible in interface Series
        Parameters:
        show - Show markers?
        Returns:
        Self-reference
      • isMarkerVisible

        public boolean isMarkerVisible()
        Description copied from interface: Series
        Returns whether markers are being shown at each data point or not in this series.
        Specified by:
        isMarkerVisible in interface Series
        Returns:
        Markers showing?
      • getMarkerShape

        public Series.Shape getMarkerShape()
        Description copied from interface: Series
        Returns the marker shape currently being used by this series.
        Specified by:
        getMarkerShape in interface Series
        Returns:
        Maker shape being used
      • setMarkerShape

        public Series setMarkerShape​(Series.Shape shape)
        Description copied from interface: Series
        Sets the marker shape to use for this series.
        Specified by:
        setMarkerShape in interface Series
        Parameters:
        shape - Marker shape to use
        Returns:
        Self-reference
      • getMarkerSize

        public double getMarkerSize()
        Description copied from interface: Series
        Returns the marker size being used for this series.
        Specified by:
        getMarkerSize in interface Series
        Returns:
        Size
      • setMarkerSize

        public Series setMarkerSize​(double size)
        Description copied from interface: Series
        Sets the marker size to use for this series.
        Specified by:
        setMarkerSize in interface Series
        Parameters:
        size - Size
        Returns:
        Self-reference
      • getName

        public java.lang.String getName()
        Description copied from interface: Series
        Returns the name of the series.
        Specified by:
        getName in interface Series
        Returns:
        Name
      • setName

        public Series setName​(java.lang.String name)
        Description copied from interface: Series
        Sets the name of the series.
        Specified by:
        setName in interface Series
        Parameters:
        name - Name
        Returns:
        Self-reference
      • getColour

        public javafx.scene.paint.Color getColour()
        Description copied from interface: Series
        Returns the colour being used to represent this series.
        Specified by:
        getColour in interface Series
        Returns:
        Colour of series
      • setColour

        public Series setColour​(javafx.scene.paint.Color colour)
        Description copied from interface: Series
        Sets the colour used to represent this series.
        Specified by:
        setColour in interface Series
        Parameters:
        colour - Colour to use
        Returns:
        Self-reference
      • getErrorColour

        public javafx.scene.paint.Color getErrorColour()
        Description copied from interface: Series
        Returns the colour being used to represent errors in this series.
        Specified by:
        getErrorColour in interface Series
        Returns:
        Colour of series
      • setErrorColour

        public Series setErrorColour​(javafx.scene.paint.Color colour)
        Description copied from interface: Series
        Sets the colour used to represent errors in this series.
        Specified by:
        setErrorColour in interface Series
        Parameters:
        colour - Colour to use
        Returns:
        Self-reference
      • setColourSequence

        public Series setColourSequence​(javafx.scene.paint.Color... colours)
        Description copied from interface: Series
        Sets the sequence of colours to use when auto-generating sub-series (for example, when split() is called).
        Specified by:
        setColourSequence in interface Series
        Parameters:
        colours - The colours in order that they should be used.
        Returns:
        Self-reference.
      • getLineWidth

        public double getLineWidth()
        Description copied from interface: Series
        Returns line-width used when drawing the line for this series.
        Specified by:
        getLineWidth in interface Series
        Returns:
        Line width, in pixels
      • setLineWidth

        public Series setLineWidth​(double width)
        Description copied from interface: Series
        Sets the line-width used for drawing the line for this series.
        Specified by:
        setLineWidth in interface Series
        Parameters:
        width - Line width to use, in pixels
        Returns:
        Self-reference
      • getErrorLineWidth

        public double getErrorLineWidth()
        Description copied from interface: Series
        Returns line-width used when drawing lines for error bars on this series.
        Specified by:
        getErrorLineWidth in interface Series
        Returns:
        Line width, in pixels
      • setErrorLineWidth

        public Series setErrorLineWidth​(double width)
        Description copied from interface: Series
        Sets the line-width used for drawing lines for error bars on this series.
        Specified by:
        setErrorLineWidth in interface Series
        Parameters:
        width - Line width to use, in pixels
        Returns:
        Self-reference
      • getLineDash

        public Series.Dash getLineDash()
        Description copied from interface: Series
        Returns the dash type used for drawing the line for this series.
        Specified by:
        getLineDash in interface Series
        Returns:
        Dash type
      • setLineDash

        public Series setLineDash​(Series.Dash dash)
        Description copied from interface: Series
        Sets the dash type for the line of this series.
        Specified by:
        setLineDash in interface Series
        Parameters:
        dash - Dash type
        Returns:
        Self-reference
      • setLineVisible

        public Series setLineVisible​(boolean show)
        Description copied from interface: Series
        Sets whether to show the line of this series.
        Specified by:
        setLineVisible in interface Series
        Parameters:
        show - Line visible?
        Returns:
        Self-reference
      • isLineVisible

        public boolean isLineVisible()
        Description copied from interface: Series
        Returns whether the series line is visible or not.
        Specified by:
        isLineVisible in interface Series
        Returns:
        Line visible?
      • setAutoReduction

        public Series setAutoReduction​(int reduceTo,
                                       int limit)
        Description copied from interface: Series
        Sets the series to automatically reduce the number of data points to the specified number when exceeding the specified limit.
        Specified by:
        setAutoReduction in interface Series
        Parameters:
        reduceTo - Number of points to reduce to
        limit - Limit at which reducing should occur
        Returns:
        Self-reference
      • reduceNow

        public Series reduceNow()
        Description copied from interface: Series
        Forces the automatic point-reduction to happen now.
        Specified by:
        reduceNow in interface Series
        Returns:
        Self-reference
      • setXAutoRemove

        public Series setXAutoRemove​(double range)
        Description copied from interface: Series
        Sets the range below the greatest x-value that outside of which points are automatically removed.
        Specified by:
        setXAutoRemove in interface Series
        Parameters:
        range - Range to use
        Returns:
        Self-reference
      • setYAutoRemove

        public Series setYAutoRemove​(double range)
        Description copied from interface: Series
        Sets the range below the greatest y-value that outside of which points are automatically removed.
        Specified by:
        setYAutoRemove in interface Series
        Parameters:
        range - Range to use
        Returns:
        Self-reference
      • remove

        public Series remove()
        Description copied from interface: Series
        Removes this series from its plot.
        Specified by:
        remove in interface Series
        Returns:
        Self-reference
      • getFit

        public Fit getFit()
        Description copied from interface: Series
        Returns the fit being used to draw the fitted curve to the data currently.
        Specified by:
        getFit in interface Series
        Returns:
        Fit being used currently
      • isFitted

        public boolean isFitted()
        Description copied from interface: Series
        Returns whether the data is currently being fitted.
        Specified by:
        isFitted in interface Series
        Returns:
        Fitted?
      • getDatasets

        public javafx.collections.ObservableList<JISAErrorDataSet> getDatasets()
        Description copied from interface: Series
        Returns the unboxed JavaFx representation of this series.
        Specified by:
        getDatasets in interface Series
        Returns:
        JavaFx XYChart.Series object