org.jfree.chart.renderer.category
public class GanttRenderer extends IntervalBarRenderer implements Serializable
Constructor Summary | |
---|---|
GanttRenderer()
Creates a new renderer. |
Method Summary | |
---|---|
void | drawItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset, int row, int column, int pass)
Draws the bar for a single (series, category) data item.
|
protected void | drawTask(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, GanttCategoryDataset dataset, int row, int column)
Draws a single task.
|
protected void | drawTasks(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, GanttCategoryDataset dataset, int row, int column)
Draws the tasks/subtasks for one item.
|
boolean | equals(Object obj)
Tests this renderer for equality with an arbitrary object.
|
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.
|
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(Paint paint)
Sets the paint used to show the percentage complete and sends a
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, and sends a RendererChangeEvent to all
registered listeners.
|
void | setIncompletePaint(Paint paint)
Sets the paint used to show the percentage incomplete and sends a
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, and sends a RendererChangeEvent to
all registered listeners.
|
Parameters: g2 the graphics device. state the renderer state. dataArea the data area. plot the plot. domainAxis the domain axis. rangeAxis the range axis. dataset the dataset. row the row index (zero-based). column the column index (zero-based). pass the pass index.
Parameters: g2 the graphics device. state the renderer state. dataArea the data plot area. plot the plot. domainAxis the domain axis. rangeAxis the range axis. dataset the data. row the row index (zero-based). column the column index (zero-based).
Parameters: g2 the graphics device. state the renderer state. dataArea the data plot area. plot the plot. domainAxis the domain axis. rangeAxis the range axis. dataset the data. row the row index (zero-based). column the column index (zero-based).
Parameters: obj the object (null
permitted).
Returns: A boolean.
Returns: The paint (never null
.
See Also: setCompletePaint
Returns: The end percent.
See Also: GanttRenderer
Returns: The paint (never null
).
See Also: setCompletePaint
Returns: The start percent.
See Also: GanttRenderer
Parameters: paint the paint (null
not permitted).
See Also: getCompletePaint
Parameters: percent the percent.
See Also: getEndPercent
Parameters: paint the paint (null
not permitted).
See Also: getIncompletePaint
Parameters: percent the percent.
See Also: getStartPercent