com.jidesoft.plaf.basic
Class AbstractRowBackgroundPainter<T>
java.lang.Object
com.jidesoft.plaf.basic.AbstractRowBackgroundPainter<T>
- Type Parameters:
T
- The type of the bases unit of the scale, for example Date or Integer.
- All Implemented Interfaces:
- PeriodBackgroundPainter<T>
public abstract class AbstractRowBackgroundPainter<T>
- extends Object
- implements PeriodBackgroundPainter<T>
The row background painter class for GanttChart.
- Since:
- 3.4.2
Method Summary |
Period |
getPeriod()
If the period is null, paint periodChartBackground will be called once, but the start and end instant will be
null and the coordinates will be invalid. |
void |
paintPeriodBackground(GanttChart<T,GanttEntry<T>> ganttChart,
Graphics2D g,
T startInstant,
T endInstant,
int periodStartX,
int periodStartY,
int periodEndX,
int periodEndY)
Paints the background. |
abstract void |
paintRowBackground(GanttChart<T,GanttEntry<T>> ganttChart,
Graphics2D g,
int row)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRowBackgroundPainter
public AbstractRowBackgroundPainter()
paintPeriodBackground
public void paintPeriodBackground(GanttChart<T,GanttEntry<T>> ganttChart,
Graphics2D g,
T startInstant,
T endInstant,
int periodStartX,
int periodStartY,
int periodEndX,
int periodEndY)
- Description copied from interface:
PeriodBackgroundPainter
- Paints the background.
- Specified by:
paintPeriodBackground
in interface PeriodBackgroundPainter<T>
- Parameters:
ganttChart
- the gantt chart.g
- the graphicsstartInstant
- the starting value of the current period. The painter will paint the background of gantt
chart period by period. Each time, this method will be called for each period. The
startInstant is the starting value of the current period.endInstant
- the ending value of the current period.periodStartX
- the startX of the current period.periodStartY
- the startY of the current period.periodEndX
- the endX of the current period.periodEndY
- the endY of the current period.
paintRowBackground
public abstract void paintRowBackground(GanttChart<T,GanttEntry<T>> ganttChart,
Graphics2D g,
int row)
getPeriod
public Period getPeriod()
- Description copied from interface:
PeriodBackgroundPainter
- If the period is null, paint periodChartBackground will be called once, but the start and end instant will be
null and the coordinates will be invalid. The latter should be calculated by the painter itself using the scale
area and model.
- Specified by:
getPeriod
in interface PeriodBackgroundPainter<T>
- Returns:
- The Period this painter paints a background for or null to mark a specific interval.