Reprinted from: http://amozon.iteye.com/blog/35167
http://www.jfree.org/jfreechart/----English
Jfreechart is currently the best graphics solution, basically able to solve the current graphics requirements, mainly including the following aspects
Jfreechart class:
void Setantialias (Boolean flag) font blur boundary
void SetBackgroundImage (image image) Background image
void setbackgroundimagealignment (int alignment) background picture alignment (parameter constants are defined in the Org.jfree.ui.Align class)
void Setbackgroundimagealpha (float alpha) background picture transparency (0.0~1.0)
void Setbackgroundpaint (paint paint) Background color
void Setborderpaint (Paint paint) boundary bar color
void Setborderstroke (Stroke stroke) boundary line strokes
void Setbordervisible (Boolean visible) boundary bar is visible
-----------------------------------------------------------------------------------------------------------
Texttitle class:
void SetFont (font font) title font
void Setpaint (Paint paint) Title Font color
void SetText (String text) header content
-----------------------------------------------------------------------------------------------------------
Standardlegend (Legend) class:
void Setbackgroundpaint (Paint paint) Illustration background color
void Settitle (String title) illustration title content
void Settitlefont (font font) icon caption Font
void setboundingboxarcwidth (int arcwidth) illustration boundary fillet width
void setboundingboxarcheight (int archeight) illustration boundary fillet height
void Setoutlinepaint (Paint paint) illustration boundary bar color
void Setoutlinestroke (Stroke stroke) Diagram Boundary Line stroke
void Setdisplayserieslines (Boolean flag) if the item is horizontal (line chart valid)
void Setdisplayseriesshapes (Boolean flag) Diagram item whether the shape is displayed (line chart is valid)
void Setitemfont (font font) icon Item font
void Setitempaint (Paint paint) Diagram Item font color
void Setanchor (int anchor) diagram where shown in the chart (parameter constants are defined in the legend Class)
-----------------------------------------------------------------------------------------------------------
Axis class:
void SetVisible (Boolean flag) axis is visible
void setaxislinepaint (paint paint) Axis Line Color (3D axis not valid)
void Setaxislinestroke (Stroke stroke) Axis line stroke (Invalid 3D axis)
Void Setaxislinevisible (Boolean visible) axis lines are visible (invalid 3D axis)
void Setfixeddimension (double dimension) (For multi-axis settings in a composite table)
void SetLabel (String label) axis title
void Setlabelfont (font font) Axis Title font
void Setlabelpaint (paint paint) axis title color
void Setlabelangle (double angle) ' Axis Title Rotation angle (ordinate can be rotated)
void Setticklabelfont (font font) axis ruler value font
void Setticklabelpaint ( Paint paint) axis ruler value color
void Setticklabelsvisible (Boolean flag) axis ruler value display
void Settickmarkpaint (Paint paint) axis ruler color
void Settickmarkstroke (Stroke stroke) Axis ruler stroke
void Settickmarksvisible (Boolean flag) axis ruler displays
Valueaxis (axis) class:
void Setautorange (Boolean auto) automatically set data axis data range
Void Setautorangeminimumsize (double size) The minimum span of the data range when the data axis data range is set automatically
void Setautotickunitselection (Boolean flag) Whether data labels for the data axis are automatically determined (default is True)
void Setfixedautorange (double length) Data axis fixed data range (100 is displayed maxvalue to MAXVALUE-100 data range)
void setinverted (Boolean flag) Whether the data axis is reversed (false by default)
void Setlowermargin (double margin) data axis (left) margin
void Setuppermargin (double margin) Data axis (right) margin
void Setlowerbound (double min) display minimum on the data axis
void Setupperbound (double MAX) display maximum on the data axis
void setpositivearrowvisible (Boolean visible) whether to display a forward arrow (invalid 3D axis)
Void Setnegativearrowvisible (Boolean visible) whether to display a reverse arrow (invalid 3D axis)
void Setverticalticklabels (Boolean flag) Whether the data axis data labels are rotated to the data labels of the vertical
void setstandardtickunits (Tickunitsource source) data axis (you can display only integer labels, You need to set Autotickunitselection to false)
Numberaxis (Valueaxis) class:
Whether or not void Setautorangeincludeszero (Boolean flag) forces the 0 to be included in the automatically selected data range
whether void Setautorangestickyzero (Boolean flag) forces the entire data axis to contain 0, even if 0 is not in the data range
void Setnumberformatoverride (NumberFormat formatter) data axis data label display format
Data label for void Settickunit (numbertickunit unit) Data axis (requires Autotickunitselection to be set to false)
Dateaxis (Valueaxis) class:
void Setmaximumdate (date maximumdate) The minimum date on the date axis
void Setminimumdate (date minimumdate) The maximum date on the date axis
void SetRange (date lower,date upper) Date axis range
void Setdateformatoverride (DateFormat formatter) Date Axis Date label display format
void Settickunit (datetickunit unit) Date label (required to set Autotickunitselection to false)
void Settickmarkposition (datetickmarkposition position) Date label position (parameter constants are defined in the Org.jfree.chart.axis.DateTickMarkPosition class)
Categoryaxis (Axis) class:
void Setcategorymargin (double margin) category axis margins
void Setlowermargin (double margin) category under axis (left) margin
void Setuppermargin (double margin) category axis (right) margin
void Setverticalcategorylabels (Boolean flag) category axis titles are rotated to vertical
void Setmaxcategorylabelwidthratio (float ratio) category axis Maximum width of category labels
-----------------------------------------------------------------------------------------------------------
Plot class:
void SetBackgroundImage (image image) data area background picture
Background picture alignment for void setbackgroundimagealignment (int alignment) data area (parameter constants are defined in the Org.jfree.ui.Align class)
Background picture background color for void setbackgroundpaint (paint paint) data area
void Setbackgroundalpha (float alpha) data area background transparency (0.0~1.0)
The foreground transparency of the void Setforegroundalpha (float alpha) data area (0.0~1.0)
void Setdataarearatio (double ratio) data area as a percentage of the entire chart area
Boundary line color for void setoutlinepaint (paint paint) data area
Boundary line strokes for void setoutlinestroke (stroke stroke) data area
The message that is displayed when there is no data for void Setnodatamessage (String message)
void Setnodatamessagefont (font font) The message font that is displayed when there is no data
void Setnodatamessagepaint (Paint paint) The message color that is displayed when there is no data
Categoryplot (Plot) class:
2-D data table for void Setdataset (Categorydataset DataSet) data area
How to sort a void Setcolumnrenderingorder (SortOrder order) data classification
void Setaxisoffset (Spacer offset) axis-to-data area spacing
Direction of the void SetOrientation (plotorientation orientation) data area (Plotorientation.horizontal or plotorientation.vertical)
Category axis for void Setdomainaxis (Categoryaxis axis) data area
void Setdomainaxislocation (axislocation location) The position of the category axis (parameter constants are defined in the Org.jfree.chart.axis.AxisLocation class)
void Setdomaingridlinesvisible (Boolean visible) category axis grid is visible
void Setdomaingridlinepaint (Paint paint) category axis grid line Color
void Setdomaingridlinestroke (Stroke stroke) Category axis grid line strokes
Data axis for void Setrangeaxis (Valueaxis axis) data area
Position of the Axislocation location data axis (parameter constants are defined in the Org.jfree.chart.axis.AxisLocation Class) setrangeaxislocation
void Setrangegridlinesvisible (Boolean visible) data axis grid is visible
void Setrangegridlinepaint (Paint paint) data axis grid line Color
void Setrangegridlinestroke (Stroke stroke) data axis grid line strokes
Representation of the Void Setrenderer (Categoryitemrenderer renderer) data area (see Renderer Group)
void Addannotation (categoryannotation annotation) adds a comment to the data area
void Addrangemarker (Marker marker,layer Layer) adds a range of values to the data area
Pieplot (Plot) class:
1-D data table for void Setdataset (Piedataset DataSet) data area
void Setignorenullvalues (Boolean flag) ignores non-value classifications
void Setcircular (Boolean flag) pie chart must be a positive circle
Initial angle of void setstartangle (double angle) pie chart
The direction of rotation of the void setdirection (Rotation direction) pie chart
void setexplodepercent (int section,double percent) Extract (classification subscript for 1-d data table) and extracted distance (0.0~1.0), 3D pie chart invalid
void Setlabelbackgroundpaint (Paint paint) Classification label background
Font for category labels for void Setlabelfont (font font)
void Setlabelpaint (Paint paint) category label Font color
void Setlabellinkmargin (double margin) Category label connection line margin with graph
void Setlabellinkpaint (Paint paint) category label and diagram Connector color
void Setlabellinkstroke (Stroke stroke) Category labels line strokes with graphs
void Setlabeloutlinepaint (Paint paint) Category label border color
void Setlabeloutlinestroke (Paint paint) category label border strokes
void Setlabelshadowpaint (Paint paint) Category label Shadow color
Maximum length of a void setmaximumlabelwidth (double width) category label (0.0~1.0)
Index of void Setpieindex (int index) pie chart (used in pie chart)
void Setsectionoutlinepaint (int section,paint Paint) Specifies the border color of the classifier pie
void Setsectionoutlinestroke (int section,stroke stroke) Specifies the bounding stroke of the classifier pie
void Setsectionpaint (int section,paint Paint) Specifies the color of the classification pie
void Setshadowpaint (Paint paint) shadow Color of pie chart
void Setshadowxoffset (double offset) The horizontal offset of the shadow of a pie chart relative to a graph
void Setshadowyoffset (double offset) The vertical offset of the shadow relative to the graph of a pie chart
void Setlabelgenerator (Piesectionlabelgenerator Generator) Classification label format, set to NULL if the entire label includes the connector line is not displayed
void Settooltipgenerator (Pietooltipgenerator generator) map in the display format of the mouse cursor
Drillthrough link format in void Seturlgenerator (Pieurlgenerator generator) map
Pieplot3d (Pieplot) class:
void Setdepthfactor (double factor) 3D pie chart Z-axis height (0.0~1.0)
Multiplepieplot (Plot) class:
void Setlimit (double limit) data association between each pie chart (more complex)
void Setpiechart (Jfreechart piechart) How each pie chart is displayed (see Jfreechart Class Pieplot Class)
-----------------------------------------------------------------------------------------------------------
Abstractrenderer class:
void Setitemlabelanchoroffset (double offset) data label offset from data point
void Setitemlabelsvisible (Boolean visible) data labels are visible
Font for void Setitemlabelfont (font font) data labels
void Setitemlabelpaint (Paint paint) data label font Color
void Setitemlabelposition (itemlabelposition position) data label position
void Setpositiveitemlabelposition (itemlabelposition position) positive label position
void Setnegativeitemlabelposition (itemlabelposition position) negative label position
void Setoutlinepaint (paint paint) graphic border line Color
void Setoutlinestroke (Stroke stroke) drawing border line strokes
void Setpaint (Paint paint) color of all classified graphics
void Setshape (Shape shape) shapes of all categorical shapes (such as points of a line chart)
void Setstroke (Stroke stroke) strokes for all categorized graphics (such as lines of line charts)
void setseriesitemlabelsvisible (int series,boolean visible) Specifies whether the data labels for the classification are visible
void Setseriesitemlabelfont (int series,font font) Specifies the font of the data labels for the taxonomy
void Setseriesitemlabelpaint (int series,paint Paint) specifies the font color of the data labels for the classification
void setseriesitemlabelposition (int series,itemlabelposition position) data label position
void setseriespositiveitemlabelposition (int series,itemlabelposition position) Positive label position
void setseriesnegativeitemlabelposition (int series,itemlabelposition position) negative label position
void Setseriesoutlinepaint (int series,paint Paint) specifies the line color of the category's graphic border
void Setseriesoutlinestroke (int series,stroke stroke) Specifies the line strokes of the category's graphic border
void Setseriespaint (int series,paint Paint) Specifies the color of the category graphic
void setseriesshape (int series,shape shape) Specifies the shape of the category graphic (such as the point of a line chart)
void Setseriesstroke (int series,stroke stroke) Specifies the strokes of the classified graphic (such as lines of a line chart)
Abstractcategoryitemrenderer (Abstractrenderer) class:
Format of the void Setlabelgenerator (Categorylabelgenerator generator) data label
void Settooltipgenerator (Categorytooltipgenerator generator) map in the display format of the mouse cursor
Drillthrough link format in void Setitemurlgenerator (Categoryurlgenerator generator) map
void setserieslabelgenerator (int series,categorylabelgenerator Generator) Specifies the format of the data labels for the classification
void setseriestooltipgenerator (int series,categorytooltipgenerator generator) Specifies the display format of the mouse cursor in the map of the taxonomy
void setseriesitemurlgenerator (int series,categoryurlgenerator generator) Specifies the drillthrough link format for the category map
Barrenderer (Abstractcategoryitemrenderer) class:
void Setdrawbaroutline (Boolean draw) whether to draw a graphic border
void Setitemmargin (double percent) the interval between each bar
void Setmaxbarwidth (double percent) maximum width per bar
void Setminimumbarlength (double min) the shortest bar length to prevent the value from being too small to display
void Setpositiveitemlabelpositionfallback (itemlabelposition position) a positive label position that cannot be displayed in bar
void Setnegativeitemlabelpositionfallback (itemlabelposition position) negative label position that cannot be displayed in bar
Barrenderer3d (Barrenderer) class:
void Setwallpaint (Paint paint) 3D axis wall Color
Stackedbarrenderer (Barrenderer) class:
No special settings
Stackedbarrenderer3d (Barrenderer3d) class:
No special settings
Groupedstackedbarrenderer (Stackedbarrenderer) class:
void Setseriestogroupmap (Keytogroupmap map) maps categorical freedom to several groups (Keytogroupmap.mapkeytogroup (Series,group))
Layeredbarrenderer (Barrenderer) class:
void setseriesbarwidth (int series,double width) Sets the width of each category (note that the setting does not overwrite a category)
Waterfallbarrenderer (Barrenderer) class:
void Setfirstbarpaint (Paint paint) color of the first bar chart
void Setlastbarpaint (Paint paint) color of the last bar chart
Color of void Setpositivebarpaint (paint paint) Positive bar chart
Color of void Setnegativebarpaint (paint paint) Negative bar chart
Intervalbarrenderer (Barrenderer) class:
Need to pass Intervalcategorydataset as a data source
Ganttbarrenderer (Intervalbarrenderer) class:
void Setcompletepaint (Paint paint) Finish Progress color
void Setincompletepaint (Paint paint) Unfinished progress color
void Setstartpercent (double percent) sets the starting position of the progress bar in the entire bar (0.0~1.0)
void Setendpercent (double percent) sets the end position of the progress bar in the entire bar (0.0~1.0)
Statisticbarrenderer (Barrenderer) class:
Need to pass Statisticcategorydataset as a data source
Lineandshaperenderer (Abstractcategoryitemrenderer) class:
void Setdrawlines (Boolean draw) whether a line is connected between data points of a polyline
void Setdrawshapes (Boolean draw) whether the data points of a polyline use different shapes depending on the classification
void Setshapesfilled (Boolean filled) whether all categories fill data point graphics
void setseriesshapesfilled (int series,boolean filled) Specifies whether the classification fills the data point graphic
void Setusefillpaintforshapeoutline (Boolean use) specifies whether the paint that fills the data point is also used to draw the border of the data point shape
Levelrenderer (Abstractcategoryitemrenderer) class:
void Setitemmargin (double percent) interval between each classification
void Setmaxitemwidth (double percent) maximum width per category
Categorysteprenderer (Abstractcategoryitemrenderer) class:
void Setstagger (Boolean shouldstagger) whether the graphs of different classifications are interleaved
Minmaxcategoryrenderer (Abstractcategoryitemrenderer) class:
void Setdrawlines (Boolean drawlines) whether to draw a connector between each category line
void Setgrouppaint (Paint grouppaint) The color of a group of graphic connector lines
void Setgroupstroke (stroke groupstroke) strokes of a group of graphic connectors
void Setmaxicon (Icon maxicon) Max icon
void Setminicon (Icon minicon) The icon of the minimum value
void Setobjecticon (Icon objecticon) icon for all values
Arearender (Abstractcategoryitemrenderer) class:
No special settings
Stackedarearender (Arearender) class:
No special settings