public class RtfBorderGroup extends RtfElement
| Modifier and Type | Field and Description |
|---|---|
private java.util.Hashtable |
borders
The borders in this RtfBorderGroup
|
private int |
borderType
The type of borders this RtfBorderGroup contains.
|
document, inHeader, inTableCLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR| Modifier | Constructor and Description |
|---|---|
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
void |
writeContent(java.io.OutputStream result)
Writes the borders of this RtfBorderGroup
|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocumentprivate int borderType
private java.util.Hashtable borders
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 useprivate 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 void writeContent(java.io.OutputStream result)
throws java.io.IOException
writeContent in interface RtfBasicElementwriteContent in class RtfElementresult - The OutputStream to write the content tojava.io.IOExceptionprotected java.util.Hashtable getBorders()