info.monitorenter.gui.chart.traces
Class Trace2DLtdSorted
- java.lang.Object
-
- info.monitorenter.gui.chart.traces.ATrace2D
-
- info.monitorenter.gui.chart.traces.Trace2DSorted
-
- info.monitorenter.gui.chart.traces.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 theTrace2DLtdReplacingall tracepoints will be sorted by their x- value.Performance is slower compared to the class named above. Internally a
TreeSetis used (instead ofRingBufferArrayFast) to keep the comparableTracePoint2D- instances sorted. Internally all tracepoints areTracePoint2D-instances.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface info.monitorenter.gui.chart.ITrace2D
ITrace2D.DistancePoint
-
-
Field Summary
-
Fields inherited from interface info.monitorenter.gui.chart.ITrace2D
PROPERTY_COLOR, PROPERTY_ERRORBARPOLICY, PROPERTY_ERRORBARPOLICY_CONFIGURATION, PROPERTY_LABEL, PROPERTY_MAX_X, PROPERTY_MAX_Y, PROPERTY_MIN_X, PROPERTY_MIN_Y, PROPERTY_NAME, PROPERTY_PAINTERS, PROPERTY_PHYSICALUNITS, PROPERTY_POINT_CHANGED, PROPERTY_POINT_HIGHLIGHTERS_CHANGED, PROPERTY_STROKE, PROPERTY_TRACEPOINT, PROPERTY_VISIBLE, PROPERTY_ZINDEX, Z_INDEX_MIN, ZINDEX_MAX
-
-
Constructor Summary
Constructors Constructor and Description Trace2DLtdSorted()Constructs an instance with a default buffer size of 100.Trace2DLtdSorted(int maxsize)Constructs an instance with a buffer size of maxsize.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetMaxSize()Returns the maximum amount ofTracePoint2Dinstances that may be added.voidsetMaxSize(int amount)Sets the maximum amount of points that will be shown.-
Methods inherited from class info.monitorenter.gui.chart.traces.Trace2DSorted
getSize, isEmpty, iterator
-
Methods inherited from class info.monitorenter.gui.chart.traces.ATrace2D
addComputingTrace, addErrorBarPolicy, addPoint, addPoint, addPointHighlighter, addPropertyChangeListener, addTracePainter, compareTo, containsTracePainter, firePointChanged, getChangeListeners, getColor, getErrorBarPolicies, getHasErrorBars, getInstanceCount, getLabel, getMaxX, getMaxY, getMinX, getMinY, getName, getNearestPointEuclid, getNearestPointManhattan, getPhysicalUnits, getPhysicalUnitsX, getPhysicalUnitsY, getPointHighlighters, getPropertyChangeListeners, getRenderer, getStroke, getTracePainters, getZIndex, isVisible, propertyChange, removeAllPointHighlighters, removeAllPoints, removeComputingTrace, removeErrorBarPolicy, removePoint, removePointHighlighter, removePropertyChangeListener, removePropertyChangeListener, removeTracePainter, setColor, setErrorBarPolicy, setName, setPhysicalUnits, setPointHighlighter, setRenderer, setStroke, setTracePainter, setVisible, setZIndex, showsErrorBars, showsNegativeXErrorBars, showsNegativeYErrorBars, showsPositiveXErrorBars, showsPositiveYErrorBars, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface info.monitorenter.gui.chart.ITrace2D
addComputingTrace, addErrorBarPolicy, addPoint, addPoint, addPointHighlighter, addPropertyChangeListener, addTracePainter, containsTracePainter, firePointChanged, getColor, getErrorBarPolicies, getHasErrorBars, getLabel, getMaxX, getMaxY, getMinX, getMinY, getName, getNearestPointEuclid, getNearestPointManhattan, getPhysicalUnits, getPhysicalUnitsX, getPhysicalUnitsY, getPointHighlighters, getPropertyChangeListeners, getRenderer, getStroke, getTracePainters, getZIndex, isVisible, removeAllPointHighlighters, removeAllPoints, removeComputingTrace, removeErrorBarPolicy, removePoint, removePointHighlighter, removePropertyChangeListener, removePropertyChangeListener, removeTracePainter, setColor, setErrorBarPolicy, setName, setPhysicalUnits, setPointHighlighter, setRenderer, setStroke, setTracePainter, setVisible, setZIndex, showsErrorBars, showsNegativeXErrorBars, showsNegativeYErrorBars, showsPositiveXErrorBars, showsPositiveYErrorBars
-
-
-
-
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:ITrace2DReturns the maximum amount of
TracePoint2Dinstances that may be added. For implementations that limit the maximum amount this is a reasonable amount. Non-limiting implementations should returnInteger.MAX_VALUE. This allows to detect the unlimitedness. Of course no implementation could store that amount of points.- Specified by:
getMaxSizein interfaceITrace2D- Overrides:
getMaxSizein classTrace2DSorted- Returns:
- The maximum amount of
TracePoint2Dinstances 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