public class PatchRtfBorderGroup
extends com.lowagie.text.rtf.RtfElement
Modifier | Constructor and Description |
---|---|
|
PatchRtfBorderGroup()
Constructs an empty PatchRtfBorderGroup.
|
|
PatchRtfBorderGroup(int bordersToAdd,
int borderStyle,
float borderWidth,
Color borderColor)
Constructs a PatchRtfBorderGroup with on border style for multiple borders.
|
protected |
PatchRtfBorderGroup(com.lowagie.text.rtf.document.RtfDocument doc,
int borderType,
int bordersToUse,
float borderWidth,
Color borderColor)
Constructs a PatchRtfBorderGroup with certain borders
|
protected |
PatchRtfBorderGroup(com.lowagie.text.rtf.document.RtfDocument doc,
int borderType,
PatchRtfBorderGroup borderGroup)
Constructs a PatchRtfBorderGroup based on another PatchRtfBorderGroup.
|
Modifier and Type | Method and Description |
---|---|
void |
addBorder(int bordersToAdd,
int borderStyle,
float borderWidth,
Color borderColor)
Adds borders to the PatchRtfBorderGroup
|
protected HashMap<Integer,PatchRtfBorder> |
getBorders()
Gets the RtfBorders of this PatchRtfBorderGroup
|
void |
removeBorder(int bordersToRemove)
Removes borders from the list of borders
|
void |
writeContent(OutputStream result)
Writes the borders of this PatchRtfBorderGroup
|
public PatchRtfBorderGroup()
public PatchRtfBorderGroup(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 PatchRtfBorder)borderWidth
- The border width to useborderColor
- The border color to useprotected PatchRtfBorderGroup(com.lowagie.text.rtf.document.RtfDocument doc, int borderType, PatchRtfBorderGroup borderGroup)
doc
- The RtfDocument this PatchRtfBorderGroup belongs toborderType
- The type of borders this PatchRtfBorderGroup containsborderGroup
- The PatchRtfBorderGroup to use as a baseprotected PatchRtfBorderGroup(com.lowagie.text.rtf.document.RtfDocument doc, int borderType, int bordersToUse, float borderWidth, Color borderColor)
doc
- The RtfDocument this PatchRtfBorderGroup belongs toborderType
- The type of borders this PatchRtfBorderGroup 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 PatchRtfBorder)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 com.lowagie.text.rtf.RtfBasicElement
writeContent
in class com.lowagie.text.rtf.RtfElement
IOException
protected HashMap<Integer,PatchRtfBorder> getBorders()
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.