|
|||||||||
| 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.TodayLayer
public class TodayLayer
Paints strong vertical line on chart component at given date (usually today).
| Constructor Summary | |
|---|---|
TodayLayer()
Default constructor. |
|
| Method Summary | |
|---|---|
java.awt.Color |
getColor()
Returns line color. |
java.util.Date |
getDate()
Returns date for which is line painted. |
protected void |
paint(java.awt.Graphics g)
Paints a vertical line for (today) date. |
protected void |
paintToday(TimeSpan timeSpan,
java.awt.Graphics g)
Paints a vertical line for given timeSpan. |
void |
setColor(java.awt.Color color)
Sets line color. |
void |
setDate(java.util.Date date)
Sets the date for which will be line painted. |
| 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 TodayLayer()
| Method Detail |
|---|
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color - new value for line colorpublic java.util.Date getDate()
public void setDate(java.util.Date date)
date - - new line dateprotected void paint(java.awt.Graphics g)
TimeSpan and then delegates painting to
paintToday() method.
paint in class Layerg - - the graphics context to use for painting
protected void paintToday(TimeSpan timeSpan,
java.awt.Graphics g)
timeSpan.
timeSpan - - date transformed to x-coordinate where to paint lineg - - the graphics context to use for painting
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||