Package com.lowagie.text.rtf.table
Class RtfBorder
java.lang.Object
com.lowagie.text.rtf.RtfElement
com.lowagie.text.rtf.table.RtfBorder
- All Implemented Interfaces:
RtfBasicElement
,com.lowagie.text.RtfElementInterface
The RtfBorder handle one row or cell border.
INTERNAL USE ONLY
- Version:
- $Id: RtfBorder.java 3580 2008-08-06 15:52:00Z howard_s $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final byte[]
Constant for the border color numberstatic final int
Constant for a dashed borderstatic final int
Constant for a dot dash borderstatic final int
Constant for a dot dot dash borderstatic final int
Constant for a dotted borderstatic final int
Constant for a double borderstatic final int
Constant for a double thick borderstatic final int
Constant for a double wavy borderstatic final int
Constant for an embossed borderstatic final int
Constant for an engraved borderstatic final int
Constant for a hairline borderstatic final int
Constant for a border with no borderstatic final int
Constant for a shadowed borderstatic final int
Constant for a single borderstatic final int
Constant for a striped borderprotected static final byte[]
Constant for the dashed border styleprotected static final byte[]
Constant for the dot dash border styleprotected static final byte[]
Constant for the dot dot dash border styleprotected static final byte[]
Constant for the dotted border styleprotected static final byte[]
Constant for the double border styleprotected static final byte[]
Constant for the double thick border styleprotected static final byte[]
Constant for the double wavy border styleprotected static final byte[]
Constant for the embossed border styleprotected static final byte[]
Constant for the engraved border styleprotected static final byte[]
Constant for the hairline border styleprotected static final byte[]
Constant for the shadowed border styleprotected static final byte[]
Constant for the single border styleprotected static final byte[]
Constant for the striped border styleprotected static final byte[]
Constant for the thick thin border styleprotected static final byte[]
Constant for the thick thin large border styleprotected static final byte[]
Constant for the thick thin medium border styleprotected static final byte[]
Constant for the thin thick border styleprotected static final byte[]
Constant for the thin thick large border styleprotected static final byte[]
Constant for the thin thick medium border styleprotected static final byte[]
Constant for the thin thick thin border styleprotected static final byte[]
Constant for the thin thick thin large border styleprotected static final byte[]
Constant for the thin thick thin medium border styleprotected static final byte[]
Constant for the triple border styleprotected static final byte[]
Constant for the wavy border stylestatic final int
Constant for a thick thin borderstatic final int
Constant for a thick thin large borderstatic final int
Constant for a thick thin medium borderstatic final int
Constant for a thin thick borderstatic final int
Constant for a thin thick large borderstatic final int
Constant for a thin thick medium borderstatic final int
Constant for a thin thick thin borderstatic final int
Constant for a thin thick thin large borderstatic final int
Constant for a thin thick thin medium borderstatic final int
Constant for a triple borderstatic final int
Constant for a wavy borderprotected static final byte[]
Constant for the border widthprivate final RtfColor
The color of this RtfBorderprivate final int
The position of this RtfBorderprivate int
The style of this RtfBorderprivate final int
The type of this RtfBorderprivate final int
The width of this RtfBorderprotected static final int
Constant for a bottom borderprotected static final int
Constant for a box (left, top, right, bottom) borderprotected static final int
Constant for a cell borderprotected static final byte[]
Constant for the bottom cell borderprotected static final byte[]
Constant for the left cell borderprotected static final byte[]
Constant for the right cell borderprotected static final byte[]
Constant for the top cell borderprotected static final int
Constant for a horizontal lineprotected static final int
Constant for a left borderprotected static final int
This border is no border :-)protected static final int
Constant for a right borderprotected static final int
Constant for a row borderprotected static final byte[]
Constant for the bottom row borderprotected static final byte[]
Constant for the horizontal lineprotected static final byte[]
Constant for the left row borderprotected static final byte[]
Constant for the right row borderprotected static final byte[]
Constant for the top row borderprotected static final byte[]
Constant for the vertical lineprotected static final int
Constant for a top borderprotected static final int
Constant for a vertical lineFields inherited from class com.lowagie.text.rtf.RtfElement
document, inHeader, inTable
Fields inherited from interface com.lowagie.text.rtf.RtfBasicElement
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RtfBorder
(RtfDocument doc, int borderType, int borderPosition, int borderStyle, float borderWidth, Color borderColor) Constructs a RtfBorderprotected
RtfBorder
(RtfDocument doc, int borderType, RtfBorder border) Makes a copy of the given RtfBorder -
Method Summary
Modifier and TypeMethodDescriptionprotected RtfColor
Gets the color of this RtfBorderprotected int
Gets the position of this RtfBorderprotected int
Gets the style of this RtfBorderprotected int
Gets the type of this RtfBorderprotected int
Gets the width of this RtfBorderprivate byte[]
Writes the style of this RtfBordervoid
writeContent
(OutputStream result) Writes the RtfBorder settingsMethods inherited from class com.lowagie.text.rtf.RtfElement
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
-
Field Details
-
ROW_BORDER_LEFT
protected static final byte[] ROW_BORDER_LEFTConstant for the left row border -
ROW_BORDER_TOP
protected static final byte[] ROW_BORDER_TOPConstant for the top row border -
ROW_BORDER_RIGHT
protected static final byte[] ROW_BORDER_RIGHTConstant for the right row border -
ROW_BORDER_BOTTOM
protected static final byte[] ROW_BORDER_BOTTOMConstant for the bottom row border -
ROW_BORDER_HORIZONTAL
protected static final byte[] ROW_BORDER_HORIZONTALConstant for the horizontal line -
ROW_BORDER_VERTICAL
protected static final byte[] ROW_BORDER_VERTICALConstant for the vertical line -
CELL_BORDER_LEFT
protected static final byte[] CELL_BORDER_LEFTConstant for the left cell border -
CELL_BORDER_TOP
protected static final byte[] CELL_BORDER_TOPConstant for the top cell border -
CELL_BORDER_RIGHT
protected static final byte[] CELL_BORDER_RIGHTConstant for the right cell border -
CELL_BORDER_BOTTOM
protected static final byte[] CELL_BORDER_BOTTOMConstant for the bottom cell border -
BORDER_WIDTH
protected static final byte[] BORDER_WIDTHConstant for the border width -
BORDER_COLOR_NUMBER
protected static final byte[] BORDER_COLOR_NUMBERConstant for the border color number -
BORDER_STYLE_SINGLE
protected static final byte[] BORDER_STYLE_SINGLEConstant for the single border style -
BORDER_STYLE_DOUBLE_THICK
protected static final byte[] BORDER_STYLE_DOUBLE_THICKConstant for the double thick border style -
BORDER_STYLE_SHADOWED
protected static final byte[] BORDER_STYLE_SHADOWEDConstant for the shadowed border style -
BORDER_STYLE_DOTTED
protected static final byte[] BORDER_STYLE_DOTTEDConstant for the dotted border style -
BORDER_STYLE_DASHED
protected static final byte[] BORDER_STYLE_DASHEDConstant for the dashed border style -
BORDER_STYLE_HAIRLINE
protected static final byte[] BORDER_STYLE_HAIRLINEConstant for the hairline border style -
BORDER_STYLE_DOUBLE
protected static final byte[] BORDER_STYLE_DOUBLEConstant for the double border style -
BORDER_STYLE_DOT_DASH
protected static final byte[] BORDER_STYLE_DOT_DASHConstant for the dot dash border style -
BORDER_STYLE_DOT_DOT_DASH
protected static final byte[] BORDER_STYLE_DOT_DOT_DASHConstant for the dot dot dash border style -
BORDER_STYLE_TRIPLE
protected static final byte[] BORDER_STYLE_TRIPLEConstant for the triple border style -
BORDER_STYLE_THICK_THIN
protected static final byte[] BORDER_STYLE_THICK_THINConstant for the thick thin border style -
BORDER_STYLE_THIN_THICK
protected static final byte[] BORDER_STYLE_THIN_THICKConstant for the thin thick border style -
BORDER_STYLE_THIN_THICK_THIN
protected static final byte[] BORDER_STYLE_THIN_THICK_THINConstant for the thin thick thin border style -
BORDER_STYLE_THICK_THIN_MED
protected static final byte[] BORDER_STYLE_THICK_THIN_MEDConstant for the thick thin medium border style -
BORDER_STYLE_THIN_THICK_MED
protected static final byte[] BORDER_STYLE_THIN_THICK_MEDConstant for the thin thick medium border style -
BORDER_STYLE_THIN_THICK_THIN_MED
protected static final byte[] BORDER_STYLE_THIN_THICK_THIN_MEDConstant for the thin thick thin medium border style -
BORDER_STYLE_THICK_THIN_LARGE
protected static final byte[] BORDER_STYLE_THICK_THIN_LARGEConstant for the thick thin large border style -
BORDER_STYLE_THIN_THICK_LARGE
protected static final byte[] BORDER_STYLE_THIN_THICK_LARGEConstant for the thin thick large border style -
BORDER_STYLE_THIN_THICK_THIN_LARGE
protected static final byte[] BORDER_STYLE_THIN_THICK_THIN_LARGEConstant for the thin thick thin large border style -
BORDER_STYLE_WAVY
protected static final byte[] BORDER_STYLE_WAVYConstant for the wavy border style -
BORDER_STYLE_DOUBLE_WAVY
protected static final byte[] BORDER_STYLE_DOUBLE_WAVYConstant for the double wavy border style -
BORDER_STYLE_STRIPED
protected static final byte[] BORDER_STYLE_STRIPEDConstant for the striped border style -
BORDER_STYLE_EMBOSS
protected static final byte[] BORDER_STYLE_EMBOSSConstant for the embossed border style -
BORDER_STYLE_ENGRAVE
protected static final byte[] BORDER_STYLE_ENGRAVEConstant for the engraved border style -
ROW_BORDER
protected static final int ROW_BORDERConstant for a row border- See Also:
-
CELL_BORDER
protected static final int CELL_BORDERConstant for a cell border- See Also:
-
NO_BORDER
protected static final int NO_BORDERThis border is no border :-)- See Also:
-
LEFT_BORDER
protected static final int LEFT_BORDERConstant for a left border- See Also:
-
TOP_BORDER
protected static final int TOP_BORDERConstant for a top border- See Also:
-
RIGHT_BORDER
protected static final int RIGHT_BORDERConstant for a right border- See Also:
-
BOTTOM_BORDER
protected static final int BOTTOM_BORDERConstant for a bottom border- See Also:
-
BOX_BORDER
protected static final int BOX_BORDERConstant for a box (left, top, right, bottom) border- See Also:
-
VERTICAL_BORDER
protected static final int VERTICAL_BORDERConstant for a vertical line- See Also:
-
HORIZONTAL_BORDER
protected static final int HORIZONTAL_BORDERConstant for a horizontal line- See Also:
-
BORDER_NONE
public static final int BORDER_NONEConstant for a border with no border- See Also:
-
BORDER_SINGLE
public static final int BORDER_SINGLEConstant for a single border- See Also:
-
BORDER_DOUBLE_THICK
public static final int BORDER_DOUBLE_THICKConstant for a double thick border- See Also:
-
BORDER_SHADOWED
public static final int BORDER_SHADOWEDConstant for a shadowed border- See Also:
-
BORDER_DOTTED
public static final int BORDER_DOTTEDConstant for a dotted border- See Also:
-
BORDER_DASHED
public static final int BORDER_DASHEDConstant for a dashed border- See Also:
-
BORDER_HAIRLINE
public static final int BORDER_HAIRLINEConstant for a hairline border- See Also:
-
BORDER_DOUBLE
public static final int BORDER_DOUBLEConstant for a double border- See Also:
-
BORDER_DOT_DASH
public static final int BORDER_DOT_DASHConstant for a dot dash border- See Also:
-
BORDER_DOT_DOT_DASH
public static final int BORDER_DOT_DOT_DASHConstant for a dot dot dash border- See Also:
-
BORDER_TRIPLE
public static final int BORDER_TRIPLEConstant for a triple border- See Also:
-
BORDER_THICK_THIN
public static final int BORDER_THICK_THINConstant for a thick thin border- See Also:
-
BORDER_THIN_THICK
public static final int BORDER_THIN_THICKConstant for a thin thick border- See Also:
-
BORDER_THIN_THICK_THIN
public static final int BORDER_THIN_THICK_THINConstant for a thin thick thin border- See Also:
-
BORDER_THICK_THIN_MED
public static final int BORDER_THICK_THIN_MEDConstant for a thick thin medium border- See Also:
-
BORDER_THIN_THICK_MED
public static final int BORDER_THIN_THICK_MEDConstant for a thin thick medium border- See Also:
-
BORDER_THIN_THICK_THIN_MED
public static final int BORDER_THIN_THICK_THIN_MEDConstant for a thin thick thin medium border- See Also:
-
BORDER_THICK_THIN_LARGE
public static final int BORDER_THICK_THIN_LARGEConstant for a thick thin large border- See Also:
-
BORDER_THIN_THICK_LARGE
public static final int BORDER_THIN_THICK_LARGEConstant for a thin thick large border- See Also:
-
BORDER_THIN_THICK_THIN_LARGE
public static final int BORDER_THIN_THICK_THIN_LARGEConstant for a thin thick thin large border- See Also:
-
BORDER_WAVY
public static final int BORDER_WAVYConstant for a wavy border- See Also:
-
BORDER_DOUBLE_WAVY
public static final int BORDER_DOUBLE_WAVYConstant for a double wavy border- See Also:
-
BORDER_STRIPED
public static final int BORDER_STRIPEDConstant for a striped border- See Also:
-
BORDER_EMBOSS
public static final int BORDER_EMBOSSConstant for an embossed border- See Also:
-
BORDER_ENGRAVE
public static final int BORDER_ENGRAVEConstant for an engraved border- See Also:
-
borderType
private final int borderTypeThe type of this RtfBorder -
borderPosition
private final int borderPositionThe position of this RtfBorder -
borderStyle
private int borderStyleThe style of this RtfBorder -
borderWidth
private final int borderWidthThe width of this RtfBorder -
borderColor
The color of this RtfBorder
-
-
Constructor Details
-
RtfBorder
Makes a copy of the given RtfBorder- Parameters:
doc
- The RtfDocument this RtfBorder belongs toborderType
- The border type of this RtfBorderborder
- The RtfBorder to copy
-
RtfBorder
protected RtfBorder(RtfDocument doc, int borderType, int borderPosition, int borderStyle, float borderWidth, Color borderColor) Constructs a RtfBorder- Parameters:
doc
- The RtfDocument this RtfBorder belongs toborderType
- The type of border this RtfBorder isborderPosition
- The position of this RtfBorderborderStyle
- The style of this RtfBorderborderWidth
- The width of this RtfBorderborderColor
- The color of this RtfBorder
-
-
Method Details
-
writeContent
Writes the RtfBorder settings- Specified by:
writeContent
in interfaceRtfBasicElement
- Specified by:
writeContent
in classRtfElement
- Parameters:
result
- TheOutputStream
to write the content to- Throws:
IOException
-
writeBorderStyle
private byte[] writeBorderStyle()Writes the style of this RtfBorder- Returns:
- A byte array containing the style of this RtfBorder
-
getBorderColor
Gets the color of this RtfBorder- Returns:
- Returns RtfColor of this RtfBorder
-
getBorderPosition
protected int getBorderPosition()Gets the position of this RtfBorder- Returns:
- Returns the position of this RtfBorder
-
getBorderStyle
protected int getBorderStyle()Gets the style of this RtfBorder- Returns:
- Returns the style of this RtfBorder
-
getBorderType
protected int getBorderType()Gets the type of this RtfBorder- Returns:
- Returns the type of this RtfBorder
-
getBorderWidth
protected int getBorderWidth()Gets the width of this RtfBorder- Returns:
- Returns the width of this RtfBorder
-