Class PdfBox

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Identified
Direct Known Subclasses:
PdfBarcodeBox, PdfGraphBox, PdfImageBox, PdfJFCPieBox, PdfJFCSerieBox, PdfSetBox, PdfTextBox

@Component public class PdfBox extends PdfComponent
This class extends PdfComponent and it's used to managed a generic Box inside the pdf report.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Color[]
     
    protected Color
     
    protected int[]
     
    protected float[]
     
    protected float
     
    protected int
     
    protected int
     
    protected float
     
    protected float
     
    protected float
     
    protected float
     
    protected float
     

    Fields inherited from class overit.geocall.basic.ui.report.PdfComponent

    _identity, _name, _visible
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    absX(float x, float y, float w, float h)
    Calculate the real x coordinate (depending also from the x position set) from which start to draw the box.
    float
    absY(float x, float y, float w, float h)
    Calculate the real y coordinate (depending also from the y position set) from which start to draw the box.
    void
    drawInsideBack(Report r, float x, float y, float w, float h)
    Draw the inside area of the box, defining box's positioning, box's sizing and box's color fill.
    void
    drawInsideFront(Report r, float x, float y, float w, float h)
    Draw the outside border of the box, defining borders's width and borders's color stroke.
    Gets the Color array containing the all 4 color of each border.
    getBC(int i)
    Gets the ith border's color.
    Gets the background color of the box.
    int[]
     
    int
    getBS(int i)
     
    float[]
    Gets the borders's width of all 4 border.
    float
    getBW(int i)
    Gets the ith border's width.
    float
    Gets the height of the box.
    int
    Gets the x position from which start to draw the box.
    int
    Gets the y position from which start to draw the box.
    float
    Gets the x coordinate from which it's possible to start draw the box.
    float
    Gets the y coordinate from which it's possible to start draw the box.
    float
    Gets the width of the box.
    void
    setBC(int i, Color c)
    Sets the ith border's color.
    void
    Sets the borders's color.
    void
    Sets the background color of the box.
    void
    setBS(int i, int f)
     
    void
     
    void
    setBW(int i, float f)
    Sets the border's width of a specific one (the firs, or the second ecc).
    void
    Sets the borders's width of all 4 border.
    void
    Sets the box's height.
    void
    setPX(int i)
    Sets the x position from which start to draw the box.
    void
    Sets the x position from which start to draw the box.
    void
    setPY(int i)
    Sets the y position from which start to draw the box.
    void
    Sets the y position from which start to draw the box.
    void
    setSX(float f)
    Sets the x coordinate from which it's possible to start draw the box.
    void
    Sets the x coordinate from which it's possible to start draw the box.
    void
    setSY(float f)
    Sets the y coordinate from which it's possible to start draw the box.
    void
    Sets the y coordinate from which it's possible to start draw the box.
    void
    Sets the box's width.

    Methods inherited from class overit.geocall.basic.ui.report.PdfComponent

    drawInside, getBoolean, getColor, getColor, getfloat, getfloat, getFont, getIdentity, getint, getint, getNAME, getString, setIdentity, setNAME, setV

    Methods inherited from class overit.geocall.platform.ui.UINode

    addChild, addChildText, getChildren, getNodeId, getParent, getRoot, getSchema, setNodeId, setParent, setSchema

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _sx

      protected float _sx
    • _sy

      protected float _sy
    • _px

      protected int _px
    • _py

      protected int _py
    • _w

      protected float _w
    • _h

      protected float _h
    • _bw

      protected float[] _bw
    • _bs

      protected int[] _bs
    • _bc

      protected Color[] _bc
    • _bkg

      protected Color _bkg
    • _xx

      protected float _xx
    • _yy

      protected float _yy
  • Constructor Details

    • PdfBox

      public PdfBox()
  • Method Details

    • getSX

      public float getSX()
      Gets the x coordinate from which it's possible to start draw the box.
      Returns:
      The start x coordinate.
    • getSY

      public float getSY()
      Gets the y coordinate from which it's possible to start draw the box.
      Returns:
      The start y coordinate.
    • setSX

      public void setSX(String s)
      Sets the x coordinate from which it's possible to start draw the box.
      Parameters:
      s - The start x coordinate, as string, to set.
    • setSX

      public void setSX(float f)
      Sets the x coordinate from which it's possible to start draw the box.
      Parameters:
      f - The start x coordinate to set.
    • setSY

      public void setSY(String s)
      Sets the y coordinate from which it's possible to start draw the box.
      Parameters:
      s - The start y coordinate, as string, to set.
    • setSY

      public void setSY(float f)
      Sets the y coordinate from which it's possible to start draw the box.
      Parameters:
      f - The start y coordinate to set.
    • getPX

      public int getPX()
      Gets the x position from which start to draw the box.
      Returns:
      The x position from which start to draw the box.
    • getPY

      public int getPY()
      Gets the y position from which start to draw the box.
      Returns:
      The y position from which start to draw the box.
    • setPX

      public void setPX(String s)
      Sets the x position from which start to draw the box.
      Parameters:
      s - Possible position are:
      • 'c' - center
      • 'l' - left
      • 'r' - right
    • setPY

      public void setPY(String s)
      Sets the y position from which start to draw the box.
      Parameters:
      s - Possible position are:
      • 't' - top
      • 'm' - middle
      • 'b' - bottom
    • setPX

      public void setPX(int i)
      Sets the x position from which start to draw the box.
      Parameters:
      i - Possible position are: 0,1 or 2.
    • setPY

      public void setPY(int i)
      Sets the y position from which start to draw the box.
      Parameters:
      i - Possible position are: 0,1 or 2.
    • getW

      public float getW()
      Gets the width of the box.
      Returns:
      The width of the box.
    • getH

      public float getH()
      Gets the height of the box.
      Returns:
      The height of the box.
    • setW

      public void setW(String s)
      Sets the box's width.
      Parameters:
      s - The width to set.
    • setH

      public void setH(String s)
      Sets the box's height.
      Parameters:
      s - The height to set.
    • getBS

      public int[] getBS()
    • getBS

      public int getBS(int i)
    • setBW

      public void setBW(String s)
      Sets the borders's width of all 4 border.
      Parameters:
      s - The borders's width.
    • setBW

      public void setBW(int i, float f)
      Sets the border's width of a specific one (the firs, or the second ecc).
      Parameters:
      i - The ith border for which set the width.
      f - The borders's width to set.
    • getBW

      public float[] getBW()
      Gets the borders's width of all 4 border.
      Returns:
      An float array wwith the borders's width.
    • getBW

      public float getBW(int i)
      Gets the ith border's width.
      Parameters:
      i - The ith border for which get the width.
      Returns:
      The ith border's width.
    • setBS

      public void setBS(String s)
    • setBS

      public void setBS(int i, int f)
    • setBKG

      public void setBKG(String s)
      Sets the background color of the box.
      Parameters:
      s - The color to set.
    • getBKG

      public Color getBKG(Color c)
      Gets the background color of the box.
      Parameters:
      c - should not be used.
      Returns:
      The background color of the box.
    • setBC

      public void setBC(String s)
      Sets the borders's color.
      Parameters:
      s - The 4 color of each border separated by comma
    • setBC

      public void setBC(int i, Color c)
      Sets the ith border's color.
      Parameters:
      i - The ith border.
      c - The Color of each the ith border to set.
    • getBC

      public Color[] getBC()
      Gets the Color array containing the all 4 color of each border.
      Returns:
      The Color array containing the all 4 color of each border.
    • getBC

      public Color getBC(int i)
      Gets the ith border's color.
      Parameters:
      i - The ith border.
      Returns:
      The Color of ith border.
    • absX

      public float absX(float x, float y, float w, float h)
      Calculate the real x coordinate (depending also from the x position set) from which start to draw the box.
      Parameters:
      x - The x value coordinate.
      y - The y value coordinate.
      w - The widht of the box.
      h - The height of the box.
      Returns:
      The real x coordinate from which start to draw the box.
    • absY

      public float absY(float x, float y, float w, float h)
      Calculate the real y coordinate (depending also from the y position set) from which start to draw the box.
      Parameters:
      x - The x value coordinate.
      y - The y value coordinate.
      w - The widht of the box.
      h - The height of the box.
      Returns:
      The real y coordinate from which start to draw the box.
    • drawInsideBack

      public void drawInsideBack(Report r, float x, float y, float w, float h)
      Draw the inside area of the box, defining box's positioning, box's sizing and box's color fill.
      Specified by:
      drawInsideBack in class PdfComponent
      Parameters:
      r - The report from which take the infos (for example coordinates) to draw the box.
      x - The x value coordinate.
      y - The y value coordinate.
      w - The widht of the box.
      h - The height of the box.
    • drawInsideFront

      public void drawInsideFront(Report r, float x, float y, float w, float h)
      Draw the outside border of the box, defining borders's width and borders's color stroke.
      Specified by:
      drawInsideFront in class PdfComponent
      Parameters:
      r - The report from which take the infos (for example coordinates) to draw the box.
      x - The x value coordinate.
      y - The y value coordinate.
      w - The widht of the box.
      h - The height of the box.