| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.monitorenter.gui.chart.traces.ATrace2D
info.monitorenter.gui.chart.traces.Trace2DSorted
info.monitorenter.gui.chart.traces.Trace2DLtdSorted
public class Trace2DLtdSorted
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.
 
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from interface info.monitorenter.gui.chart.ITrace2D | 
|---|
| ITrace2D.DistancePoint | 
| Field Summary | |
|---|---|
| protected  int | m_maxsizeThe maximum amount of points that will be shown. | 
| Fields inherited from class info.monitorenter.gui.chart.traces.Trace2DSorted | 
|---|
| m_points | 
| Fields inherited from class info.monitorenter.gui.chart.traces.ATrace2D | 
|---|
| m_computingTraces, m_maxX, m_maxXErrorBar, m_maxY, m_maxYErrorBar, m_minX, m_minXErrorBar, m_minY, m_minYErrorBar, m_name, m_physicalUnitsX, m_physicalUnitsY, m_propertyChangeSupport, m_renderer | 
| 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 | |
|---|---|
| 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 | |
|---|---|
| protected  boolean | addPointInternal(ITracePoint2D point)In case point has an x- value already contained, the old trace point with that value will be replaced by the new one. | 
|  int | getMaxSize()Returns the maximum amount of TracePoint2Dinstances that may be
 added. | 
|  void | setMaxSize(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, removeAllPointsInternal, removePointInternal | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface java.beans.PropertyChangeListener | 
|---|
| propertyChange | 
| Methods inherited from interface java.lang.Comparable | 
|---|
| compareTo | 
| Field Detail | 
|---|
protected int m_maxsize
| Constructor Detail | 
|---|
public Trace2DLtdSorted()
public Trace2DLtdSorted(int maxsize)
maxsize - the maximum amount of points to show.| Method Detail | 
|---|
protected boolean addPointInternal(ITracePoint2D point)
If points takes additional space (it's x- value is not already contained) and maxsize is reached, the first element (with lowest x- value) will be removed.
addPointInternal in class Trace2DSortedpoint - the point to add.
public final int getMaxSize()
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.
 
getMaxSize in interface ITrace2DgetMaxSize in class Trace2DSortedTracePoint2D instances that may be
         added.ITrace2D.getMaxSize()public final void setMaxSize(int amount)
amount - the maximum amount of points that will be shown.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||