|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.rtf.RtfElement
com.lowagie.text.rtf.table.RtfBorderGroup
public class RtfBorderGroup
The RtfBorderGroup represents a collection of RtfBorders to use in a RtfCell or RtfTable.
Field Summary | |
---|---|
private java.util.Hashtable |
borders
The borders in this RtfBorderGroup |
private int |
borderType
The type of borders this RtfBorderGroup contains. |
Fields 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 | |
---|---|
|
RtfBorderGroup()
Constructs an empty RtfBorderGroup. |
|
RtfBorderGroup(int bordersToAdd,
int borderStyle,
float borderWidth,
java.awt.Color borderColor)
Constructs a RtfBorderGroup with on border style for multiple borders. |
protected |
RtfBorderGroup(RtfDocument doc,
int borderType,
int bordersToUse,
float borderWidth,
java.awt.Color borderColor)
Constructs a RtfBorderGroup with certain borders |
protected |
RtfBorderGroup(RtfDocument doc,
int borderType,
RtfBorderGroup borderGroup)
Constructs a RtfBorderGroup based on another RtfBorderGroup. |
Method Summary | |
---|---|
void |
addBorder(int bordersToAdd,
int borderStyle,
float borderWidth,
java.awt.Color borderColor)
Adds borders to the RtfBorderGroup |
protected java.util.Hashtable |
getBorders()
Gets the RtfBorders of this RtfBorderGroup |
void |
removeBorder(int bordersToRemove)
Removes borders from the list of borders |
private void |
setBorder(int borderPosition,
int borderStyle,
float borderWidth,
java.awt.Color borderColor)
Sets a border in the Hashtable of borders |
byte[] |
write()
Deprecated. As of iText 2.0.6 or earlier, replaced by writeContent(OutputStream) , scheduled for removal at or after 2.1.0 |
void |
writeContent(java.io.OutputStream result)
Writes the borders of this RtfBorderGroup |
Methods inherited from class com.lowagie.text.rtf.RtfElement |
---|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int borderType
private java.util.Hashtable borders
Constructor Detail |
---|
public RtfBorderGroup()
public RtfBorderGroup(int bordersToAdd, int borderStyle, float borderWidth, java.awt.Color borderColor)
bordersToAdd
- The borders to add (Rectangle.LEFT, Rectangle.RIGHT, Rectangle.TOP, Rectangle.BOTTOM, Rectangle.BOX)borderStyle
- The style of border to add (from RtfBorder)borderWidth
- The border width to useborderColor
- The border color to useprotected RtfBorderGroup(RtfDocument doc, int borderType, RtfBorderGroup borderGroup)
doc
- The RtfDocument this RtfBorderGroup belongs toborderType
- The type of borders this RtfBorderGroup containsborderGroup
- The RtfBorderGroup to use as a baseprotected RtfBorderGroup(RtfDocument doc, int borderType, int bordersToUse, float borderWidth, java.awt.Color borderColor)
doc
- The RtfDocument this RtfBorderGroup belongs toborderType
- The type of borders this RtfBorderGroup containsbordersToUse
- The borders to add (Rectangle.LEFT, Rectangle.RIGHT, Rectangle.TOP, Rectangle.BOTTOM, Rectangle.BOX)borderWidth
- The border width to useborderColor
- The border color to useMethod Detail |
---|
private void setBorder(int borderPosition, int borderStyle, float borderWidth, java.awt.Color borderColor)
borderPosition
- The position of this RtfBorderborderStyle
- The type of borders this RtfBorderGroup containsborderWidth
- The border width to useborderColor
- The border color to usepublic void addBorder(int bordersToAdd, int borderStyle, float borderWidth, java.awt.Color borderColor)
bordersToAdd
- The borders to add (Rectangle.LEFT, Rectangle.RIGHT, Rectangle.TOP, Rectangle.BOTTOM, Rectangle.BOX)borderStyle
- The style of border to add (from RtfBorder)borderWidth
- The border width to useborderColor
- The border color to usepublic void removeBorder(int bordersToRemove)
bordersToRemove
- The borders to remove (from Rectangle)public byte[] write()
writeContent(OutputStream)
, scheduled for removal at or after 2.1.0
write
in interface RtfBasicElement
write
in class RtfElement
public void writeContent(java.io.OutputStream result) throws java.io.IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfElement
java.io.IOException
protected java.util.Hashtable getBorders()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |