net.sf.nachocalendar.tasks
Class TaskQuantityRenderer
JLabel
net.sf.nachocalendar.tasks.TaskQuantityRenderer
- DayRenderer
public class TaskQuantityRenderer
extends JLabel
implements DayRenderer
Renderer customized to show dates with tasks assigned in
yellow background. It also creates a tooltip with the quantity
of tasks related to the Date
Component | getDayRenderer(DayPanel daypanel, Date day, Object data, boolean selected, boolean working, boolean enabled) - Returns a component configured to render the Day.
|
Color | getTaskBg()
|
void | paint(Graphics g) - Draws the component.
|
void | setTaskBg(Color taskBg)
|
TaskQuantityRenderer
public TaskQuantityRenderer()
Creates a new instance of TaskRenderer.
getDayRenderer
public Component getDayRenderer(DayPanel daypanel,
Date day,
Object data,
boolean selected,
boolean working,
boolean enabled)
Returns a component configured to render the Day.
daypanel
- Daypanel to be rendererday
- current daydata
- current dataselected
- true if it's selectedworking
- true if it's a working dayenabled
- true if it's enabled
getTaskBg
public Color getTaskBg()
paint
public void paint(Graphics g)
Draws the component.
setTaskBg
public void setTaskBg(Color taskBg)
taskBg
- The taskBg to set.