|
|||||||||
| Home >> All >> org >> jfree >> chart >> renderer >> [ category overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jfree.chart.renderer.category
Class GanttRenderer

java.lang.Objectorg.jfree.chart.renderer.AbstractRenderer
org.jfree.chart.renderer.category.AbstractCategoryItemRenderer
org.jfree.chart.renderer.category.BarRenderer
org.jfree.chart.renderer.category.IntervalBarRenderer
org.jfree.chart.renderer.category.GanttRenderer
- All Implemented Interfaces:
- CategoryItemRenderer, java.lang.Cloneable, org.jfree.chart.LegendItemSource, org.jfree.util.PublicCloneable, java.io.Serializable
- public class GanttRenderer
- extends IntervalBarRenderer
- implements java.io.Serializable
- extends IntervalBarRenderer
A renderer for simple Gantt charts.
| Field Summary | |
private java.awt.Paint |
completePaint
The paint for displaying the percentage complete. |
private double |
endPercent
Controls the ending edge of the progress indicator (expressed as a percentage of the overall bar width). |
private java.awt.Paint |
incompletePaint
The paint for displaying the incomplete part of a task. |
private static long |
serialVersionUID
For serialization. |
private double |
startPercent
Controls the starting edge of the progress indicator (expressed as a percentage of the overall bar width). |
| Fields inherited from class org.jfree.chart.renderer.category.BarRenderer |
BAR_OUTLINE_WIDTH_THRESHOLD, DEFAULT_ITEM_MARGIN |
| Fields inherited from class org.jfree.chart.renderer.category.AbstractCategoryItemRenderer |
|
| Fields inherited from class org.jfree.chart.renderer.AbstractRenderer |
DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, DEFAULT_PAINT, DEFAULT_SHAPE, DEFAULT_STROKE, DEFAULT_VALUE_LABEL_FONT, DEFAULT_VALUE_LABEL_PAINT, ZERO |
| Constructor Summary | |
GanttRenderer()
Creates a new renderer. |
|
| Method Summary | |
void |
drawItem(java.awt.Graphics2D g2,
CategoryItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
org.jfree.chart.plot.CategoryPlot plot,
org.jfree.chart.axis.CategoryAxis domainAxis,
org.jfree.chart.axis.ValueAxis rangeAxis,
org.jfree.data.category.CategoryDataset dataset,
int row,
int column,
int pass)
Draws the bar for a single (series, category) data item. |
protected void |
drawTask(java.awt.Graphics2D g2,
CategoryItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
org.jfree.chart.plot.CategoryPlot plot,
org.jfree.chart.axis.CategoryAxis domainAxis,
org.jfree.chart.axis.ValueAxis rangeAxis,
org.jfree.data.gantt.GanttCategoryDataset dataset,
int row,
int column)
Draws a single task. |
protected void |
drawTasks(java.awt.Graphics2D g2,
CategoryItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
org.jfree.chart.plot.CategoryPlot plot,
org.jfree.chart.axis.CategoryAxis domainAxis,
org.jfree.chart.axis.ValueAxis rangeAxis,
org.jfree.data.gantt.GanttCategoryDataset dataset,
int row,
int column)
Draws the tasks/subtasks for one item. |
java.awt.Paint |
getCompletePaint()
Returns the paint used to show the percentage complete. |
double |
getEndPercent()
Returns the position of the end of the progress indicator, as a percentage of the bar width. |
java.awt.Paint |
getIncompletePaint()
Returns the paint used to show the percentage incomplete. |
double |
getStartPercent()
Returns the position of the start of the progress indicator, as a percentage of the bar width. |
void |
setCompletePaint(java.awt.Paint paint)
Sets the paint used to show the percentage complete and sends a org.jfree.chart.event.RendererChangeEvent to all registered listeners. |
void |
setEndPercent(double percent)
Sets the position of the end of the progress indicator, as a percentage of the bar width. |
void |
setIncompletePaint(java.awt.Paint paint)
Sets the paint used to show the percentage incomplete and sends a org.jfree.chart.event.RendererChangeEvent to all registered listeners. |
void |
setStartPercent(double percent)
Sets the position of the start of the progress indicator, as a percentage of the bar width. |
| Methods inherited from class org.jfree.chart.renderer.category.IntervalBarRenderer |
drawInterval |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jfree.chart.LegendItemSource |
getLegendItems |
| Methods inherited from interface org.jfree.util.PublicCloneable |
clone |
| Field Detail |
serialVersionUID
private static final long serialVersionUID
- For serialization.
- See Also:
- Constant Field Values
completePaint
private java.awt.Paint completePaint
- The paint for displaying the percentage complete.
incompletePaint
private java.awt.Paint incompletePaint
- The paint for displaying the incomplete part of a task.
startPercent
private double startPercent
- Controls the starting edge of the progress indicator (expressed as a
percentage of the overall bar width).
endPercent
private double endPercent
- Controls the ending edge of the progress indicator (expressed as a
percentage of the overall bar width).
| Constructor Detail |
GanttRenderer
public GanttRenderer()
- Creates a new renderer.
| Method Detail |
getCompletePaint
public java.awt.Paint getCompletePaint()
- Returns the paint used to show the percentage complete.
setCompletePaint
public void setCompletePaint(java.awt.Paint paint)
- Sets the paint used to show the percentage complete and sends a
org.jfree.chart.event.RendererChangeEvent to all registered listeners.
getIncompletePaint
public java.awt.Paint getIncompletePaint()
- Returns the paint used to show the percentage incomplete.
setIncompletePaint
public void setIncompletePaint(java.awt.Paint paint)
- Sets the paint used to show the percentage incomplete and sends a
org.jfree.chart.event.RendererChangeEvent to all registered listeners.
getStartPercent
public double getStartPercent()
- Returns the position of the start of the progress indicator, as a
percentage of the bar width.
setStartPercent
public void setStartPercent(double percent)
- Sets the position of the start of the progress indicator, as a
percentage of the bar width.
getEndPercent
public double getEndPercent()
- Returns the position of the end of the progress indicator, as a
percentage of the bar width.
setEndPercent
public void setEndPercent(double percent)
- Sets the position of the end of the progress indicator, as a percentage
of the bar width.
drawItem
public void drawItem(java.awt.Graphics2D g2, CategoryItemRendererState state, java.awt.geom.Rectangle2D dataArea, org.jfree.chart.plot.CategoryPlot plot, org.jfree.chart.axis.CategoryAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, org.jfree.data.category.CategoryDataset dataset, int row, int column, int pass)
- Draws the bar for a single (series, category) data item.
- Specified by:
drawItemin interfaceCategoryItemRenderer- Overrides:
drawItemin classIntervalBarRenderer
drawTasks
protected void drawTasks(java.awt.Graphics2D g2, CategoryItemRendererState state, java.awt.geom.Rectangle2D dataArea, org.jfree.chart.plot.CategoryPlot plot, org.jfree.chart.axis.CategoryAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, org.jfree.data.gantt.GanttCategoryDataset dataset, int row, int column)
- Draws the tasks/subtasks for one item.
drawTask
protected void drawTask(java.awt.Graphics2D g2, CategoryItemRendererState state, java.awt.geom.Rectangle2D dataArea, org.jfree.chart.plot.CategoryPlot plot, org.jfree.chart.axis.CategoryAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, org.jfree.data.gantt.GanttCategoryDataset dataset, int row, int column)
- Draws a single task.
|
|||||||||
| Home >> All >> org >> jfree >> chart >> renderer >> [ category overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC