voji.report
Class ReportColor

java.lang.Object
  |
  +--voji.report.ReportComponent
        |
        +--voji.report.ReportColor
All Implemented Interfaces:
javax.swing.SwingConstants

public class ReportColor
extends ReportComponent

This report component changes the current color for its sub components.


Field Summary
 java.awt.Color color
          The color of the sub components
 
Fields inherited from class voji.report.ReportComponent
position
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
ReportColor(java.awt.Color color)
          Constructs a new ReportColor instance
ReportColor(java.awt.Color color, ReportComponent component)
          Constructs a new ReportColor instance containing the given sub component
 
Method Summary
 void draw(PageGraphics g)
          Draws this component
 
Methods inherited from class voji.report.ReportComponent
add, add, draw, getHeight, getOwnHeight, iterator, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

color

public java.awt.Color color
The color of the sub components

Constructor Detail

ReportColor

public ReportColor(java.awt.Color color)
Constructs a new ReportColor instance

Parameters:
color - the color which should be used for this component's sub components

ReportColor

public ReportColor(java.awt.Color color,
                   ReportComponent component)
Constructs a new ReportColor instance containing the given sub component

Parameters:
color - the color which should be used for this component's sub components
component - a sub component to add
Method Detail

draw

public void draw(PageGraphics g)
Draws this component

Overrides:
draw in class ReportComponent
Parameters:
g - the graphical context where to draw to
See Also:
ReportComponent.getHeight(PageGraphics)