Documentation of 'info.monitorenter.gui.chart.traces.Trace2DLtdSorted' Java class
Trace2DLtdSorted
info.monitorenter.gui.chart.traces

Class Trace2DLtdSorted

  • All Implemented Interfaces:
    ITrace2D, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Comparable<ITrace2D>, java.util.EventListener


    public class Trace2DLtdSorted
    extends Trace2DSorted
    Additional to the Trace2DLtdReplacing all tracepoints will be sorted by their x- value.

    Performance is slower compared to the class named above. Internally a TreeSet is used (instead of RingBufferArrayFast) to keep the comparable TracePoint2D- instances sorted. Internally all tracepoints are TracePoint2D -instances.

    See Also:
    Serialized Form
    • Constructor Detail

      • Trace2DLtdSorted

        public Trace2DLtdSorted()
        Constructs an instance with a default buffer size of 100.

      • Trace2DLtdSorted

        public Trace2DLtdSorted(int maxsize)
        Constructs an instance with a buffer size of maxsize.
        Parameters:
        maxsize - the maximum amount of points to show.
    • Method Detail

      • getMaxSize

        public final int getMaxSize()
        Description copied from interface: ITrace2D

        Returns the maximum amount of TracePoint2D instances that may be added. For implementations that limit the maximum amount this is a reasonable amount. Non-limiting implementations should return Integer.MAX_VALUE. This allows to detect the unlimitedness. Of course no implementation could store that amount of points.

        Specified by:
        getMaxSize in interface ITrace2D
        Overrides:
        getMaxSize in class Trace2DSorted
        Returns:
        The maximum amount of TracePoint2D instances that may be added.
        See Also:
        ITrace2D.getMaxSize()
      • setMaxSize

        public final void setMaxSize(int amount)
        Sets the maximum amount of points that will be shown.

        Parameters:
        amount - the maximum amount of points that will be shown.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.