voji.report
Class ReportFrame

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

public class ReportFrame
extends ReportComponent

This report component draws a frame around its sub components


Field Summary
static int BOLD
          Frame with a bold border line
protected static int BOLD_WIDTH
          The width of a BOLD line
static int DOUBLE
          Frame with two thin border lines
protected static int DOUBLE_SPACE
          The space between the two lines of a DOUBLE
 double left
          The left extension of the frame
static int NONE
          Invisible Frame
static int OVAL
          Frame with an oval border line
 double right
          The right extension of the frame
static int SINGLE
          Frame with a single thin border line
 int type
          The type of the frame.
 
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
ReportFrame(double left, double right)
          Constructs a new ReportFrame instance of the type SINGLE
ReportFrame(double left, double right, int type)
          Constructs a new ReportFrame instance of the specified type
 
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

left

public double left
The left extension of the frame


right

public double right
The right extension of the frame


type

public int type
The type of the frame. It's either NONE, SINGLE, DOUBLE, BOLD or OVAL.


NONE

public static final int NONE
Invisible Frame

See Also:
Constant Field Values

SINGLE

public static final int SINGLE
Frame with a single thin border line

See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
Frame with two thin border lines

See Also:
Constant Field Values

BOLD

public static final int BOLD
Frame with a bold border line

See Also:
Constant Field Values

OVAL

public static final int OVAL
Frame with an oval border line

See Also:
Constant Field Values

DOUBLE_SPACE

protected static final int DOUBLE_SPACE
The space between the two lines of a DOUBLE

See Also:
Constant Field Values

BOLD_WIDTH

protected static final int BOLD_WIDTH
The width of a BOLD line

See Also:
Constant Field Values
Constructor Detail

ReportFrame

public ReportFrame(double left,
                   double right,
                   int type)
Constructs a new ReportFrame instance of the specified type

Parameters:
left - the left extension of the text
right - the right extension of the text
type - the type of the frame

ReportFrame

public ReportFrame(double left,
                   double right)
Constructs a new ReportFrame instance of the type SINGLE

Parameters:
left - the left extension of the text
right - the right extension of the text
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)