Package overit.geocall.basic.ui.report
Class PdfComponent
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.basic.ui.report.PdfComponent
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,Identified
- Direct Known Subclasses:
PdfBox
public abstract class PdfComponent
extends UINode
implements Identified, overit.geocall.marks.NameExposer, overit.geocall.marks.MethodExposer
This class extends
This class implement and represent the basic functions and attributes for a pdf report.
UINode and implements Identified, NameExposer and MethodExposer.This class implement and represent the basic functions and attributes for a pdf report.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voiddrawInside(Report r, float x, float y, float w, float h) Draw the componentabstract voiddrawInsideBack(Report r, float x, float y, float w, float h) abstract voiddrawInsideFront(Report r, float x, float y, float w, float h) protected static booleangetBoolean(String s, boolean def) static Color[]Gets a list of rgb values as string separated by comma, a dimension dim and a defaultColorarray.
Return anColorarray with the first dim color in the string list.
If the list of string contains a non color rgb value (represent as string, for example "255") will be put into the array a defaultColorobject taken from cc deaultColorarray.static ColorGets aColorobject from a string containg the integer rgb value.protected static floatstatic float[]Gets a list of Float represent as strings separated by comma, a dimension dim and a float array.
Return a Float array with the first dim Float number of the string list.
If the list of string contains a non Float number (represent as string, for example "3.4") will be put into the Float array a default Float value taken from ff deault Float array.static com.lowagie.text.FontGets the font to use on text of the reportReturns theIdentityassociated to the componentprotected static intstatic int[]Gets a list of int represent as strings separated by comma, a dimension dim and a float array.
Return a int array with the first dim int number of the string list.
If the list of string contains a non integer number (represent as string, for example "3") will be put into the array a default integer value taken from ii deault integer array.getNAME()Gets the report's name.static String[]Gets a list of string separated by comma and a dimension dim, return a string array with the first dim string of the list.voidsetIdentity(Identity identity) Sets theIdentityto the componentvoidSets the report's name.voidSets if the instance is visible or not.
-
Field Details
-
_visible
protected boolean _visible -
_name
-
_identity
-
-
Constructor Details
-
PdfComponent
public PdfComponent()
-
-
Method Details
-
getBoolean
-
getint
-
getfloat
-
setV
Sets if the instance is visible or not.- Parameters:
s-'true' or '1'if the instance must be visible,'false' or '0'otherwise.
-
getString
Gets a list of string separated by comma and a dimension dim, return a string array with the first dim string of the list.- Parameters:
s- The list of string separated by comma.dim- The number of string to take into accaunting.- Returns:
- A string array with the first dim string of the list.
-
getfloat
Gets a list of Float represent as strings separated by comma, a dimension dim and a float array.
Return a Float array with the first dim Float number of the string list.
If the list of string contains a non Float number (represent as string, for example "3.4") will be put into the Float array a default Float value taken from ff deault Float array.- Parameters:
key- The list of Float, represent as strings, separated by comma.dim- The number of Float number to take into accaunting.ff- The default Float array from which take float values ??in case there are none in the list passed in input.- Returns:
- A Float array with the first dim, Float number, of the string list key.
-
getint
Gets a list of int represent as strings separated by comma, a dimension dim and a float array.
Return a int array with the first dim int number of the string list.
If the list of string contains a non integer number (represent as string, for example "3") will be put into the array a default integer value taken from ii deault integer array.- Parameters:
key- The list of integer, represent as strings, separated by comma.dim- The number of intger number to take into accaunting.ii- The default integer array from which take int values ??in case there are none in the list passed in input.- Returns:
- An integer array with the first dim, intger number, of the string list key.
-
getColor
Gets aColorobject from a string containg the integer rgb value.- Parameters:
s- The string with the rgb value.c- The Default value to return.- Returns:
- S
Colorobject from a string containg the integer rgb value.
-
getColor
Gets a list of rgb values as string separated by comma, a dimension dim and a defaultColorarray.
Return anColorarray with the first dim color in the string list.
If the list of string contains a non color rgb value (represent as string, for example "255") will be put into the array a defaultColorobject taken from cc deaultColorarray.- Parameters:
key- The list of rgb values separated by comma.dim- The number of rgb values to take into accaunting.cc- The defaultColorarray from which takeColoronject ??in case there are none rgb values in the list passed in input.- Returns:
- An
Colorarray with the first dim color in the string list.
-
getFont
Gets the font to use on text of the report- Parameters:
s- A string containg the font's name, size and style of theFontto use.def- The defaultFontto return.- Returns:
- the
Fontto use on text of the report
-
getIdentity
Description copied from interface:IdentifiedReturns theIdentityassociated to the component- Specified by:
getIdentityin interfaceIdentified- Returns:
- The Identity of the user currently logged in the application
-
setIdentity
Description copied from interface:IdentifiedSets theIdentityto the component- Specified by:
setIdentityin interfaceIdentified- Parameters:
identity- The Identity that must be associated to the component
-
setNAME
Sets the report's name.- Parameters:
s- The name to set.
-
getNAME
Gets the report's name.- Returns:
- The name of the report.
-
drawInside
Draw the component- Parameters:
r- The report where draw the componentx- 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.
-
drawInsideBack
-
drawInsideFront
-