com.jrefinery.workbook
Class StyleBorder

java.lang.Object
  |
  +--com.jrefinery.workbook.StyleBorder

public class StyleBorder
extends java.lang.Object

Represents the border settings for a style range.

Doesn't support color borders yet.


Field Summary
protected  int bottom
          The bottom border.
static int DASHED1
          Constant for Gnumeric border type DASHED1.
static int DASHED2
          Constant for Gnumeric border type DASHED2.
static int DASHED3
          Constant for Gnumeric border type DASHED3.
static int DASHED4
          Constant for Gnumeric border type DASHED4.
protected  int diagonal
          The diagonal 'border'.
static int DOTTED
          Constant for Gnumeric border type DOTTED.
static int DOUBLE
          Constant for Gnumeric border type DOUBLE.
static int EXTRA_THICK_LINE
          Constant for Gnumeric border type EXTRA_THICK_LINE.
protected  int left
          The left border.
static int LINE
          Constant for Gnumeric border type LINE.
static int NONE
          Constant for Gnumeric border type NONE.
protected  int reverse_diagonal
          The reverse diagonal 'border'.
protected  int right
          The right border.
static int THICK_DASHED1
          Constant for Gnumeric border type THICK_DASHED1.
static int THICK_DASHED2
          Constant for Gnumeric border type THICK_DASHED2.
static int THICK_DASHED3
          Constant for Gnumeric border type THICK_DASHED3.
static int THICK_DASHED4
          Constant for Gnumeric border type THICK_DASHED4.
static int THICK_LINE
          Constant for Gnumeric border type THICK_LINE.
protected  int top
          The top border.
 
Constructor Summary
StyleBorder(int top, int bottom, int left, int right, int diagonal, int reverse_diagonal)
          Standard constructor.
 
Method Summary
 void writeStyleBorder(java.io.PrintStream out, java.lang.String indent)
          Writes a style border element to the stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
Constant for Gnumeric border type NONE.

DOTTED

public static final int DOTTED
Constant for Gnumeric border type DOTTED.

DASHED1

public static final int DASHED1
Constant for Gnumeric border type DASHED1.

DASHED2

public static final int DASHED2
Constant for Gnumeric border type DASHED2.

DASHED3

public static final int DASHED3
Constant for Gnumeric border type DASHED3.

DASHED4

public static final int DASHED4
Constant for Gnumeric border type DASHED4.

LINE

public static final int LINE
Constant for Gnumeric border type LINE.

THICK_DASHED1

public static final int THICK_DASHED1
Constant for Gnumeric border type THICK_DASHED1.

THICK_DASHED2

public static final int THICK_DASHED2
Constant for Gnumeric border type THICK_DASHED2.

THICK_DASHED3

public static final int THICK_DASHED3
Constant for Gnumeric border type THICK_DASHED3.

THICK_DASHED4

public static final int THICK_DASHED4
Constant for Gnumeric border type THICK_DASHED4.

THICK_LINE

public static final int THICK_LINE
Constant for Gnumeric border type THICK_LINE.

EXTRA_THICK_LINE

public static final int EXTRA_THICK_LINE
Constant for Gnumeric border type EXTRA_THICK_LINE.

DOUBLE

public static final int DOUBLE
Constant for Gnumeric border type DOUBLE.

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'.

reverse_diagonal

protected int reverse_diagonal
The reverse diagonal 'border'.
Constructor Detail

StyleBorder

public StyleBorder(int top,
                   int bottom,
                   int left,
                   int right,
                   int diagonal,
                   int reverse_diagonal)
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.
reverse_diagonal - The reverse_diagonal border style.
Method Detail

writeStyleBorder

public void writeStyleBorder(java.io.PrintStream out,
                             java.lang.String indent)
Writes a style border element to the stream.