org.jfree.workbook
Class Border

java.lang.Object
  |
  +--org.jfree.workbook.Border
All Implemented Interfaces:
BorderConstants

public class Border
extends java.lang.Object
implements BorderConstants

Represents the border settings for a style range.

Doesn't support color borders yet.


Field Summary
protected  int bottom
          The bottom border.
protected  int diagonal
          The diagonal 'border'.
protected  int left
          The left border.
protected  int reverseDiagonal
          The reverse diagonal 'border'.
protected  int right
          The right border.
protected  int top
          The top border.
 
Fields inherited from interface org.jfree.workbook.BorderConstants
DASHED1, DASHED2, DASHED3, DASHED4, DOTTED, DOUBLE, EXTRA_THICK_LINE, LINE, NONE, THICK_DASHED1, THICK_DASHED2, THICK_DASHED3, THICK_DASHED4, THICK_LINE
 
Constructor Summary
Border(int top, int bottom, int left, int right, int diagonal, int reverseDiagonal)
          Standard constructor.
 
Method Summary
 int getBottom()
          Returns the line type for the border at the bottom of a cell.
 int getDiagonal()
          Returns the line type for the border diagonally crossing a cell.
 int getLeft()
          Returns the line type for the border at the left of a cell.
 int getReverseDiagonal()
          Returns the line type for the border reverse-diagonally crossing a cell.
 int getRight()
          Returns the line type for the border at the right of a cell.
 int getTop()
          Returns the line type for the border at the top of a cell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

top

protected int top
The top border.


bottom

protected int bottom
The bottom border.


left

protected int left
The left border.


right

protected int right
The right border.


diagonal

protected int diagonal
The diagonal 'border'.


reverseDiagonal

protected int reverseDiagonal
The reverse diagonal 'border'.

Constructor Detail

Border

public Border(int top,
              int bottom,
              int left,
              int right,
              int diagonal,
              int reverseDiagonal)
Standard constructor.

Parameters:
top - the top border style.
bottom - the bottom border style.
left - the left border style.
right - the right border style.
diagonal - the diagonal border style.
reverseDiagonal - The reverse diagonal border style.
Method Detail

getTop

public int getTop()
Returns the line type for the border at the top of a cell.

Returns:
The line type.

getBottom

public int getBottom()
Returns the line type for the border at the bottom of a cell.

Returns:
The line type.

getLeft

public int getLeft()
Returns the line type for the border at the left of a cell.

Returns:
The line type.

getRight

public int getRight()
Returns the line type for the border at the right of a cell.

Returns:
The line type.

getDiagonal

public int getDiagonal()
Returns the line type for the border diagonally crossing a cell.

Returns:
The line type.

getReverseDiagonal

public int getReverseDiagonal()
Returns the line type for the border reverse-diagonally crossing a cell.

Returns:
The line type.