|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.beesoft.gantt.chart.Layer
eu.beesoft.gantt.chart.CalendarLayer
public class CalendarLayer
Paints background for weekend days.
Constructor Summary | |
---|---|
CalendarLayer()
Default constructor. |
Method Summary | |
---|---|
java.awt.Color |
getColor()
Returns color used to paint background for weekend days. |
protected void |
paint(java.awt.Graphics g)
Paints a calendar background in gantt chart. |
protected void |
paintCalendarItem(TimeSpan timeSpan,
java.awt.Graphics g)
For given timeSpan paints calendar background. |
void |
setColor(java.awt.Color color)
Sets the color used to paint background for weekend days. |
Methods inherited from class eu.beesoft.gantt.chart.Layer |
---|
getGantt, getGanttModel, getHeaderHeight, getChartComponent, getNodeAt, getPaintedNodes, getPosition, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, setVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CalendarLayer()
Method Detail |
---|
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- the color to setprotected void paint(java.awt.Graphics g)
TimeSpan
if it is visible on screen and if so, it
delegates the painting to the method
paintCalendarItem()
paint
in class Layer
g
- - the graphics context to use for paintingprotected void paintCalendarItem(TimeSpan timeSpan, java.awt.Graphics g)
timeSpan
paints calendar background. Calls method
isWeekend()
on GanttModel
to
find out the date from timeSpan is a weekend day and then paints a
background. If timeSpan is not a weekend day, it does nothing.
timeSpan
- -
dates range to paintg
- - the graphics context to use for painting
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |