Package overit.geocall.basic.ui.report
Class PdfBox
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.basic.ui.report.PdfComponent
overit.geocall.basic.ui.report.PdfBox
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,Identified
- Direct Known Subclasses:
PdfBarcodeBox,PdfGraphBox,PdfImageBox,PdfJFCPieBox,PdfJFCSerieBox,PdfSetBox,PdfTextBox
This class extends
PdfComponent and it's used to managed a generic Box inside the pdf report.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Color[]protected Colorprotected int[]protected float[]protected floatprotected intprotected intprotected floatprotected floatprotected floatprotected floatprotected floatFields inherited from class overit.geocall.basic.ui.report.PdfComponent
_identity, _name, _visible -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatabsX(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.floatabsY(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.voiddrawInsideBack(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.voiddrawInsideFront(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.Color[]getBC()Gets theColorarray 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[]getBS()intgetBS(int i) float[]getBW()Gets the borders's width of all 4 border.floatgetBW(int i) Gets the ith border's width.floatgetH()Gets the height of the box.intgetPX()Gets the x position from which start to draw the box.intgetPY()Gets the y position from which start to draw the box.floatgetSX()Gets the x coordinate from which it's possible to start draw the box.floatgetSY()Gets the y coordinate from which it's possible to start draw the box.floatgetW()Gets the width of the box.voidSets the ith border's color.voidSets the borders's color.voidSets the background color of the box.voidsetBS(int i, int f) voidvoidsetBW(int i, float f) Sets the border's width of a specific one (the firs, or the second ecc).voidSets the borders's width of all 4 border.voidSets the box's height.voidsetPX(int i) Sets the x position from which start to draw the box.voidSets the x position from which start to draw the box.voidsetPY(int i) Sets the y position from which start to draw the box.voidSets the y position from which start to draw the box.voidsetSX(float f) Sets the x coordinate from which it's possible to start draw the box.voidSets the x coordinate from which it's possible to start draw the box.voidsetSY(float f) Sets the y coordinate from which it's possible to start draw the box.voidSets the y coordinate from which it's possible to start draw the box.voidSets 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
-
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
-
_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
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
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
Sets the x position from which start to draw the box.- Parameters:
s- Possible position are:- 'c' - center
- 'l' - left
- 'r' - right
-
setPY
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
Sets the box's width.- Parameters:
s- The width to set.
-
setH
Sets the box's height.- Parameters:
s- The height to set.
-
getBS
public int[] getBS() -
getBS
public int getBS(int i) -
setBW
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
-
setBS
public void setBS(int i, int f) -
setBKG
Sets the background color of the box.- Parameters:
s- The color to set.
-
getBKG
Gets the background color of the box.- Parameters:
c- should not be used.- Returns:
- The background color of the box.
-
setBC
Sets the borders's color.- Parameters:
s- The 4 color of each border separated by comma
-
setBC
Sets the ith border's color.- Parameters:
i- The ith border.c- TheColorof each the ith border to set.
-
getBC
Gets theColorarray containing the all 4 color of each border.- Returns:
- The
Colorarray containing the all 4 color of each border.
-
getBC
Gets the ith border's color.- Parameters:
i- The ith border.- Returns:
- The
Colorof 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
Draw the inside area of the box, defining box's positioning, box's sizing and box's color fill.- Specified by:
drawInsideBackin classPdfComponent- 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
Draw the outside border of the box, defining borders's width and borders's color stroke.- Specified by:
drawInsideFrontin classPdfComponent- 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.
-