com.ijchart.xychart.data
Class ErrorChartData

java.lang.Object
  extended by com.ijchart.xychart.data.AbstractChartData
      extended by com.ijchart.xychart.data.ErrorChartData
All Implemented Interfaces:
IChartData, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class ErrorChartData
extends AbstractChartData
implements java.lang.Cloneable, java.io.Serializable

Title: IJChart

Description: a chart library for the Java(tm) platform.

Error ChartData object,this class is immutable.

Copyright: Copyright (c) 2013

Company:

Version:
1.0
Author:
zhang feng min,shanghai china. Contract me by email.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ijchart.xychart.data.AbstractChartData
DATE_MASK_LONG
 
Constructor Summary
ErrorChartData(double x, double xLow, double xHigh, double y, double yLow, double yHigh)
           Constructor.
ErrorChartData(java.lang.Number x, java.lang.Number xLow, java.lang.Number xHigh, java.lang.Number y, java.lang.Number yLow, java.lang.Number yHigh)
           Constructor.
 
Method Summary
 java.lang.Object clone()
           Creates and returns a copy of this object.
 int compareTo(java.lang.Object o)
           Implements the compareTo() method of interface Comparable.
 boolean equals(java.lang.Object obj)
           Tests this instance for equality with an arbitrary object.
 java.lang.String getAreaFunctionArguments()
           Returns the function arguments of hotspot area.
 java.lang.String getAreaURLFragment()
           Returns the url for hotspot area.
 java.lang.String getLabelText()
           Returns the label text.
 java.lang.Number getX()
           Returns the x value.
 java.lang.Number getXHigh()
           Returns the upper bound of x.
 double getXHighValue()
           Returns the upper bound of x.
 java.lang.Number getXLow()
           Returns the lower bound of x.
 double getXLowValue()
           Returns the lower bound of x.
 double getXValue()
           Returns the x value.
 java.lang.Number getY()
           Returns the y value.
 java.lang.Number getYHigh()
           Returns the upper bound of y.
 double getYHighValue()
           Returns the upper bound of y.
 java.lang.Number getYLow()
           Returns the lower bound of y.
 double getYLowValue()
           Returns the lower bound of y.
 double getYValue()
           Returns the y value.
 int hashCode()
           Returns a hash code value for the object.
 java.lang.String toString()
           Returns a string representation of the object.
 
Methods inherited from class com.ijchart.xychart.data.AbstractChartData
formatDate, formatDateForFunction, formatNumber, formatNumber, formatNumberForFunction, formatNumberForFunction, getDateFormat, getNumberFormat, setDateFormat, setNumberFormat
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorChartData

public ErrorChartData(double x,
                      double xLow,
                      double xHigh,
                      double y,
                      double yLow,
                      double yHigh)
Constructor.

Parameters:
x - double The x value.
xLow - double The lower bound of x.
xHigh - double The upper bound of x.
y - double The y value.
yLow - double The lower bound of y.
yHigh - double The upper bound of y.

ErrorChartData

public ErrorChartData(java.lang.Number x,
                      java.lang.Number xLow,
                      java.lang.Number xHigh,
                      java.lang.Number y,
                      java.lang.Number yLow,
                      java.lang.Number yHigh)
Constructor.

Parameters:
x - Number The x value.
xLow - Number The lower bound of x.
xHigh - Number The upper bound of x.
y - Number The y value.
yLow - Number The lower bound of y.
yHigh - Number The upper bound of y.
Method Detail

getX

public java.lang.Number getX()
Returns the x value.

Returns:
Number Never null.

getXLow

public java.lang.Number getXLow()
Returns the lower bound of x.

Returns:
Number Never null.

getXHigh

public java.lang.Number getXHigh()
Returns the upper bound of x.

Returns:
Number Never null.

getY

public java.lang.Number getY()
Returns the y value.

Returns:
Number Never null.

getYLow

public java.lang.Number getYLow()
Returns the lower bound of y.

Returns:
Number Never null.

getYHigh

public java.lang.Number getYHigh()
Returns the upper bound of y.

Returns:
Number Never null.

getXValue

public double getXValue()
Returns the x value.

Returns:
double The double value.

getXLowValue

public double getXLowValue()
Returns the lower bound of x.

Returns:
double The double value.

getXHighValue

public double getXHighValue()
Returns the upper bound of x.

Returns:
double The double value.

getYValue

public double getYValue()
Returns the y value.

Returns:
double The double value.

getYLowValue

public double getYLowValue()
Returns the lower bound of y.

Returns:
double The double value.

getYHighValue

public double getYHighValue()
Returns the upper bound of y.

Returns:
double The double value.

getLabelText

public java.lang.String getLabelText()
Returns the label text.

Specified by:
getLabelText in interface IChartData
Overrides:
getLabelText in class AbstractChartData
Returns:
String The label text (never null).

getAreaFunctionArguments

public java.lang.String getAreaFunctionArguments()
Returns the function arguments of hotspot area.

Specified by:
getAreaFunctionArguments in interface IChartData
Overrides:
getAreaFunctionArguments in class AbstractChartData
Returns:
String The function arguments (maybe null).

getAreaURLFragment

public java.lang.String getAreaURLFragment()
Returns the url for hotspot area.

Specified by:
getAreaURLFragment in interface IChartData
Overrides:
getAreaURLFragment in class AbstractChartData
Returns:
String The url fragment (maybe null).

compareTo

public int compareTo(java.lang.Object o)
Implements the compareTo() method of interface Comparable.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - Object The Object to be compared.
Returns:
int A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws:
java.lang.ClassCastException - if the specified object's type prevents it from being compared to this Object.

equals

public boolean equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.

Overrides:
equals in class AbstractChartData
Parameters:
obj - the object (null permitted).
Returns:
A boolean.

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class AbstractChartData
Returns:
int A hash code value for this object.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Creates and returns a copy of this object.

Overrides:
clone in class AbstractChartData
Returns:
object a clone of this instance.
Throws:
java.lang.CloneNotSupportedException - if the object's class does not support the Cloneable interface. Subclasses that override the clone method can also throw this exception to indicate that an instance cannot be cloned.

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class AbstractChartData
Returns:
a string representation of the object.