com.ijchart.xychart.data.group
Class AbstractGroupChartData

java.lang.Object
  extended by com.ijchart.xychart.data.group.AbstractGroupChartData
All Implemented Interfaces:
IChartData, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
Direct Known Subclasses:
NumberGroupChartData

public abstract class AbstractGroupChartData
extends java.lang.Object
implements IChartData, java.lang.Cloneable, java.io.Serializable

Title: IJChart

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

The base class for group data,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

Constructor Summary
AbstractGroupChartData(java.lang.Object group)
           The constructor.
AbstractGroupChartData(java.lang.Object group, java.util.List datas)
           The constructor.
AbstractGroupChartData(java.lang.Object group, java.util.List datas, java.lang.Class constraint)
           The 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.util.List getDatas()
           Returns the collection of datas.
 java.lang.Object getGroup()
           Returns the group of this chart data.
 java.lang.String getLabelText()
           Returns the label text.
 int hashCode()
           Returns a hash code value for the object.
 java.lang.String toLabelText(int index)
           Returns the label text.
 java.lang.String toString()
           Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractGroupChartData

public AbstractGroupChartData(java.lang.Object group)
The constructor.

Parameters:
group - Object The group of this chart data (null permitted).

AbstractGroupChartData

public AbstractGroupChartData(java.lang.Object group,
                              java.util.List datas)
The constructor.

Parameters:
group - Object The group of this chart data (null permitted).
datas - List The collection of datas (null permitted).

AbstractGroupChartData

public AbstractGroupChartData(java.lang.Object group,
                              java.util.List datas,
                              java.lang.Class constraint)
The constructor.

Parameters:
group - Object The group of this chart data (null permitted).
datas - List The collection of datas (null permitted).
constraint - Class The data in collection datas must be constraint (null permitted).
Method Detail

getGroup

public java.lang.Object getGroup()
Returns the group of this chart data.

Returns:
Object The group of this chart data (never null).

getDatas

public java.util.List getDatas()
Returns the collection of datas.

Returns:
List The collection of datas (maybe null).

getLabelText

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

Specified by:
getLabelText in interface IChartData
Returns:
String The label text (maybe null).

getAreaFunctionArguments

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

Specified by:
getAreaFunctionArguments in interface IChartData
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
Returns:
String The url fragment (maybe null).

toLabelText

public java.lang.String toLabelText(int index)
Returns the label text.

Parameters:
index - int The data index.
Returns:
String The label text (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 java.lang.Object
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 java.lang.Object
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 java.lang.Object
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 java.lang.Object
Returns:
a string representation of the object.