Package overit.geocall.basic.ui.report
Class PdfTextBox
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.basic.ui.report.PdfComponent
overit.geocall.basic.ui.report.PdfBox
overit.geocall.basic.ui.report.PdfTextBox
- All Implemented Interfaces:
com.lowagie.text.SplitCharacter,Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,Identified
- Direct Known Subclasses:
PdfUpTextBox
This class extends
PdfBox and implements the management of a box within Chunk text, inside a pdf report.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected com.lowagie.text.Fontprotected Colorprotected floatprotected intprotected Objectprotected charprotected floatFields inherited from class overit.geocall.basic.ui.report.PdfBox
_bc, _bkg, _bs, _bw, _h, _px, _py, _sx, _sy, _w, _xx, _yyFields inherited from class overit.geocall.basic.ui.report.PdfComponent
_identity, _name, _visible -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalcText()Gets the text to put inside the box.voiddrawInsideFront(Report r, float x, float y, float w, float h) Draw the box with the text inside.floatgeHP()Gets the height span.intgetA()Gets the alignment typecom.lowagie.text.FontgetF()Gets the text font.getFC()Gets the text font colorintgetL()Gets the number of text line inside the box.getTEXT()Gets the text to put inside the box.floatgetVP()Get the vertical span.booleanisSplitCharacter(int start, int current, int end, char[] cc, com.lowagie.text.pdf.PdfChunk[] ck) voidsetA(int a) Sets the align type.voidSets the align type.voidsetF(com.lowagie.text.Font f) Sets the text font.voidSets the text font.voidSets the font color.voidSets the font color.voidSets horizontal padding.voidSets the number of text line inside the boxvoidSets the split characther to use.voidSets the text of the box.voidSets the text of the box.voidSets the text of the box.voidSets the text of the box.voidSets the vertical padding.voidSetup the height attribute.Methods inherited from class overit.geocall.basic.ui.report.PdfBox
absX, absY, drawInsideBack, getBC, getBC, getBKG, getBS, getBS, getBW, getBW, getH, getPX, getPY, getSX, getSY, getW, setBC, setBC, setBKG, setBS, setBS, setBW, setBW, setH, setPX, setPX, setPY, setPY, setSX, setSX, setSY, setSY, setWMethods inherited from class overit.geocall.basic.ui.report.PdfComponent
drawInside, getBoolean, getColor, getColor, getfloat, getfloat, getFont, getIdentity, getint, getint, getNAME, getString, setIdentity, setNAME, setV
-
Field Details
-
_f
protected com.lowagie.text.Font _f -
_fc
-
_a
protected int _a -
_l
protected int _l -
_o
-
_hp
protected float _hp -
_vp
protected float _vp -
_split
protected char _split
-
-
Constructor Details
-
PdfTextBox
public PdfTextBox()
-
-
Method Details
-
setSPLIT
Sets the split characther to use.- Parameters:
s- The characther to set.
-
setHP
Sets horizontal padding.- Parameters:
s- The padding to set.
-
setVP
Sets the vertical padding.- Parameters:
s- The padding to set.
-
setF
Sets the text font.- Parameters:
s- The font to set.
-
setF
public void setF(com.lowagie.text.Font f) Sets the text font.- Parameters:
f- TheFontto set.
-
setFC
Sets the font color.- Parameters:
s- The font color to set.
-
setFC
Sets the font color.- Parameters:
c- The fontColorto set.
-
setA
public void setA(int a) Sets the align type.- Parameters:
a- The align type.
-
setA
Sets the align type.- Parameters:
s- Possible align type are:- 'l' - left align
- 'c' - center align
- 'r' - right align
- 'j' - justified align
-
setTEXT
Sets the text of the box.- Parameters:
o- The text to set.
-
setTEXT
Sets the text of the box.- Parameters:
s- The text to set.
-
setText
Sets the text of the box.- Parameters:
s- The text to set.
-
setText
Sets the text of the box.- Parameters:
o- The text to set.
-
setL
Sets the number of text line inside the box- Parameters:
s- The number of line.
-
verticalSetup
public void verticalSetup()Setup the height attribute. -
calcText
Gets the text to put inside the box.- Returns:
- The text to put inside the box.
-
drawInsideFront
Draw the box with the text inside.- Overrides:
drawInsideFrontin classPdfBox- Parameters:
r- The report where draw the text box.x- The x coordinate from which start draw.y- The y coordinate from which start draw.w- The width of the box.h- The height of the box.
-
getTEXT
Gets the text to put inside the box.- Returns:
- The text set for the instance.
-
geHP
public float geHP()Gets the height span.- Returns:
- The height span.
-
getVP
public float getVP()Get the vertical span.- Returns:
- The vertical span.
-
getF
public com.lowagie.text.Font getF()Gets the text font.- Returns:
- The text font.
-
getFC
Gets the text font color- Returns:
- The text font color.
-
getA
public int getA()Gets the alignment type- Returns:
- The alignement type.
-
getL
public int getL()Gets the number of text line inside the box.- Returns:
- The number of text line inside the box.
-
isSplitCharacter
public boolean isSplitCharacter(int start, int current, int end, char[] cc, com.lowagie.text.pdf.PdfChunk[] ck) - Specified by:
isSplitCharacterin interfacecom.lowagie.text.SplitCharacter
-