|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of the bases unit of the scale, for example Date or Integer.public interface PeriodBackgroundPainter<T>
PeriodBackgroundPainter is an interface used by GanttChart to paint the period background.
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. |
Method Detail |
---|
void paintPeriodBackground(GanttChart<T,GanttEntry<T>> ganttChart, Graphics2D g, T startInstant, T endInstant, int periodStartX, int periodStartY, int periodEndX, int periodEndY)
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.Period getPeriod()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |