com.jidesoft.plaf.basic
Class BasicPeriodHeaderPainter
java.lang.Object
com.jidesoft.plaf.basic.BasicPeriodHeaderPainter
- All Implemented Interfaces:
- PeriodHeaderPainter, Serializable, UIResource
public class BasicPeriodHeaderPainter
- extends Object
- implements PeriodHeaderPainter, 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 |
paintPeriodHeader(ScaleArea<Object> scaleArea,
Graphics2D graphics,
String text,
int periodStartX,
int periodStartY,
int periodEndX,
int periodEndY)
|
void |
paintPeriodHeaders(ScaleArea<Object> scaleArea,
Graphics graphics)
|
protected void |
paintPeriodInterval(ScaleArea<Object> scaleArea,
Graphics2D graphics,
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 |
BasicPeriodHeaderPainter
public BasicPeriodHeaderPainter()
paintPeriodHeaders
public void paintPeriodHeaders(ScaleArea<Object> scaleArea,
Graphics graphics)
- Specified by:
paintPeriodHeaders
in interface PeriodHeaderPainter
paintPeriodInterval
protected void paintPeriodInterval(ScaleArea<Object> scaleArea,
Graphics2D graphics,
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.graphics
- 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)
).
paintPeriodHeader
protected void paintPeriodHeader(ScaleArea<Object> scaleArea,
Graphics2D graphics,
String text,
int periodStartX,
int periodStartY,
int periodEndX,
int periodEndY)
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)