Class PatchRtfBorder
- java.lang.Object
-
- com.lowagie.text.rtf.RtfElement
-
- org.pentaho.reporting.engine.classic.core.modules.output.table.rtf.itext.PatchRtfBorder
-
- All Implemented Interfaces:
com.lowagie.text.rtf.RtfBasicElement
,com.lowagie.text.RtfElementInterface
public class PatchRtfBorder extends com.lowagie.text.rtf.RtfElement
The PatchRtfBorder handle one row or cell border. INTERNAL USE ONLY- Version:
- $Id: PatchRtfBorder.java 3580 2008-08-06 15:52:00Z howard_s $
- Author:
- Mark Hall (Mark.Hall@mail.room3b.eu), Thomas Bickel (tmb99@inode.at)
-
-
Field Summary
Fields Modifier and Type Field Description protected static byte[]
BORDER_COLOR_NUMBER
Constant for the border color numberstatic int
BORDER_DASHED
Constant for a dashed borderstatic int
BORDER_DOT_DASH
Constant for a dot dash borderstatic int
BORDER_DOT_DOT_DASH
Constant for a dot dot dash borderstatic int
BORDER_DOTTED
Constant for a dotted borderstatic int
BORDER_DOUBLE
Constant for a double borderstatic int
BORDER_DOUBLE_THICK
Constant for a double thick borderstatic int
BORDER_DOUBLE_WAVY
Constant for a double wavy borderstatic int
BORDER_EMBOSS
Constant for an embossed borderstatic int
BORDER_ENGRAVE
Constant for an engraved borderstatic int
BORDER_HAIRLINE
Constant for a hairline borderstatic int
BORDER_NONE
Constant for a border with no borderstatic int
BORDER_SHADOWED
Constant for a shadowed borderstatic int
BORDER_SINGLE
Constant for a single borderstatic int
BORDER_STRIPED
Constant for a striped borderprotected static byte[]
BORDER_STYLE_DASHED
Constant for the dashed border styleprotected static byte[]
BORDER_STYLE_DOT_DASH
Constant for the dot dash border styleprotected static byte[]
BORDER_STYLE_DOT_DOT_DASH
Constant for the dot dot dash border styleprotected static byte[]
BORDER_STYLE_DOTTED
Constant for the dotted border styleprotected static byte[]
BORDER_STYLE_DOUBLE
Constant for the double border styleprotected static byte[]
BORDER_STYLE_DOUBLE_THICK
Constant for the double thick border styleprotected static byte[]
BORDER_STYLE_DOUBLE_WAVY
Constant for the double wavy border styleprotected static byte[]
BORDER_STYLE_EMBOSS
Constant for the embossed border styleprotected static byte[]
BORDER_STYLE_ENGRAVE
Constant for the engraved border styleprotected static byte[]
BORDER_STYLE_HAIRLINE
Constant for the hairline border styleprotected static byte[]
BORDER_STYLE_SHADOWED
Constant for the shadowed border styleprotected static byte[]
BORDER_STYLE_SINGLE
Constant for the single border styleprotected static byte[]
BORDER_STYLE_STRIPED
Constant for the striped border styleprotected static byte[]
BORDER_STYLE_THICK_THIN
Constant for the thick thin border styleprotected static byte[]
BORDER_STYLE_THICK_THIN_LARGE
Constant for the thick thin large border styleprotected static byte[]
BORDER_STYLE_THICK_THIN_MED
Constant for the thick thin medium border styleprotected static byte[]
BORDER_STYLE_THIN_THICK
Constant for the thin thick border styleprotected static byte[]
BORDER_STYLE_THIN_THICK_LARGE
Constant for the thin thick large border styleprotected static byte[]
BORDER_STYLE_THIN_THICK_MED
Constant for the thin thick medium border styleprotected static byte[]
BORDER_STYLE_THIN_THICK_THIN
Constant for the thin thick thin border styleprotected static byte[]
BORDER_STYLE_THIN_THICK_THIN_LARGE
Constant for the thin thick thin large border styleprotected static byte[]
BORDER_STYLE_THIN_THICK_THIN_MED
Constant for the thin thick thin medium border styleprotected static byte[]
BORDER_STYLE_TRIPLE
Constant for the triple border styleprotected static byte[]
BORDER_STYLE_WAVY
Constant for the wavy border stylestatic int
BORDER_THICK_THIN
Constant for a thick thin borderstatic int
BORDER_THICK_THIN_LARGE
Constant for a thick thin large borderstatic int
BORDER_THICK_THIN_MED
Constant for a thick thin medium borderstatic int
BORDER_THIN_THICK
Constant for a thin thick borderstatic int
BORDER_THIN_THICK_LARGE
Constant for a thin thick large borderstatic int
BORDER_THIN_THICK_MED
Constant for a thin thick medium borderstatic int
BORDER_THIN_THICK_THIN
Constant for a thin thick thin borderstatic int
BORDER_THIN_THICK_THIN_LARGE
Constant for a thin thick thin large borderstatic int
BORDER_THIN_THICK_THIN_MED
Constant for a thin thick thin medium borderstatic int
BORDER_TRIPLE
Constant for a triple borderstatic int
BORDER_WAVY
Constant for a wavy borderprotected static byte[]
BORDER_WIDTH
Constant for the border widthprotected static int
BOTTOM_BORDER
Constant for a bottom borderprotected static int
BOX_BORDER
Constant for a box (left, top, right, bottom) borderprotected static int
CELL_BORDER
Constant for a cell borderprotected static byte[]
CELL_BORDER_BOTTOM
Constant for the bottom cell borderprotected static byte[]
CELL_BORDER_LEFT
Constant for the left cell borderprotected static byte[]
CELL_BORDER_RIGHT
Constant for the right cell borderprotected static byte[]
CELL_BORDER_TOP
Constant for the top cell borderprotected static int
HORIZONTAL_BORDER
Constant for a horizontal lineprotected static int
LEFT_BORDER
Constant for a left borderprotected static int
NO_BORDER
This border is no border :-)protected static int
RIGHT_BORDER
Constant for a right borderprotected static int
ROW_BORDER
Constant for a row borderprotected static byte[]
ROW_BORDER_BOTTOM
Constant for the bottom row borderprotected static byte[]
ROW_BORDER_HORIZONTAL
Constant for the horizontal lineprotected static byte[]
ROW_BORDER_LEFT
Constant for the left row borderprotected static byte[]
ROW_BORDER_RIGHT
Constant for the right row borderprotected static byte[]
ROW_BORDER_TOP
Constant for the top row borderprotected static byte[]
ROW_BORDER_VERTICAL
Constant for the vertical lineprotected static int
TOP_BORDER
Constant for a top borderprotected static int
VERTICAL_BORDER
Constant for a vertical line
-
Constructor Summary
Constructors Modifier Constructor Description protected
PatchRtfBorder(com.lowagie.text.rtf.document.RtfDocument doc, int borderType, int borderPosition, int borderStyle, float borderWidth, Color borderColor)
Constructs a PatchRtfBorderprotected
PatchRtfBorder(com.lowagie.text.rtf.document.RtfDocument doc, int borderType, PatchRtfBorder border)
Makes a copy of the given PatchRtfBorder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.lowagie.text.rtf.style.RtfColor
getBorderColor()
Gets the color of this PatchRtfBorderprotected int
getBorderPosition()
Gets the position of this PatchRtfBorderprotected int
getBorderStyle()
Gets the style of this PatchRtfBorderprotected int
getBorderType()
Gets the type of this PatchRtfBorderprotected int
getBorderWidth()
Gets the width of this PatchRtfBordervoid
writeContent(OutputStream result)
Writes the PatchRtfBorder settings
-
-
-
Field Detail
-
ROW_BORDER_LEFT
protected static final byte[] ROW_BORDER_LEFT
Constant for the left row border
-
ROW_BORDER_TOP
protected static final byte[] ROW_BORDER_TOP
Constant for the top row border
-
ROW_BORDER_RIGHT
protected static final byte[] ROW_BORDER_RIGHT
Constant for the right row border
-
ROW_BORDER_BOTTOM
protected static final byte[] ROW_BORDER_BOTTOM
Constant for the bottom row border
-
ROW_BORDER_HORIZONTAL
protected static final byte[] ROW_BORDER_HORIZONTAL
Constant for the horizontal line
-
ROW_BORDER_VERTICAL
protected static final byte[] ROW_BORDER_VERTICAL
Constant for the vertical line
-
CELL_BORDER_LEFT
protected static final byte[] CELL_BORDER_LEFT
Constant for the left cell border
-
CELL_BORDER_TOP
protected static final byte[] CELL_BORDER_TOP
Constant for the top cell border
-
CELL_BORDER_RIGHT
protected static final byte[] CELL_BORDER_RIGHT
Constant for the right cell border
-
CELL_BORDER_BOTTOM
protected static final byte[] CELL_BORDER_BOTTOM
Constant for the bottom cell border
-
BORDER_WIDTH
protected static final byte[] BORDER_WIDTH
Constant for the border width
-
BORDER_COLOR_NUMBER
protected static final byte[] BORDER_COLOR_NUMBER
Constant for the border color number
-
BORDER_STYLE_SINGLE
protected static final byte[] BORDER_STYLE_SINGLE
Constant for the single border style
-
BORDER_STYLE_DOUBLE_THICK
protected static final byte[] BORDER_STYLE_DOUBLE_THICK
Constant for the double thick border style
-
BORDER_STYLE_SHADOWED
protected static final byte[] BORDER_STYLE_SHADOWED
Constant for the shadowed border style
-
BORDER_STYLE_DOTTED
protected static final byte[] BORDER_STYLE_DOTTED
Constant for the dotted border style
-
BORDER_STYLE_DASHED
protected static final byte[] BORDER_STYLE_DASHED
Constant for the dashed border style
-
BORDER_STYLE_HAIRLINE
protected static final byte[] BORDER_STYLE_HAIRLINE
Constant for the hairline border style
-
BORDER_STYLE_DOUBLE
protected static final byte[] BORDER_STYLE_DOUBLE
Constant for the double border style
-
BORDER_STYLE_DOT_DASH
protected static final byte[] BORDER_STYLE_DOT_DASH
Constant for the dot dash border style
-
BORDER_STYLE_DOT_DOT_DASH
protected static final byte[] BORDER_STYLE_DOT_DOT_DASH
Constant for the dot dot dash border style
-
BORDER_STYLE_TRIPLE
protected static final byte[] BORDER_STYLE_TRIPLE
Constant for the triple border style
-
BORDER_STYLE_THICK_THIN
protected static final byte[] BORDER_STYLE_THICK_THIN
Constant for the thick thin border style
-
BORDER_STYLE_THIN_THICK
protected static final byte[] BORDER_STYLE_THIN_THICK
Constant for the thin thick border style
-
BORDER_STYLE_THIN_THICK_THIN
protected static final byte[] BORDER_STYLE_THIN_THICK_THIN
Constant for the thin thick thin border style
-
BORDER_STYLE_THICK_THIN_MED
protected static final byte[] BORDER_STYLE_THICK_THIN_MED
Constant for the thick thin medium border style
-
BORDER_STYLE_THIN_THICK_MED
protected static final byte[] BORDER_STYLE_THIN_THICK_MED
Constant for the thin thick medium border style
-
BORDER_STYLE_THIN_THICK_THIN_MED
protected static final byte[] BORDER_STYLE_THIN_THICK_THIN_MED
Constant for the thin thick thin medium border style
-
BORDER_STYLE_THICK_THIN_LARGE
protected static final byte[] BORDER_STYLE_THICK_THIN_LARGE
Constant for the thick thin large border style
-
BORDER_STYLE_THIN_THICK_LARGE
protected static final byte[] BORDER_STYLE_THIN_THICK_LARGE
Constant for the thin thick large border style
-
BORDER_STYLE_THIN_THICK_THIN_LARGE
protected static final byte[] BORDER_STYLE_THIN_THICK_THIN_LARGE
Constant for the thin thick thin large border style
-
BORDER_STYLE_WAVY
protected static final byte[] BORDER_STYLE_WAVY
Constant for the wavy border style
-
BORDER_STYLE_DOUBLE_WAVY
protected static final byte[] BORDER_STYLE_DOUBLE_WAVY
Constant for the double wavy border style
-
BORDER_STYLE_STRIPED
protected static final byte[] BORDER_STYLE_STRIPED
Constant for the striped border style
-
BORDER_STYLE_EMBOSS
protected static final byte[] BORDER_STYLE_EMBOSS
Constant for the embossed border style
-
BORDER_STYLE_ENGRAVE
protected static final byte[] BORDER_STYLE_ENGRAVE
Constant for the engraved border style
-
ROW_BORDER
protected static final int ROW_BORDER
Constant for a row border- See Also:
- Constant Field Values
-
CELL_BORDER
protected static final int CELL_BORDER
Constant for a cell border- See Also:
- Constant Field Values
-
NO_BORDER
protected static final int NO_BORDER
This border is no border :-)- See Also:
- Constant Field Values
-
LEFT_BORDER
protected static final int LEFT_BORDER
Constant for a left border- See Also:
- Constant Field Values
-
TOP_BORDER
protected static final int TOP_BORDER
Constant for a top border- See Also:
- Constant Field Values
-
RIGHT_BORDER
protected static final int RIGHT_BORDER
Constant for a right border- See Also:
- Constant Field Values
-
BOTTOM_BORDER
protected static final int BOTTOM_BORDER
Constant for a bottom border- See Also:
- Constant Field Values
-
BOX_BORDER
protected static final int BOX_BORDER
Constant for a box (left, top, right, bottom) border- See Also:
- Constant Field Values
-
VERTICAL_BORDER
protected static final int VERTICAL_BORDER
Constant for a vertical line- See Also:
- Constant Field Values
-
HORIZONTAL_BORDER
protected static final int HORIZONTAL_BORDER
Constant for a horizontal line- See Also:
- Constant Field Values
-
BORDER_NONE
public static final int BORDER_NONE
Constant for a border with no border- See Also:
- Constant Field Values
-
BORDER_SINGLE
public static final int BORDER_SINGLE
Constant for a single border- See Also:
- Constant Field Values
-
BORDER_DOUBLE_THICK
public static final int BORDER_DOUBLE_THICK
Constant for a double thick border- See Also:
- Constant Field Values
-
BORDER_SHADOWED
public static final int BORDER_SHADOWED
Constant for a shadowed border- See Also:
- Constant Field Values
-
BORDER_DOTTED
public static final int BORDER_DOTTED
Constant for a dotted border- See Also:
- Constant Field Values
-
BORDER_DASHED
public static final int BORDER_DASHED
Constant for a dashed border- See Also:
- Constant Field Values
-
BORDER_HAIRLINE
public static final int BORDER_HAIRLINE
Constant for a hairline border- See Also:
- Constant Field Values
-
BORDER_DOUBLE
public static final int BORDER_DOUBLE
Constant for a double border- See Also:
- Constant Field Values
-
BORDER_DOT_DASH
public static final int BORDER_DOT_DASH
Constant for a dot dash border- See Also:
- Constant Field Values
-
BORDER_DOT_DOT_DASH
public static final int BORDER_DOT_DOT_DASH
Constant for a dot dot dash border- See Also:
- Constant Field Values
-
BORDER_TRIPLE
public static final int BORDER_TRIPLE
Constant for a triple border- See Also:
- Constant Field Values
-
BORDER_THICK_THIN
public static final int BORDER_THICK_THIN
Constant for a thick thin border- See Also:
- Constant Field Values
-
BORDER_THIN_THICK
public static final int BORDER_THIN_THICK
Constant for a thin thick border- See Also:
- Constant Field Values
-
BORDER_THIN_THICK_THIN
public static final int BORDER_THIN_THICK_THIN
Constant for a thin thick thin border- See Also:
- Constant Field Values
-
BORDER_THICK_THIN_MED
public static final int BORDER_THICK_THIN_MED
Constant for a thick thin medium border- See Also:
- Constant Field Values
-
BORDER_THIN_THICK_MED
public static final int BORDER_THIN_THICK_MED
Constant for a thin thick medium border- See Also:
- Constant Field Values
-
BORDER_THIN_THICK_THIN_MED
public static final int BORDER_THIN_THICK_THIN_MED
Constant for a thin thick thin medium border- See Also:
- Constant Field Values
-
BORDER_THICK_THIN_LARGE
public static final int BORDER_THICK_THIN_LARGE
Constant for a thick thin large border- See Also:
- Constant Field Values
-
BORDER_THIN_THICK_LARGE
public static final int BORDER_THIN_THICK_LARGE
Constant for a thin thick large border- See Also:
- Constant Field Values
-
BORDER_THIN_THICK_THIN_LARGE
public static final int BORDER_THIN_THICK_THIN_LARGE
Constant for a thin thick thin large border- See Also:
- Constant Field Values
-
BORDER_WAVY
public static final int BORDER_WAVY
Constant for a wavy border- See Also:
- Constant Field Values
-
BORDER_DOUBLE_WAVY
public static final int BORDER_DOUBLE_WAVY
Constant for a double wavy border- See Also:
- Constant Field Values
-
BORDER_STRIPED
public static final int BORDER_STRIPED
Constant for a striped border- See Also:
- Constant Field Values
-
BORDER_EMBOSS
public static final int BORDER_EMBOSS
Constant for an embossed border- See Also:
- Constant Field Values
-
BORDER_ENGRAVE
public static final int BORDER_ENGRAVE
Constant for an engraved border- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PatchRtfBorder
protected PatchRtfBorder(com.lowagie.text.rtf.document.RtfDocument doc, int borderType, PatchRtfBorder border)
Makes a copy of the given PatchRtfBorder- Parameters:
doc
- The RtfDocument this PatchRtfBorder belongs toborderType
- The border type of this PatchRtfBorderborder
- The PatchRtfBorder to copy
-
PatchRtfBorder
protected PatchRtfBorder(com.lowagie.text.rtf.document.RtfDocument doc, int borderType, int borderPosition, int borderStyle, float borderWidth, Color borderColor)
Constructs a PatchRtfBorder- Parameters:
doc
- The RtfDocument this PatchRtfBorder belongs toborderType
- The type of border this PatchRtfBorder isborderPosition
- The position of this PatchRtfBorderborderStyle
- The style of this PatchRtfBorderborderWidth
- The width of this PatchRtfBorderborderColor
- The color of this PatchRtfBorder
-
-
Method Detail
-
writeContent
public void writeContent(OutputStream result) throws IOException
Writes the PatchRtfBorder settings- Specified by:
writeContent
in interfacecom.lowagie.text.rtf.RtfBasicElement
- Specified by:
writeContent
in classcom.lowagie.text.rtf.RtfElement
- Throws:
IOException
-
getBorderColor
protected com.lowagie.text.rtf.style.RtfColor getBorderColor()
Gets the color of this PatchRtfBorder- Returns:
- Returns RtfColor of this PatchRtfBorder
-
getBorderPosition
protected int getBorderPosition()
Gets the position of this PatchRtfBorder- Returns:
- Returns the position of this PatchRtfBorder
-
getBorderStyle
protected int getBorderStyle()
Gets the style of this PatchRtfBorder- Returns:
- Returns the style of this PatchRtfBorder
-
getBorderType
protected int getBorderType()
Gets the type of this PatchRtfBorder- Returns:
- Returns the type of this PatchRtfBorder
-
getBorderWidth
protected int getBorderWidth()
Gets the width of this PatchRtfBorder- Returns:
- Returns the width of this PatchRtfBorder
-
-