|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.data.AbstractChartData
com.ijchart.xychart.data.GranttChartData
public class GranttChartData
Title: IJChart
Description: a chart library for the Java(tm) platform.
Grantt ChartData object,this class is immutable.Copyright: Copyright (c) 2013
Company:
Field Summary |
---|
Fields inherited from class com.ijchart.xychart.data.AbstractChartData |
---|
DATE_MASK_LONG |
Constructor Summary | |
---|---|
GranttChartData(java.util.Date start,
java.util.Date end)
Constructor. |
|
GranttChartData(java.util.Date start,
java.util.Date end,
java.lang.Double percentComplete)
Constructor. |
|
GranttChartData(long start,
long end)
Constructor. |
|
GranttChartData(long start,
long end,
java.lang.Double percentComplete)
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.Date |
getEnd()
Returns the end date/time. |
java.lang.String |
getLabelText()
Returns the label text. |
java.lang.Double |
getPercentComplete()
Returns the percent complete. |
java.util.Date |
getStart()
Returns the start date/time. |
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 |
---|
public GranttChartData(long start, long end)
start
- long
The start date/time in milliseconds.end
- long
The end date/time in milliseconds.public GranttChartData(long start, long end, java.lang.Double percentComplete)
start
- long
The start date/time in milliseconds.end
- long
The end date/time in milliseconds.percentComplete
-
The percent complete.public GranttChartData(java.util.Date start, java.util.Date end)
start
- long
The start date/time in milliseconds.end
- long
The end date/time in milliseconds.public GranttChartData(java.util.Date start, java.util.Date end, java.lang.Double percentComplete)
start
- long
The start date/time in milliseconds.end
- long
The end date/time in milliseconds.percentComplete
-
The percent complete.Method Detail |
---|
public java.util.Date getStart()
public java.util.Date getEnd()
public java.lang.Double getPercentComplete()
public java.lang.String getLabelText()
getLabelText
in interface IChartData
getLabelText
in class AbstractChartData
public java.lang.String getAreaFunctionArguments()
getAreaFunctionArguments
in interface IChartData
getAreaFunctionArguments
in class AbstractChartData
public java.lang.String getAreaURLFragment()
getAreaURLFragment
in interface IChartData
getAreaURLFragment
in class AbstractChartData
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- Object
The Object to be compared.
java.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this Object.public boolean equals(java.lang.Object obj)
equals
in class AbstractChartData
obj
- the object (null permitted).
public int hashCode()
hashCode
in class AbstractChartData
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractChartData
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.public java.lang.String toString()
toString
in class AbstractChartData
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |