Tabnine Logo
Task.getDescription
Code IndexAdd Tabnine to your IDE (free)

How to use
getDescription
method
in
org.jfree.data.gantt.Task

Best Java code snippets using org.jfree.data.gantt.Task.getDescription (Showing top 7 results out of 315)

origin: jfree/jfreechart

/**
 * Returns the task in the series that has the specified description.
 *
 * @param description  the name ({@code null} not permitted).
 *
 * @return The task (possibly {@code null}).
 */
public Task get(String description) {
  Task result = null;
  int count = this.tasks.size();
  for (int i = 0; i < count; i++) {
    Task t = (Task) this.tasks.get(i);
    if (t.getDescription().equals(description)) {
      result = t;
      break;
    }
  }
  return result;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns the task in the series that has the specified description.
 *
 * @param description  the name (<code>null</code> not permitted).
 *
 * @return The task (possibly <code>null</code>).
 */
public Task get(String description) {
  Task result = null;
  int count = this.tasks.size();
  for (int i = 0; i < count; i++) {
    Task t = (Task) this.tasks.get(i);
    if (t.getDescription().equals(description)) {
      result = t;
      break;
    }
  }
  return result;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Refreshes the keys.
 */
private void refreshKeys() {
  this.keys.clear();
  for (int i = 0; i < getSeriesCount(); i++) {
    TaskSeries series = (TaskSeries) this.data.get(i);
    // look for any keys that we don't already know about...
    Iterator iterator = series.getTasks().iterator();
    while (iterator.hasNext()) {
      Task task = (Task) iterator.next();
      String key = task.getDescription();
      int index = this.keys.indexOf(key);
      if (index < 0) {
        this.keys.add(key);
      }
    }
  }
}
origin: jfree/jfreechart

/**
 * Refreshes the keys.
 */
private void refreshKeys() {
  this.keys.clear();
  for (int i = 0; i < getSeriesCount(); i++) {
    TaskSeries series = (TaskSeries) this.data.get(i);
    // look for any keys that we don't already know about...
    Iterator iterator = series.getTasks().iterator();
    while (iterator.hasNext()) {
      Task task = (Task) iterator.next();
      String key = task.getDescription();
      int index = this.keys.indexOf(key);
      if (index < 0) {
        this.keys.add(key);
      }
    }
  }
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Adds a series to the dataset and sends a
 * {@link org.jfree.data.general.DatasetChangeEvent} to all registered
 * listeners.
 *
 * @param series  the series (<code>null</code> not permitted).
 */
public void add(TaskSeries series) {
  if (series == null) {
    throw new IllegalArgumentException("Null 'series' argument.");
  }
  this.data.add(series);
  series.addChangeListener(this);
  // look for any keys that we don't already know about...
  Iterator iterator = series.getTasks().iterator();
  while (iterator.hasNext()) {
    Task task = (Task) iterator.next();
    String key = task.getDescription();
    int index = this.keys.indexOf(key);
    if (index < 0) {
      this.keys.add(key);
    }
  }
  fireDatasetChanged();
}
origin: jfree/jfreechart

/**
 * Adds a series to the dataset and sends a
 * {@link org.jfree.data.general.DatasetChangeEvent} to all registered
 * listeners.
 *
 * @param series  the series ({@code null} not permitted).
 */
public void add(TaskSeries series) {
  Args.nullNotPermitted(series, "series");
  this.data.add(series);
  series.addChangeListener(this);
  // look for any keys that we don't already know about...
  Iterator iterator = series.getTasks().iterator();
  while (iterator.hasNext()) {
    Task task = (Task) iterator.next();
    String key = task.getDescription();
    int index = this.keys.indexOf(key);
    if (index < 0) {
      this.keys.add(key);
    }
  }
  fireDatasetChanged();
}
origin: org.openfuxml/ofx-chart

@Override
public Paint getItemPaint(int row, int column)
{
  Paint result;
  XYTaskDataset tds = (XYTaskDataset)dataset;
  TaskSeriesCollection tsc = tds.getTasks();
  TaskSeries ts = tsc.getSeries(row);
  Task t = ts.get(column);
  result = getCategoryPaint(t.getDescription());
  return result;
}
  
org.jfree.data.ganttTaskgetDescription

Javadoc

Returns the task description.

Popular methods of Task

  • <init>
    Creates a new task.
  • setPercentComplete
    Sets the percentage complete for the task.
  • addSubtask
    Adds a sub-task to the task.
  • getDuration
    Returns the duration (actual or estimated) of the task.
  • getPercentComplete
    Returns the percentage complete for this task.
  • getSubtask
    Returns a sub-task.
  • getSubtaskCount
    Returns the sub-task count.
  • setDuration
    Sets the task duration (actual or estimated).

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now