Package overit.geocall.basic.ui.report
Class PdfGraphBox
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.PdfGraphBox
- 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 graph inside.- See Also:
-
Field Summary
Fields 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 graph inside the box of the pdf.org.jfree.chart.JFreeChartCrate a Bar chart whith datas,title,legend, orientations and label of this instance.double[]getDATA()Gets the graph datas.getLABEL()gets the labels list of the graph datas.booleanorg.jfree.chart.plot.PlotOrientationorg.jfree.chart.JFreeChartCrate a Pie chart whith datas,title and legend of this instance.getTITLE()getTYPE()Gets the measure unit label.Gets the label of the x axis.org.jfree.chart.JFreeChartCrate a XY chart whith datas,title,legend, orientations, x-label and y-label of this instance.Gets the label of the y axis.voidsetDATA(double[] al) Sets the graph datas.voidSets the label list for the graph's datas.voidsetLEGEND(boolean l) Sets whether the chart legend must be present or notvoidsetORIENTATION(char c) Sets the graph orientation.voidsetORIENTATION(org.jfree.chart.plot.PlotOrientation p) Sets the graph orientation.voidSets the chart's title.voidSets the chart's type.voidsetUNITLABEL(String cmp) Sets the measure unit label.voidSets the labe for the x axis.voidSets the labe for the y axis.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
-
Constructor Details
-
PdfGraphBox
public PdfGraphBox()
-
-
Method Details
-
setDATA
public void setDATA(double[] al) Sets the graph datas.- Parameters:
al- A double array with the graph's datas.
-
setLABEL
Sets the label list for the graph's datas.- Parameters:
al- The Strng array containng the labels.
-
setUNITLABEL
Sets the measure unit label.- Parameters:
cmp- The label to set.
-
setXLABEL
Sets the labe for the x axis.- Parameters:
cmp- The label to set.
-
setYLABEL
Sets the labe for the y axis.- Parameters:
cmp- The label to set.
-
setTYPE
Sets the chart's type.- Parameters:
c- The type to set.S
-
setTITLE
Sets the chart's title.- Parameters:
s- The title to set.
-
setLEGEND
public void setLEGEND(boolean l) Sets whether the chart legend must be present or not- Parameters:
l-trueif the legend must be present,falseotherwise.
-
setORIENTATION
public void setORIENTATION(org.jfree.chart.plot.PlotOrientation p) Sets the graph orientation.- Parameters:
p- ThePlotOrientationto set.
-
setORIENTATION
public void setORIENTATION(char c) Sets the graph orientation.- Parameters:
c- possible value are:- 'V' - Vertical
- 'H' - Horizontal
-
getDATA
public double[] getDATA()Gets the graph datas.- Returns:
- The
array containing the graph datas.
invalid reference
double
-
getLABEL
gets the labels list of the graph datas.- Returns:
- The
Comparablearray containing the label list of the graph datas.
-
getUNITLABEL
Gets the measure unit label.- Returns:
- The measure unit label.
-
getXLABEL
Gets the label of the x axis.- Returns:
- The label of the x axis.
-
getYLABEL
Gets the label of the y axis.- Returns:
- The label of the y axis.
-
getTYPE
- Returns:
- Gets chart type.
-
getTITLE
- Returns:
- The chart title.
-
getLEGEND
public boolean getLEGEND()- Returns:
trueif the legend is present,falseotherwise.
-
getORIENTATION
public org.jfree.chart.plot.PlotOrientation getORIENTATION()- Returns:
- The
PlotOrientationof the graph.
-
drawInsideFront
Draw the graph inside the box of the pdf.- Overrides:
drawInsideFrontin classPdfBox- Parameters:
r- The report where draw the 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.
-
getPieChart
public org.jfree.chart.JFreeChart getPieChart()Crate a Pie chart whith datas,title and legend of this instance.- Returns:
- A
JFreeChartPie Chart whith datas,title and legend of this instance.
-
getBarChart
public org.jfree.chart.JFreeChart getBarChart()Crate a Bar chart whith datas,title,legend, orientations and label of this instance.- Returns:
- A
JFreeChartBar Chart whith datas,title,legend and label orientations and label of this instance.
-
getXYChart
public org.jfree.chart.JFreeChart getXYChart()Crate a XY chart whith datas,title,legend, orientations, x-label and y-label of this instance.- Returns:
- A
JFreeChartXY Chart whith datas,title,legend, x-label and y-label orientations and label of this instance.
-