|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.jrefinery.data.Series
com.jrefinery.data.GanttSeries
public class GanttSeries
A very basic representation of a list of tasks and time allocations.
This class is used as a building block for the GanttSeriesCollection class that implements the IntervalCategoryDataset that, in turn, can be used to construct simple Gantt charts.
This class is incomplete. It implements the bare minimum required to get a simple demo running.
| Field Summary | |
|---|---|
protected java.util.List |
tasks
A list of tasks. |
| Fields inherited from class com.jrefinery.data.Series |
|---|
description, listeners, name, propertyChangeSupport |
| Constructor Summary | |
|---|---|
GanttSeries(java.lang.String name)
Constructs a new series with the specified name. |
|
| Method Summary | |
|---|---|
void |
add(java.lang.Object taskId)
|
GanttTask |
add(java.lang.Object taskId,
TimeAllocation allocation)
Adds a time allocation for the named task. |
GanttTask |
findTask(java.lang.Object taskId)
Returns the task with the specified id. |
int |
getItemCount()
Returns the number of items in the series. |
java.util.List |
getTaskList()
|
TimeAllocation |
getTimeAllocation(java.lang.Object taskId,
int index)
Returns the Nth time allocation for the named task. |
int |
getTimeAllocationCount(java.lang.Object taskId)
Returns the number of time allocations for the named task. |
void |
remove(java.lang.Object taskId,
TimeAllocation allocation)
|
| Methods inherited from class com.jrefinery.data.Series |
|---|
addChangeListener, addPropertyChangeListener, clone, fireSeriesChanged, getDescription, getName, notifyListeners, removeChangeListener, removePropertyChangeListener, setDescription, setName |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List tasks
| Constructor Detail |
|---|
public GanttSeries(java.lang.String name)
name - The series name.| Method Detail |
|---|
public int getItemCount()
public GanttTask findTask(java.lang.Object taskId)
taskId - Identifier for the task of interest
public TimeAllocation getTimeAllocation(java.lang.Object taskId,
int index)
taskId - Identifier for the task of interestindex - 0 based index to the desired time allocation
public int getTimeAllocationCount(java.lang.Object taskId)
taskId - Identifier for the task of interest
public GanttTask add(java.lang.Object taskId,
TimeAllocation allocation)
The task id can be any arbitrary Object.
task - The task.allocation - The time allocation.
public void add(java.lang.Object taskId)
public void remove(java.lang.Object taskId,
TimeAllocation allocation)
public java.util.List getTaskList()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||