info.monitorenter.gui.chart.traces
Class Trace2DLtdReplacing
- java.lang.Object
-
- info.monitorenter.gui.chart.traces.ATrace2D
-
- info.monitorenter.gui.chart.traces.Trace2DLtd
-
- info.monitorenter.gui.chart.traces.Trace2DLtdReplacing
-
- All Implemented Interfaces:
- ITrace2D, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Comparable<ITrace2D>, java.util.EventListener
public class Trace2DLtdReplacing extends Trace2DLtd
In addition to theTrace2DLtdthis class offers the guarantee only to allow a single tracepoint with a certain x- value. If a new tracepoint is added whose x- value is already contained, the new tracepoints values will get assigned to the certain old tracepoint respecting the fact that only an additional changed y- value occurs.
Theaddmethods increase complexity to factor n but some event - handling may be saved (no change of x and y).
Tracepoints with x- values not contained before will be appended to the end of the internal data- structure.- 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 Trace2DLtdReplacing()Constructs aTrace2DLtdReplacingwith a default buffer size of 100.Trace2DLtdReplacing(int bufsize)Constructs an instance with a buffer size of bufsize.
-
Method Summary
-
Methods inherited from class info.monitorenter.gui.chart.traces.Trace2DLtd
equals, getMaxSize, getSize, hashCode, isEmpty, iterator, removeAllPointsInternal, setMaxSize
-
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 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
-
Trace2DLtdReplacing
public Trace2DLtdReplacing()
Constructs aTrace2DLtdReplacingwith a default buffer size of 100.
-
Trace2DLtdReplacing
public Trace2DLtdReplacing(int bufsize)
Constructs an instance with a buffer size of bufsize.- Parameters:
bufsize- the maximum amount of points that will be displayed.
-
-
DMelt 3.0 © DataMelt by jWork.ORG