Documentation of 'org.jfree.data.gantt.TaskSeries' Java class
TaskSeries
org.jfree.data.gantt

Class TaskSeries

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public class TaskSeries
    extends Series
    A series that contains zero, one or many Task objects.

    This class is used as a building block for the TaskSeriesCollection class that can be used to construct basic Gantt charts.

    See Also:
    Serialized Form
    • Constructor Detail

      • TaskSeries

        public TaskSeries(java.lang.String name)
        Constructs a new series with the specified name.
        Parameters:
        name - the series name (null not permitted).
    • Method Detail

      • add

        public void add(Task task)
        Adds a task to the series and sends a SeriesChangeEvent to all registered listeners.
        Parameters:
        task - the task (null not permitted).
      • remove

        public void remove(Task task)
        Removes a task from the series and sends a SeriesChangeEvent to all registered listeners.
        Parameters:
        task - the task.
      • removeAll

        public void removeAll()
        Removes all tasks from the series and sends a SeriesChangeEvent to all registered listeners.
      • getItemCount

        public int getItemCount()
        Returns the number of items in the series.
        Specified by:
        getItemCount in class Series
        Returns:
        The item count.
      • get

        public Task get(int index)
        Returns a task from the series.
        Parameters:
        index - the task index (zero-based).
        Returns:
        The task.
      • get

        public Task get(java.lang.String description)
        Returns the task in the series that has the specified description.
        Parameters:
        description - the name (null not permitted).
        Returns:
        The task (possibly null).
      • getTasks

        public java.util.List getTasks()
        Returns an unmodifialble list of the tasks in the series.
        Returns:
        The tasks.
      • equals

        public boolean equals(java.lang.Object obj)
        Tests this object for equality with an arbitrary object.
        Overrides:
        equals in class Series
        Parameters:
        obj - the object to test against (null permitted).
        Returns:
        A boolean.
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Returns an independent copy of this series.
        Overrides:
        clone in class Series
        Returns:
        A clone of the series.
        Throws:
        java.lang.CloneNotSupportedException - if there is some problem cloning the dataset.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.