Class PdfTextBox

All Implemented Interfaces:
com.lowagie.text.SplitCharacter, Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Identified
Direct Known Subclasses:
PdfUpTextBox

@Component public class PdfTextBox extends PdfBox implements com.lowagie.text.SplitCharacter
This class extends PdfBox and implements the management of a box within Chunk text, inside a pdf report.
See Also:
  • Field Details

    • _f

      protected com.lowagie.text.Font _f
    • _fc

      protected Color _fc
    • _a

      protected int _a
    • _l

      protected int _l
    • _o

      protected Object _o
    • _hp

      protected float _hp
    • _vp

      protected float _vp
    • _split

      protected char _split
  • Constructor Details

    • PdfTextBox

      public PdfTextBox()
  • Method Details

    • setSPLIT

      public void setSPLIT(String s)
      Sets the split characther to use.
      Parameters:
      s - The characther to set.
    • setHP

      public void setHP(String s)
      Sets horizontal padding.
      Parameters:
      s - The padding to set.
    • setVP

      public void setVP(String s)
      Sets the vertical padding.
      Parameters:
      s - The padding to set.
    • setF

      public void setF(String s)
      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 - The Font to set.
    • setFC

      public void setFC(String s)
      Sets the font color.
      Parameters:
      s - The font color to set.
    • setFC

      public void setFC(Color c)
      Sets the font color.
      Parameters:
      c - The font Color to set.
    • setA

      public void setA(int a)
      Sets the align type.
      Parameters:
      a - The align type.
    • setA

      public void setA(String s)
      Sets the align type.
      Parameters:
      s - Possible align type are:
      • 'l' - left align
      • 'c' - center align
      • 'r' - right align
      • 'j' - justified align
    • setTEXT

      public void setTEXT(Object o)
      Sets the text of the box.
      Parameters:
      o - The text to set.
    • setTEXT

      public void setTEXT(String s)
      Sets the text of the box.
      Parameters:
      s - The text to set.
    • setText

      public void setText(String s)
      Sets the text of the box.
      Parameters:
      s - The text to set.
    • setText

      public void setText(Object o)
      Sets the text of the box.
      Parameters:
      o - The text to set.
    • setL

      public void setL(String s)
      Sets the number of text line inside the box
      Parameters:
      s - The number of line.
    • verticalSetup

      public void verticalSetup()
      Setup the height attribute.
    • calcText

      public String calcText()
      Gets the text to put inside the box.
      Returns:
      The text to put inside the box.
    • drawInsideFront

      public void drawInsideFront(Report r, float x, float y, float w, float h)
      Draw the box with the text inside.
      Overrides:
      drawInsideFront in class PdfBox
      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

      public Object 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

      public Color 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:
      isSplitCharacter in interface com.lowagie.text.SplitCharacter