public class RtfBorderGroup extends RtfElement
document, inHeader, inTable
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
Modifier | Constructor and Description |
---|---|
|
RtfBorderGroup()
Constructs an empty RtfBorderGroup.
|
|
RtfBorderGroup(int bordersToAdd,
int borderStyle,
float borderWidth,
Color borderColor)
Constructs a RtfBorderGroup with on border style for multiple borders.
|
protected |
RtfBorderGroup(RtfDocument doc,
int borderType,
int bordersToUse,
float borderWidth,
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,
Color borderColor)
Adds borders to the RtfBorderGroup
|
protected Hashtable |
getBorders()
Gets the RtfBorders of this RtfBorderGroup
|
void |
removeBorder(int bordersToRemove)
Removes borders from the list of borders
|
void |
writeContent(OutputStream result)
Writes the borders of this RtfBorderGroup
|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
public RtfBorderGroup()
public RtfBorderGroup(int bordersToAdd, int borderStyle, float borderWidth, 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, 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 usepublic void addBorder(int bordersToAdd, int borderStyle, float borderWidth, 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(OutputStream result) throws IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfElement
result
- The OutputStream
to write the content toIOException
protected Hashtable getBorders()
Copyright © 2013 InProTopia Corporation. All Rights Reserved.