congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Task.getSubtask
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: jfree/jfreechart

/**
 * Returns the percentage complete value of a sub-interval for a given item.
 *
 * @param rowKey  the row key.
 * @param columnKey  the column key.
 * @param subinterval  the sub-interval.
 *
 * @return The percent complete value (possibly {@code null}).
 */
@Override
public Number getPercentComplete(Comparable rowKey, Comparable columnKey,
                 int subinterval) {
  Number result = null;
  int row = getRowIndex(rowKey);
  TaskSeries series = (TaskSeries) this.data.get(row);
  Task task = series.get(columnKey.toString());
  if (task != null) {
    Task sub = task.getSubtask(subinterval);
    if (sub != null) {
      result = sub.getPercentComplete();
    }
  }
  return result;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns the percentage complete value of a sub-interval for a given item.
 *
 * @param rowKey  the row key.
 * @param columnKey  the column key.
 * @param subinterval  the sub-interval.
 *
 * @return The percent complete value (possibly <code>null</code>).
 */
public Number getPercentComplete(Comparable rowKey, Comparable columnKey,
                 int subinterval) {
  Number result = null;
  int row = getRowIndex(rowKey);
  TaskSeries series = (TaskSeries) this.data.get(row);
  Task task = series.get(columnKey.toString());
  if (task != null) {
    Task sub = task.getSubtask(subinterval);
    if (sub != null) {
      result = sub.getPercentComplete();
    }
  }
  return result;
}
origin: jfree/jfreechart

/**
 * Returns the end value of a sub-interval for a given item.
 *
 * @param rowKey  the row key.
 * @param columnKey  the column key.
 * @param subinterval  the subinterval.
 *
 * @return The end value (possibly {@code null}).
 */
@Override
public Number getEndValue(Comparable rowKey, Comparable columnKey,
             int subinterval) {
  Number result = null;
  int row = getRowIndex(rowKey);
  TaskSeries series = (TaskSeries) this.data.get(row);
  Task task = series.get(columnKey.toString());
  if (task != null) {
    Task sub = task.getSubtask(subinterval);
    if (sub != null) {
      TimePeriod duration = sub.getDuration();
      result = new Long(duration.getEnd().getTime());
    }
  }
  return result;
}
origin: jfree/jfreechart

/**
 * Returns the start value of a sub-interval for a given item.
 *
 * @param rowKey  the row key.
 * @param columnKey  the column key.
 * @param subinterval  the subinterval.
 *
 * @return The start value (possibly {@code null}).
 */
@Override
public Number getStartValue(Comparable rowKey, Comparable columnKey,
              int subinterval) {
  Number result = null;
  int row = getRowIndex(rowKey);
  TaskSeries series = (TaskSeries) this.data.get(row);
  Task task = series.get(columnKey.toString());
  if (task != null) {
    Task sub = task.getSubtask(subinterval);
    if (sub != null) {
      TimePeriod duration = sub.getDuration();
      result = new Long(duration.getStart().getTime());
    }
  }
  return result;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns the start value of a sub-interval for a given item.
 *
 * @param rowKey  the row key.
 * @param columnKey  the column key.
 * @param subinterval  the subinterval.
 *
 * @return The start value (possibly <code>null</code>).
 */
public Number getStartValue(Comparable rowKey, Comparable columnKey,
              int subinterval) {
  Number result = null;
  int row = getRowIndex(rowKey);
  TaskSeries series = (TaskSeries) this.data.get(row);
  Task task = series.get(columnKey.toString());
  if (task != null) {
    Task sub = task.getSubtask(subinterval);
    if (sub != null) {
      TimePeriod duration = sub.getDuration();
      result = new Long(duration.getStart().getTime());
    }
  }
  return result;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns the end value of a sub-interval for a given item.
 *
 * @param rowKey  the row key.
 * @param columnKey  the column key.
 * @param subinterval  the subinterval.
 *
 * @return The end value (possibly <code>null</code>).
 */
public Number getEndValue(Comparable rowKey, Comparable columnKey,
             int subinterval) {
  Number result = null;
  int row = getRowIndex(rowKey);
  TaskSeries series = (TaskSeries) this.data.get(row);
  Task task = series.get(columnKey.toString());
  if (task != null) {
    Task sub = task.getSubtask(subinterval);
    if (sub != null) {
      TimePeriod duration = sub.getDuration();
      result = new Long(duration.getEnd().getTime());
    }
  }
  return result;
}
org.jfree.data.ganttTaskgetSubtask

Javadoc

Returns a sub-task.

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.
  • getDescription
    Returns the task description.
  • getDuration
    Returns the duration (actual or estimated) of the task.
  • getPercentComplete
    Returns the percentage complete for this task.
  • getSubtaskCount
    Returns the sub-task count.
  • setDuration
    Sets the task duration (actual or estimated).

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • setContentView (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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