eu.beesoft.gantt.chart
Class BackgroundLayer

java.lang.Object
  extended by eu.beesoft.gantt.chart.Layer
      extended by eu.beesoft.gantt.chart.BackgroundLayer

public class BackgroundLayer
extends Layer

Paints colored background for gantt chart.


Constructor Summary
BackgroundLayer()
          Default constructor.
 
Method Summary
 java.awt.Color getColor()
          Returns background color.
protected  void paint(java.awt.Graphics g)
          Paints a background in gantt chart.
 void setColor(java.awt.Color color)
          Sets background color.
 
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

BackgroundLayer

public BackgroundLayer()
Default constructor.

Method Detail

getColor

public java.awt.Color getColor()
Returns background color.

Returns:
background color

setColor

public void setColor(java.awt.Color color)
Sets background color.

Parameters:
color - new value for background color

paint

protected void paint(java.awt.Graphics g)
Paints a background in gantt chart.

Specified by:
paint in class Layer
Parameters:
g - - the graphics context to use for painting