Package overit.geocall.basic.ui.report
Class PdfJFCPieBox
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.PdfJFCPieBox
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,Identified
This class extends
PdfBox and implements the management of a box with a Pie graph inside.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected com.lowagie.text.Imageprotected Stringprotected Stringprotected Stringprotected JFCPieprotected JFCStyleprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected overit.geocall.charts.Serieprotected Stringprotected Stringprotected Stringprotected Stringstatic final StringFields 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 TypeMethodDescriptionvoiddrawInsideFront(Report r, float x, float y, float w, float h) Draw the Pie graph inside the box of the report.protected JFCStyleGets theJFCStyleused to draw the pie chart elements.getTitle()Gets the graph title.protected voidsetAttributes(JFCPie chart) voidDefines if the chart will have a three dimensional design or not.voidDefines which are the elements of the pie chart that must be explodedvoidSets the format of the graph.voidSets the Graph height.voidDefines the characteristics of the label boxesvoidSets the font used for the label of the items of the chartvoidSets theTextFormatused for the labels of the elements of the chartvoidSets theJFCPiechart.voidsetJFCStyle(JFCStyle jfcs) Sets theJFCStyleused to draw the pie chart elementsvoidSets the dats labels.voidSets the Graph legend.voidDefines the characteristics of the legend boxvoidSets the legend text font.protected voidvoidDefines if the chart will be a ring chart, and the size of the ring's sectionvoidsetSerie(overit.geocall.charts.Serie serie) Sets the dataSerieof the chartvoidSets the Graph title.voidSets the title font.voidSets the values for the graph.voidSets the Graph width.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
-
FACTORY_PATH
- See Also:
-
_img
protected com.lowagie.text.Image _img -
_format
-
_width
-
_height
-
_ddd
-
_legend
-
_title
-
_titleFont
-
_explodes
-
_values
-
_labels
-
_itemLabelFormat
-
_itemLabelFont
-
_itemLabelBox
-
_ring
-
_legendFont
-
_legendBox
-
_serie
protected overit.geocall.charts.Serie _serie -
_jfcStyle
-
_jfcPie
-
-
Constructor Details
-
PdfJFCPieBox
public PdfJFCPieBox()
-
-
Method Details
-
setFORMAT
Sets the format of the graph.- Parameters:
s-JFCRaw.PNGto create a PNG image,JFCRaw.JPEGto create a JPEG image. The default value isJFCRaw.PNG
-
setWIDTH
Sets the Graph width.- Parameters:
s- The Graph width.
-
setHEIGHT
Sets the Graph height.- Parameters:
s- The Graph height.
-
setDDD
Defines if the chart will have a three dimensional design or not.- Parameters:
s- A string that represents a boolean value ("true" or "1", "false" or "0").
If the string is not recognized as a boolean value, it will be used the default value, that isfalse
-
setLEGEND
Sets the Graph legend.- Parameters:
s- The Graph legend.
-
setTITLE
Sets the Graph title.- Parameters:
s- The Graph title.
-
setTITLEFONT
Sets the title font.- Parameters:
s- The title font to set.
-
getTitle
Gets the graph title.- Returns:
- The graph title.
-
setEXPLODES
Defines which are the elements of the pie chart that must be exploded- Parameters:
s- A list in which every element, separated from the others by the | character, represents the exploded state of the corresponding item.
If the number of the elements of the list is less then the number of the items of the data serie, the last value will be replicated for all the remaining items.
-
setVALUES
Sets the values for the graph.- Parameters:
s- The values to set.
-
setLABELS
Sets the dats labels.- Parameters:
s- The list containing the labels.
-
setITEMLABELFORMAT
Sets theTextFormatused for the labels of the elements of the chart- Parameters:
s- A string that defines the format used for the labels. The pie chart has only a single serie of data, therefore the format is unique.
-
setITEMLABELFONT
Sets the font used for the label of the items of the chart- Parameters:
s- A string that defines the font, with the format:name,variant,dimension,color. SeeJFCPie.setLEGENDFONT(java.lang.String)
-
setITEMLABELBACKGROUNDCOLOR
Defines the characteristics of the label boxes- Parameters:
s- A string in the format:background-color,shadow color,border thickness,link thickness,link color.
The format for the colors is described in theJFCStyleclass.
The thickness values must be numbers.
You can omit some values, in which case you fall back to the default ones
-
setRING
Defines if the chart will be a ring chart, and the size of the ring's section- Parameters:
s- A value that defines the size of the ring's section. If the value is "0" (that is the default value), the chart will be a pie chart, otherwise it will be a ring chart
-
setLEGENDFONT
Sets the legend text font.- Parameters:
s- The font to set.
-
setLEGENDBOX
Defines the characteristics of the legend box- Parameters:
s- A string that defines the format.
It must be composed by a serie of strings, separated by the comma, with the following meaning:position,background color,border thickness,border color.
The possible values for the position are:t(top),b(bottom),l(left),r(right).
The format for the colors is described in theJFCStyleclass.
The thickness value must be a number.
You can omit some values, in which case you fall back to the default ones
-
setJFCPie
Sets theJFCPiechart.- Parameters:
pie- The chart to set.
-
setJFCStyle
Sets theJFCStyleused to draw the pie chart elements- Parameters:
jfcs- The style used to draw the elements of the chart
-
getJFCStyle
Gets theJFCStyleused to draw the pie chart elements.- Returns:
- The style used to draw the elements of the chart
-
setSerie
public void setSerie(overit.geocall.charts.Serie serie) Sets the dataSerieof the chart- Parameters:
serie- The data serie that contains the values of the chart
-
drawInsideFront
Draw the Pie graph inside the box of the report.- Overrides:
drawInsideFrontin classPdfBox- Parameters:
r- The report where draw the pie graph 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.
-
setMinimumImgSize
protected void setMinimumImgSize() -
setAttributes
-