com.jidesoft.plaf.basic
Class GanttChartBackgroundPainter
java.lang.Object
com.jidesoft.plaf.basic.GanttChartBackgroundPainter
- All Implemented Interfaces:
- Serializable, UIResource
public class GanttChartBackgroundPainter
- extends Object
- implements UIResource
- See Also:
- Serialized Form
Method Summary |
protected boolean |
isBelowMininumDistance(Graphics2D graphics,
ScaleArea<Object> scaleArea,
ScaleModel<Object> model,
Period period,
Object instant)
|
protected void |
paintAllPeriodIntervals(GanttChart<Object,GanttEntry<Object>> chart,
Graphics2D graphics,
List<Period> periods)
|
protected void |
paintAllPeriodIntervals(ScaleArea<Object> scaleArea,
Graphics2D graphics,
List<Period> periods)
|
protected void |
paintPeriodBackgrounds(GanttChart<Object,GanttEntry<Object>> ganttChart,
Graphics g,
List<PeriodBackgroundPainter<Object>> painters)
|
protected void |
paintPeriodInterval(ScaleArea<Object> scaleArea,
Graphics2D graphics2D,
Period period,
Object startInstant,
Object endInstant,
int periodStartX,
int periodStartY,
int periodEndX,
int periodEndY)
Note: if the ScaleModel is null, this method will be called once with period and start/end instants null. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GanttChartBackgroundPainter
public GanttChartBackgroundPainter()
paintPeriodInterval
protected void paintPeriodInterval(ScaleArea<Object> scaleArea,
Graphics2D graphics2D,
Period period,
Object startInstant,
Object endInstant,
int periodStartX,
int periodStartY,
int periodEndX,
int periodEndY)
- Note: if the ScaleModel is null, this method will be called once with period and start/end instants null.
- Parameters:
scaleArea
- The ScaleArea the coordinates where calculated for.graphics2D
- The Graphics2D to paint. This might not be the graphics of the ScaleArea, but could be the
GanttChart when painting the period background.period
- The current period to paint.startInstant
- The start instant of the specific period to paint.endInstant
- The end instant of the specific period to paint (exclusive, see ScaleModel.getPeriodEnd(Period, Object)
).
paintPeriodBackgrounds
protected void paintPeriodBackgrounds(GanttChart<Object,GanttEntry<Object>> ganttChart,
Graphics g,
List<PeriodBackgroundPainter<Object>> painters)
paintAllPeriodIntervals
protected void paintAllPeriodIntervals(GanttChart<Object,GanttEntry<Object>> chart,
Graphics2D graphics,
List<Period> periods)
paintAllPeriodIntervals
protected void paintAllPeriodIntervals(ScaleArea<Object> scaleArea,
Graphics2D graphics,
List<Period> periods)
isBelowMininumDistance
protected boolean isBelowMininumDistance(Graphics2D graphics,
ScaleArea<Object> scaleArea,
ScaleModel<Object> model,
Period period,
Object instant)