| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ITrace2D
An interface used by Chart2D. ITrace2D contains the values to
 display, the color for displaying and a suitable label. It may be seen as a
 trace of the Chart2D that displays it. 
 Implementations may be optimized for different use- cases: 
 RingBuffers for fast changing data to keep the amount of trace points and
 consumption of memory constant, internal Lists for allowing the sorting the
 internal TracePoint2D- instances or Arrays for unordered Data
 (in the order of adding) for fast performance. Even an ITrace2D
 constructed by a "function- Object" may be thinkable.
 
 There are various constraints for Traces: 
 - ordered by x-values 
 - ordered by the order of addPoint- invocation (control form
 outside) 
 - unique, single x- values 
 - limitation of tracepoints 
 - time- critical (fast- changing tracepoints) 
 
 Therefore there are various ITrace2D- implementations. Read
 their description to find the one you need. Some may not have been written
 yet.
 
 Comparable should be implemented by using the internal
 property zIndex (see getZIndex(), setZIndex(Integer)).
 
PropertyChangeEventPropertyChangeListeneraddPropertyChangeListener(String, PropertyChangeListener)| getPropertyName() | getSource() | getOldValue() | getNewValue() | 
|---|---|---|---|
|  | that changed | , the old value | , the new value | 
|  | that changed | , the old value | , the new value | 
|  | that changed | , the old value | , the new value | 
|  | that changed | , the old value | , the new value | 
|  | that changed | , the old value | , the new value | 
|  | that changed | , the
 instance that was removed | null, indication that an instance was removed | 
|  | that changed | null, indication that a value was added | , the new
 instance that was added, identifying that an instance was removed | 
|  | that changed | , the old state. | , the new state. | 
|  | that changed | null, indicating that a painter was added. | , the new
 painter. | 
|  | that changed | , the old
 painter. | null, indicating that a painter was removed. | 
|  | that changed | null, indicating that a point highlighter was added. | , the
 new highlighter. | 
|  | that changed | , the
 old highlighter. | null, indicating that a point highlighter was removed. | 
|  | that changed | , the
 old highlighter. | null, indicating that a highlighter was removed. | 
|  | that changed | , the old stroke. | , the new stroke. | 
|  | that changed | , the new color. | , the new color. | 
|  | that changed | null, indicating that an error bar policy was added. | , the new
 error bar policy. | 
|  | that changed | , the old
 error bar policy. | null, indicating that an error bar policy was removed. | 
|  | that notifies the change of the configured
 error bar policy. | null | , the
 instance with the configuration change. | 
|  | that notifies the change of the contained
 trace point. | nullbecause it would be too much overhead to store the old
 point in a additional instance as the original is modified in. | the point whose location was modified. | 
|  | that notifies the change. | , the old value of | , the new value of | 
|  | that notifies the change. | , the old value of | , the new value of | 
| (triggered byand) | that notifies the change. | , the old value of | , the new value of | 
| Nested Class Summary | |
|---|---|
| static class | ITrace2D.DistancePointSimple struct just for allowing to return a trace point along with a weighted distance. | 
| Field Summary | |
|---|---|
| static java.lang.String | PROPERTY_COLORThe property key defining the colorproperty. | 
| static java.lang.String | PROPERTY_ERRORBARPOLICYThe property key defining a change of instances contained. | 
| static java.lang.String | PROPERTY_ERRORBARPOLICY_CONFIGURATIONThe property key defining a change of the configuration of a contained . | 
| static java.lang.String | PROPERTY_LABELThe property key defining the labelproperty. | 
| static java.lang.String | PROPERTY_MAX_XThe property key defining the maxXproperty. | 
| static java.lang.String | PROPERTY_MAX_YThe property key defining the maxYproperty. | 
| static java.lang.String | PROPERTY_MIN_XThe property key defining the minXproperty. | 
| static java.lang.String | PROPERTY_MIN_YThe property key defining the minYproperty. | 
| static java.lang.String | PROPERTY_NAMEThe property key defining the nameproperty. | 
| static java.lang.String | PROPERTY_PAINTERSThe property key defining a change in the set of 
 instances. | 
| static java.lang.String | PROPERTY_PHYSICALUNITSThe property key defining the physicalUnitsproperty. | 
| static java.lang.String | PROPERTY_POINT_CHANGEDThe property key defining any change of a location of a contained 
 . | 
| static java.lang.String | PROPERTY_POINT_HIGHLIGHTERS_CHANGEDThe property key defining a change in the set of 
 instances. | 
| static java.lang.String | PROPERTY_STROKEThe property key defining the strokeproperty. | 
| static java.lang.String | PROPERTY_TRACEPOINTThe property key defining a change in the collection of 
 instances within this trace. | 
| static java.lang.String | PROPERTY_VISIBLEThe property key defining the visibleproperty. | 
| static java.lang.String | PROPERTY_ZINDEXThe property key defining the zIndexproperty. | 
| static int | Z_INDEX_MINThe minimum value for property zIndex: 0. | 
| static int | ZINDEX_MAXThe maximum value for property zIndex: 100. | 
| Method Summary | |
|---|---|
|  void | addComputingTrace(ITrace2D trace)Adds a trace that "should" compute values from the points added via 
 . | 
|  boolean | addErrorBarPolicy(IErrorBarPolicy<?> errorBarPolicy)Adds the given error bar policy to the internal set of error bar policies. | 
|  boolean | addPoint(double x,
         double y)Adds a trace point to the internal data. | 
|  boolean | addPoint(ITracePoint2D p)Adds the given TracePoint2D to the internal data. | 
|  boolean | addPointHighlighter(IPointPainter<?> highlighter)Adds the given point painter to the internal set of point highlighters. | 
|  void | addPropertyChangeListener(java.lang.String propertyName,
                          java.beans.PropertyChangeListener listener)Registers a property change listener that will be informed about changes of the property identified by the given propertyName. | 
|  boolean | addTracePainter(ITracePainter<?> painter)Adds the given trace painter to the internal set of trace painters. | 
|  boolean | containsTracePainter(ITracePainter<?> painter)Returns true if the given painter is contained in this compound painter. | 
|  void | firePointChanged(ITracePoint2D changed,
                 int state)Method to trigger by ,or
 . | 
|  java.awt.Color | getColor()Because the color is data common to a trace of a Chart2Dit is
 stored here. | 
|  java.util.Set<IErrorBarPolicy<?>> | getErrorBarPolicies()Returns the Set<that will be used to render
 error bars for this trace. | 
|  boolean | getHasErrorBars()Returns true if this trace has error bars configured. | 
|  java.lang.String | getLabel()Callback method for the Chart2Dthat returns aStringdescribing the label of theITrace2Dthat
 will be displayed below the drawing area of theChart2D. | 
|  int | getMaxSize()Returns the maximum amount of TracePoint2Dinstances that may be
 added. | 
|  double | getMaxX()Returns the maximum value to be displayed on the x- axis of the Chart2D. | 
|  double | getMaxY()Returns the maximum value to be displayed on the y- axis of the Chart2D. | 
|  double | getMinX()Returns the minimum value to be displayed on the x- axis of the Chart2D. | 
|  double | getMinY()Returns the minimum value to be displayed on the y- axis of the Chart2D. | 
|  java.lang.String | getName()Returns the name of this trace. | 
|  ITrace2D.DistancePoint | getNearestPointEuclid(double x,
                      double y)Returns the nearest point to the given normalized value coordinates of this trace in Euclid distance. | 
|  ITrace2D.DistancePoint | getNearestPointManhattan(double x,
                         double y)Returns the nearest point to the given normalized value coordinates of this trace in Manhattan distance. | 
|  java.lang.String | getPhysicalUnits()Returns the concatenation [x: ". | 
|  java.lang.String | getPhysicalUnitsX()Returns the physical unit string value for the x dimension. | 
|  java.lang.String | getPhysicalUnitsY()Returns the physical unit string value for the y dimension. | 
|  java.util.Set<IPointPainter<?>> | getPointHighlighters()Returns the Set<that may be used to highlight
 points of this trace. | 
|  java.beans.PropertyChangeListener[] | getPropertyChangeListeners(java.lang.String property)Returns all property change listeners for the given property. | 
|  Chart2D | getRenderer() | 
|  int | getSize()Returns the amount of TracePoint2Dinstances currently contained. | 
|  java.awt.Stroke | getStroke()Returns the Stroke that is used to render this instance. | 
|  java.util.Set<ITracePainter<?>> | getTracePainters()Returns the Set<that will be used to paint
 this trace. | 
|  java.lang.Integer | getZIndex()The z-index defines the order in which this instance will be painted. | 
|  boolean | isEmpty()Returns false if internal instances are
 contained or true if not. | 
|  boolean | isVisible()Returns true if this instance should be rendered. | 
|  java.util.Iterator<ITracePoint2D> | iterator()Returns an Iteratorover the internal
 instances. | 
|  java.util.Set<IPointPainter<?>> | removeAllPointHighlighters()Clears all internal point highlighters used. | 
|  void | removeAllPoints()Removes all internal TracePoint2D.isEmpty()will
 return true afterwards. | 
|  boolean | removeComputingTrace(ITrace2D trace)Remove a trace that "should" compute values from the points added via . | 
|  boolean | removeErrorBarPolicy(IErrorBarPolicy<?> errorBarPolicy)Removes the given error bar policy from the internal set of error bar policies. | 
|  boolean | removePoint(ITracePoint2D point)Removes the given point from this trace. | 
|  boolean | removePointHighlighter(IPointPainter<?> highlighter)Removes the given point highlighter, if it's class is contained. | 
|  void | removePropertyChangeListener(java.beans.PropertyChangeListener listener)Unregisters a property change listener that has been registered for listening on all properties. | 
|  void | removePropertyChangeListener(java.lang.String property,
                             java.beans.PropertyChangeListener listener)Removes a property change listener for listening on the given property. | 
|  boolean | removeTracePainter(ITracePainter<?> painter)Removes the given trace painter, if it's class is contained and if more painters are remaining. | 
|  void | setColor(java.awt.Color color)Set a java.awt.Colorfor this trace. | 
|  java.util.Set<IErrorBarPolicy<?>> | setErrorBarPolicy(IErrorBarPolicy<?> errorBarPolicy)Replaces all internal error bar policies by the new one. | 
|  void | setName(java.lang.String name)Assingns a specific name to the ITrace2Dwhich will be
 displayed by theChart2D. | 
|  void | setPhysicalUnits(java.lang.String xunit,
                 java.lang.String yunit)Assigns a specific String representing the physical unit to the 
  ITrace2D(e.g. | 
|  java.util.Set<IPointPainter<?>> | setPointHighlighter(IPointPainter<?> highlighter)Replaces all internal point highlighters by the new one. | 
|  void | setRenderer(Chart2D renderer)This is a callback from Chart2D.addTrace(ITrace2D)and must not be
 invoked from elsewhere (needed for synchronization). | 
|  void | setStroke(java.awt.Stroke stroke)Allows to specify the rendering of the ITrace2D. | 
|  java.util.Set<ITracePainter<?>> | setTracePainter(ITracePainter<?> painter)Replaces all internal trace painters by the new one. | 
|  void | setVisible(boolean visible)Set the visibility. | 
|  void | setZIndex(java.lang.Integer zIndex)Sets the internal z-index property. | 
|  boolean | showsErrorBars()Tests whether error bars are painted by this trace. | 
|  boolean | showsNegativeXErrorBars()Tests whether error bars in negative x direction are painted by this trace. | 
|  boolean | showsNegativeYErrorBars()Tests whether error bars in negative y direction are painted by this trace. | 
|  boolean | showsPositiveXErrorBars()Tests whether error bars in positive x direction are painted by this trace. | 
|  boolean | showsPositiveYErrorBars()Tests whether error bars in positive y direction are painted by this trace. | 
| Methods inherited from interface java.beans.PropertyChangeListener | 
|---|
| propertyChange | 
| Methods inherited from interface java.lang.Comparable | 
|---|
| compareTo | 
| Field Detail | 
|---|
static final java.lang.String PROPERTY_COLOR
color property. Use in
 combination with
 addPropertyChangeListener(String, PropertyChangeListener).
static final java.lang.String PROPERTY_ERRORBARPOLICY
IErrorBarPolicy
 This is fired from addErrorBarPolicy(IErrorBarPolicy)removeErrorBarPolicy(IErrorBarPolicy)setErrorBarPolicy(IErrorBarPolicy)
 Use in combination with
 addPropertyChangeListener(String, PropertyChangeListener).
 
static final java.lang.String PROPERTY_ERRORBARPOLICY_CONFIGURATION
IErrorBarPolicy
 This is fired whenever an IErrorBarPolicy notifies this
 instance of a configuration change via an event for
 IErrorBarPolicy.PROPERTY_CONFIGURATION
 Use in combination with
 addPropertyChangeListener(String, PropertyChangeListener).
 
static final java.lang.String PROPERTY_LABEL
label property. Use in
 combination with
 addPropertyChangeListener(String, PropertyChangeListener).
 
 
 This is no real property as the getLabel()
static final java.lang.String PROPERTY_MAX_X
maxX property. Use in
 combination with
 addPropertyChangeListener(String, PropertyChangeListener).
static final java.lang.String PROPERTY_MAX_Y
maxY property. Use in
 combination with
 addPropertyChangeListener(String, PropertyChangeListener).
static final java.lang.String PROPERTY_MIN_X
minX property. Use in
 combination with
 addPropertyChangeListener(String, PropertyChangeListener).
static final java.lang.String PROPERTY_MIN_Y
minY property. Use in
 combination with
 addPropertyChangeListener(String, PropertyChangeListener).
static final java.lang.String PROPERTY_NAME
name property. Use in
 combination with
 addPropertyChangeListener(String, PropertyChangeListener).
static final java.lang.String PROPERTY_PAINTERS
 ITracePainter
 instances. Use in combination with
 addPropertyChangeListener(String, PropertyChangeListener).
static final java.lang.String PROPERTY_PHYSICALUNITS
physicalUnits property. Use in
 combination with
 addPropertyChangeListener(String, PropertyChangeListener).
static final java.lang.String PROPERTY_POINT_CHANGED
 TracePoint2D 
 .
 
 Use in combination with
 addPropertyChangeListener(String, PropertyChangeListener).
 Property change event with this property will be fired if method
 Point2D.setLocation(java.awt.geom.Point2D)TracePoint2D.setLocation(double, double)
static final java.lang.String PROPERTY_POINT_HIGHLIGHTERS_CHANGED
 IPointPainter
 instances. Use in combination with
 addPropertyChangeListener(String, PropertyChangeListener).
static final java.lang.String PROPERTY_STROKE
stroke property. Use in
 combination with
 addPropertyChangeListener(String, PropertyChangeListener).
static final java.lang.String PROPERTY_TRACEPOINT
 TracePoint2D
 instances within this trace. Use in combination with
 addPropertyChangeListener(String, PropertyChangeListener).
static final java.lang.String PROPERTY_VISIBLE
visible property. Use in
 combination with
 addPropertyChangeListener(String, PropertyChangeListener).
static final java.lang.String PROPERTY_ZINDEX
zIndex property.
 
 Use in combination with
 addPropertyChangeListener(String, PropertyChangeListener).
 
static final int Z_INDEX_MIN
getZIndex(), 
setZIndex(Integer), 
Constant Field Valuesstatic final int ZINDEX_MAX
the descriptive name for this trace.
getZIndex(), 
setZIndex(Integer), 
Constant Field Values| Method Detail | 
|---|
void addComputingTrace(ITrace2D trace)
 addPoint(ITracePoint2D)
 .
 
 The given trace will be informed in case an add operation on this trace
 succeeds via addPoint(ITracePoint2D)
trace - the trace that will calculate it's points from the added points of
          this trace.boolean addErrorBarPolicy(IErrorBarPolicy<?> errorBarPolicy)
It will be the last error bar policy to render (most forward on screen).
errorBarPolicy - the error bar policy to add for rendering this trace's error bars.
boolean addPoint(double x,
                 double y)
 Warning:
 Do not call this method before this trace has been added to a chart or you
 will not succeed as the chart is needed to get the proper 
             .
 Chart2D.getTracePointProvider()
x - the x-value of the point to add.y - the y-value of the point to add.
addPoint(ITracePoint2D p)boolean addPoint(ITracePoint2D p)
TracePoint2D  to the internal data.
 
 Try to pass instances of TracePoint2D to this instance instead
 of invoking addPoint(double, double)
 Implementations decide whether the point will be accepted or not. So they
 have to update the internal properties minX, maxX,maxY and minY and also care about firing
 property change events for those properties by method
 
 PropertyChangeSupport.firePropertyChange(java.beans.PropertyChangeEvent)
p - the point to add.
boolean addPointHighlighter(IPointPainter<?> highlighter)
It will be the last point painter to paint highlighting if highlighting is active.
highlighter - the highlighter to add for highlighting this trace.
void addPropertyChangeListener(java.lang.String propertyName,
                               java.beans.PropertyChangeListener listener)
propertyName.
 
propertyName - the name of the property the listener is interested inlistener - a listener that will only be informed if the property identified
          by the argument propertyName changesboolean addTracePainter(ITracePainter<?> painter)
It will be the last painter to paint (most forward).
painter - the painter to add for rendering this trace.
boolean containsTracePainter(ITracePainter<?> painter)
painter - the painter to check whether it is contained.
void firePointChanged(ITracePoint2D changed,
                      int state)
TracePoint2D.setLocation(double, double)
 addPoint(ITracePoint2D)
 removePoint(ITracePoint2D).
 
 Bound checks are performed and property change events for the properties
 PROPERTY_MAX_XPROPERTY_MIN_XPROPERTY_MAX_YPROPERTY_MIN_Y
changed - the point that has been changed which may be a newly added point
          (from addPoint(ITracePoint2D)state - one of {ITracePoint2D.STATE_ADDED,
          ITracePoint2D.STATE_CHANGED,
          ITracePoint2D.STATE_REMOVEDjava.awt.Color getColor()
Chart2D it is
 stored here.
 
 On the other hand only the corresponding Chart2D  may detect
 the same color chosen for different IChart2D instances to be
 displayed. Therefore it is allowed to return null. This is a message to the
 Chart2D to leave it the choice of the color. Then the
 Chart2D will chose a color not owned by another
 ITrace2D instance managed and assign it to the null- returning
 instance.
 
 The Chart2D  will often call this method. So try to cache the
 value in implementation and only check on modifications of
 TracePoint instances or on add- invocations for
 changes.
 
Chart2D.java.util.Set<IErrorBarPolicy<?>> getErrorBarPolicies()
Set<IErrorBarPolicy> that will be used to render
 error bars for this trace.
 
Set<IErrorBarPolicy> that will be
         used to render error bars for this trace.boolean getHasErrorBars()
If this returns false, no error bars will be painted for this trace.
java.lang.String getLabel()
Chart2D that returns a
 String describing the label of the ITrace2D that
 will be displayed below the drawing area of the Chart2D.
 
 This method should be implemented and finalized ASAP in the inheritance
 tree and rely on the property name and
 physicalUnits.
 
int getMaxSize()
 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.
 
TracePoint2D instances that may be
         added.double getMaxX()
Chart2D. Implementations should be synchronized for
 multithreaded use. No exception is thrown. In case of empty data (no
 tracepoints) 0 should be returned, to let the Chart2D know.
 
 The Chart2D  will often call this method. So try to cache the
 value in implementation and only check on modifications of
 TracePoint instances or on add- invocations for
 changes.
 
double getMaxY()
double getMinX()
Implementations should be synchronized for multithreaded use. No exception is thrown. In case of empty data (no tracepoints) 0 should be returned. (watch division with zero).
 The Chart2D  will often call this method. So try to cache the
 value in implementation and only check on modifications of
 TracePoint instances or on add- invocations for
 changes.
 
double getMinY()
Implementations should be synchronized for multithreaded use. No exception is thrown. In case of empty data (no tracepoints) 0 should be returned. (watch division with zero).
 The Chart2D  will often call this method. So try to cache the
 value in implementation and only check on modifications of
 TracePoint instances or on add- invocations for
 changes.
 
java.lang.String getName()
setName(String s)
ITrace2D.DistancePoint getNearestPointEuclid(double x,
                                             double y)
 Please note that the arguments must be normalized value coordinates like
 provided by a TracePoint2D.getScaledX()
Using the Manhattan distance is much faster than Euclid distance as it only includes basic addition an absolute value for computation per point (vs. square root, addition and quadrature for Euclid distance). However the euclid distance spans a circle for the nearest points which is visually more normal for end users than the Manhattan distance which forms a rhombus and reaches far distances in only one dimension.
x - the x value as a normalized value between 0 and 1.0.y - the x value as a normalized value between 0 and 1.0.
ITrace2D.DistancePoint getNearestPointManhattan(double x,
                                                double y)
 Please note that the arguments must be normalized value coordinates like
 provided by a TracePoint2D.getScaledX()
Using the Manhattan distance is much faster than Euclid distance as it only includes basic addition an absolute value for computation per point (vs. square root, addition and quadrature for Euclid distance).
x - the x value as a normalized value between 0 and 1.0.y - the x value as a normalized value between 0 and 1.0.
java.lang.String getPhysicalUnits()
[x: "getPhysicalUnitsX()", y: "
 getPhysicalUnitsY()"].
 
[x: "getPhysicalUnitsX()", y: "
         getPhysicalUnitsY()"].setPhysicalUnits(String x,String y)java.lang.String getPhysicalUnitsX()
setPhysicalUnits(String x,String y)java.lang.String getPhysicalUnitsY()
setPhysicalUnits(String x,String y)java.util.Set<IPointPainter<?>> getPointHighlighters()
Set<IPointPainter> that may be used to highlight
 points of this trace.
 
 This is used by the point highlighting feature:
 Chart2D.enablePointHighlighting(boolean)
Set<IPointPainter> that may be used
         to highlight points.java.beans.PropertyChangeListener[] getPropertyChangeListeners(java.lang.String property)
property - one of the constants with the PROPERTY_ prefix
          defined in this class or subclasses.
Chart2D getRenderer()
int getSize()
TracePoint2D instances currently contained.
 
TracePoint2Djava.awt.Stroke getStroke()
setStroke(Stroke)java.util.Set<ITracePainter<?>> getTracePainters()
Set<ITracePainter> that will be used to paint
 this trace.
 
 
 The original set should be returned by contract to allow adding painters
 "silently" (vs. using
 addTracePainter(ITracePainter)
Set<ITracePainter> that will be used
         to paint this trace.java.lang.Integer getZIndex()
A higher value will bring it more "to the front".
boolean isEmpty()
TracePoint2D
TracePoint2Dboolean isVisible()
java.util.Iterator<ITracePoint2D> iterator()
Iterator over the internal 
 TracePoint2D
 instances.
 
 Implementations should be synchronized. This method is meant to allow
 modifications of the intenal TracePoint2D instances, so the
 original points should be returned.
 
 There is no guarantee that changes made to the contained tracepoints will
 be reflected in the display immediately. The order the iterator returns the
 TracePoint2D instances decides how the Chart2D
 will paint the trace.
 
Iterator over the internal 
         TracePoint2D instances.java.util.Set<IPointPainter<?>> removeAllPointHighlighters()
 
 Returns the Set< that was used to highlight
 points.
 IPointPainter>
 This is used by the point highlighting feature:
 Chart2D.enablePointHighlighting(boolean)
Set<IPointPainter> that was be used
         to highlight points.void removeAllPoints()
TracePoint2D.isEmpty() will
 return true afterwards.
 
boolean removeComputingTrace(ITrace2D trace)
addPoint(ITracePoint2D)
trace - the trace that will calculate it's points from the added points of
          this trace.
Object.equals(Object)boolean removeErrorBarPolicy(IErrorBarPolicy<?> errorBarPolicy)
errorBarPolicy - the error bar policy to remove.
boolean removePoint(ITracePoint2D point)
point - the point to remove.
boolean removePointHighlighter(IPointPainter<?> highlighter)
highlighter - the highlighter to remove.
void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - a listener that will only be informed if the property identified
          by the argument propertyName changes
void removePropertyChangeListener(java.lang.String property,
                                  java.beans.PropertyChangeListener listener)
property - one of the constants with the PROPERTY_ prefix
          defined in this class or subclasses.listener - the listener for this property change.boolean removeTracePainter(ITracePainter<?> painter)
painter - the trace painter to remove.
void setColor(java.awt.Color color)
java.awt.Color for this trace.
 
color - the Color to set.java.util.Set<IErrorBarPolicy<?>> setErrorBarPolicy(IErrorBarPolicy<?> errorBarPolicy)
errorBarPolicy - the new sole painter to use.
Set<IErrorBarPolicy> that was used
         before.void setName(java.lang.String name)
ITrace2D which will be
 displayed by the Chart2D.
 
name - the name for this trace.
void setPhysicalUnits(java.lang.String xunit,
                      java.lang.String yunit)
  ITrace2D
 (e.g. Volt, Ohm, lux, ...) which will be displayed by the 
 Chart2D
 
xunit - the physical unit for the x axis.yunit - the physical unit for the y axis.java.util.Set<IPointPainter<?>> setPointHighlighter(IPointPainter<?> highlighter)
highlighter - the new sole highlighter to use.
Set<IPointPainter> that was used
         before or null if nothing changed.void setRenderer(Chart2D renderer)
Chart2D.addTrace(ITrace2D) and must not be
 invoked from elsewhere (needed for synchronization).
 Not the best design to put this to an interface, but Char2D should handle this interface only.
renderer - The renderer to set.void setStroke(java.awt.Stroke stroke)
Graphics2D by the rendering
 Chart2D when painting this instance.
 
stroke - the stroke to use for painting this trace.java.util.Set<ITracePainter<?>> setTracePainter(ITracePainter<?> painter)
painter - the new sole painter to use.
Set<ITracePainter> that was used
         before.void setVisible(boolean visible)
visible - true if this trace should be painted, false else.void setZIndex(java.lang.Integer zIndex)
Chart2DThe higher the given value is the more this trace will be brought to front.
 The value must not be lower than Z_INDEX_MIN(0) and higher than
 ZINDEX_MAX(100).
 
This might not be tested for increased performance but ignoring these bounds may result in wrong ordering of display.
zIndex - the z index of this trace - the lower the value the more in front
          the trace will appear amongst other traces in the same chart.getZIndex()boolean showsErrorBars()
Returns true if
IErrorBarPolicy instances.IErrorBarPainter instance.
boolean showsNegativeXErrorBars()
Returns true if
IErrorBarPolicy instance that
 IErrorBarPolicy.isShowNegativeXErrors().IErrorBarPainter instance.
boolean showsNegativeYErrorBars()
Returns true if
IErrorBarPolicy instance that
 IErrorBarPolicy.isShowNegativeYErrors().IErrorBarPainter instance.
boolean showsPositiveXErrorBars()
Returns true if
IErrorBarPolicy instance that
 IErrorBarPolicy.isShowPositiveXErrors().IErrorBarPainter instance.
boolean showsPositiveYErrorBars()
Returns true if
IErrorBarPolicy instance that
 IErrorBarPolicy.isShowPositiveYErrors().IErrorBarPainter instance.
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||