Package org.jfree.data.xy
Class YWithXInterval
java.lang.Object
org.jfree.data.xy.YWithXInterval
- All Implemented Interfaces:
Serializable
A y-value plus the bounds for the related x-interval. This curious
combination exists as an implementation detail, to fit into the structure
of the ComparableObjectSeries class. It would have been possible to
simply reuse the
YInterval
class by assuming that the y-interval
in fact represents the x-interval, however I decided it was better to
duplicate some code in order to document the real intent.- See Also:
-
Constructor Summary
ConstructorDescriptionYWithXInterval
(double y, double xLow, double xHigh) Creates a new instance ofYWithXInterval
. -
Method Summary
-
Constructor Details
-
YWithXInterval
Creates a new instance ofYWithXInterval
.- Parameters:
y
- the y-value.xLow
- the lower bound of the x-interval.xHigh
- the upper bound of the x-interval.
-
-
Method Details
-
getY
Returns the y-value.- Returns:
- The y-value.
-
getXLow
Returns the lower bound of the x-interval.- Returns:
- The lower bound of the x-interval.
-
getXHigh
Returns the upper bound of the x-interval.- Returns:
- The upper bound of the x-interval.
-
equals
Tests this instance for equality with an arbitrary object.
-