public class FreeChart extends Constant
Description: 图表对象
Title:首亨软件 - TSS/CRM等
限定符和类型 | 字段和说明 |
---|---|
static org.jfree.ui.RectangleEdge |
BOTTOM |
static org.jfree.ui.RectangleEdge |
LEFT |
static org.jfree.ui.RectangleEdge |
RIGHT |
static org.jfree.ui.RectangleEdge |
TOP |
Area, Bar, Bar_3D, BoxAndWhisker, Bubble, Candlestick, Gantt, HighLow, Histogram, Line, Line_3D, MultiplePie, Pie, Pie_3D, Polar, Ring, ScatterPlot, StackedArea, StackedBar_3D, StackedXYArea, TimeSeries, WaferMap, Waterfall, WindPlot, XYArea, XYBar, XYLine, XYStep, XYStepArea
限定符和类型 | 方法和说明 |
---|---|
float |
getAlpha() |
java.awt.Paint |
getBackgroundPaint() |
java.awt.Paint |
getBorderColor() |
org.jfree.chart.renderer.category.CategoryItemRenderer |
getCategoryItemRender() |
org.jfree.chart.axis.CategoryLabelPositions |
getCategoryLabelPositions() |
org.jfree.chart.plot.CategoryPlot |
getCategoryPlot()
获取柱状图Plot
|
org.jfree.chart.JFreeChart |
getChart() |
org.jfree.data.general.Dataset |
getDataset() |
java.awt.Paint |
getGridlineXPaint() |
java.awt.Paint |
getGridlineYPaint() |
org.jfree.ui.RectangleEdge |
getLegendPosition() |
org.jfree.chart.plot.XYPlot |
getLinePlot()
获取线图Plot
|
double |
getMaxYRange() |
double |
getMinYRange() |
java.lang.String |
getNoDataMessage() |
java.awt.Font |
getNoDataMessageFont() |
org.jfree.util.TableOrder |
getOrder() |
org.jfree.chart.plot.PlotOrientation |
getOrientation() |
org.jfree.chart.plot.PiePlot |
getPiePlot()
获取饼图Plot
|
org.jfree.chart.plot.PiePlot3D |
getPiePlot3D()
获取饼图Plot
|
int |
getPlotOrientation() |
java.awt.Paint |
getShadowPaint() |
java.lang.String |
getTitle() |
java.awt.Font |
getTitleFont() |
int |
getType() |
java.lang.String |
getXlabel() |
java.awt.Font |
getXlabelFont() |
java.awt.Paint |
getXlabelPaint() |
org.jfree.chart.renderer.xy.XYItemRenderer |
getXyItemRender() |
java.lang.String |
getYlabel() |
java.awt.Font |
getYlabelFont() |
java.awt.Paint |
getYlabelPaint() |
boolean |
hasToolTip() |
void |
hasToolTip(boolean hasToolTip) |
boolean |
hasUrl() |
void |
hasUrl(boolean hasUrl) |
void |
initChart()
初始化图表对象
|
boolean |
isDateAxis() |
boolean |
isLegend() |
boolean |
isShowGridXline() |
boolean |
isShowGridYline() |
boolean |
isXtickLabelVisible() |
boolean |
isYtickLabelVisible() |
void |
processCommonProperties()
在标签中进行渲染的时候调用,用于设置属性
|
void |
setAlpha(float alpha) |
void |
setBackgroundPaint(java.awt.Paint backgroundPaint)
设置背景色,如:Color.WHITE
|
void |
setBorderColor(java.awt.Paint borderColor)
设置边框颜色
|
void |
setCategoryItemRender(org.jfree.chart.renderer.category.CategoryItemRenderer categoryItemRender) |
void |
setCategoryLabelPositions_DOWN_45() |
void |
setCategoryLabelPositions_DOWN_90() |
void |
setCategoryLabelPositions_STANDARD() |
void |
setCategoryLabelPositions_UP_45()
设置X轴Label显示方向
|
void |
setCategoryLabelPositions_UP_90() |
void |
setCategoryLabelPositions(org.jfree.chart.axis.CategoryLabelPositions categoryLabelPositions) |
void |
setChart(org.jfree.chart.JFreeChart chart) |
void |
setDataset(org.jfree.data.general.Dataset dataset) |
boolean |
setDataset(Datastore ds,
java.lang.String yCol,
java.lang.String sCol)
设置数据集
|
boolean |
setDataset(Datastore ds,
java.lang.String xCol,
java.lang.String yCol,
java.lang.String sCol)
设置数据集
|
void |
setDateAxis(boolean dateAxis) |
void |
setGridlineXPaint(java.awt.Paint gridlineXPaint) |
void |
setGridlineYPaint(java.awt.Paint gridlineYPaint) |
void |
setLabelFormatMessage(java.lang.String labelFormatMessage) |
void |
setLegend(boolean isLegend) |
void |
setLegendPosition(org.jfree.ui.RectangleEdge legendPosition) |
void |
setLengend2Bottom() |
void |
setLengend2Left()
设置图例在左边
|
void |
setLengend2Right() |
void |
setLengend2Top() |
void |
setMaxYRange(double maxYRange) |
void |
setMinYRange(double minYRange) |
void |
setNoDataMessage(java.lang.String noDataMessage) |
void |
setNoDataMessageFont(java.awt.Font noDataMessageFont) |
void |
setOrder(org.jfree.util.TableOrder order) |
void |
setOrientation(org.jfree.chart.plot.PlotOrientation orientation) |
void |
setOutlineBorderColor(java.awt.Paint outlineBorderColor)
设置内边框颜色
|
void |
setPieExplodePercent(java.lang.String section)
饼图突出显示某块,3D效果下失效
|
void |
setPieExplodePercent(java.lang.String section,
double percent)
饼图突出显示某块,3D效果下失效
|
void |
setPieSectionPaint(java.lang.String key,
java.awt.Paint p)
根据key指定各个数据饼图的颜色
|
void |
setPlotOrientation(int plotOrientation) |
void |
setRange(double minYRange,
double maxYRange)
设置区间范围
|
void |
setShadowPaint(java.awt.Paint shadowPaint) |
void |
setShowGridXline(boolean showGridXline) |
void |
setShowGridYline(boolean showGridYline) |
void |
setTitle(java.lang.String title) |
void |
setTitle(java.lang.String title,
java.awt.Font font)
设置标题
|
void |
setTitleFont(java.awt.Font titleFont) |
void |
setType(int type) |
void |
setXlabel(java.lang.String xlabel) |
void |
setXlabelFont(java.awt.Font xlabelFont) |
void |
setXlabelPaint(java.awt.Paint xlabelPaint) |
void |
setXtickLabelVisible(boolean xtickLabelVisible) |
void |
setXyItemRender(org.jfree.chart.renderer.xy.XYItemRenderer xyItemRender) |
void |
setYlabel(java.lang.String ylabel) |
void |
setYlabelFont(java.awt.Font ylabelFont) |
void |
setYlabelPaint(java.awt.Paint ylabelPaint) |
void |
setYtickLabelVisible(boolean ytickLabelVisible) |
void |
showBorder(boolean showBorder)
是否显示边框
|
void |
showOutlineBorder(boolean outlineBorder)
是否显示内边框
|
public static final org.jfree.ui.RectangleEdge TOP
public static final org.jfree.ui.RectangleEdge BOTTOM
public static final org.jfree.ui.RectangleEdge LEFT
public static final org.jfree.ui.RectangleEdge RIGHT
public FreeChart(int type)
type
- 图表类型public FreeChart()
public void initChart()
public void processCommonProperties()
public void setRange(double minYRange, double maxYRange)
minYRange
- Y轴最小值maxYRange
- Y轴最大值public void setLabelFormatMessage(java.lang.String labelFormatMessage)
public boolean setDataset(Datastore ds, java.lang.String xCol, java.lang.String yCol, java.lang.String sCol)
ds
- 数据集xCol
- X轴 当为PieDataset时无效yCol
- Y轴 要求值为Numberic类型sCol
- Z轴public boolean setDataset(Datastore ds, java.lang.String yCol, java.lang.String sCol)
ds
- 数据集yCol
- Y轴 要求值为Numberic类型sCol
- Z轴public int getType()
public void setType(int type)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public void setTitle(java.lang.String title, java.awt.Font font)
title
- 标题内容font
- 字体public java.lang.String getXlabel()
public void setXlabel(java.lang.String xlabel)
public java.lang.String getYlabel()
public void setYlabel(java.lang.String ylabel)
public org.jfree.data.general.Dataset getDataset()
public void setDataset(org.jfree.data.general.Dataset dataset)
public org.jfree.chart.plot.PlotOrientation getOrientation()
public void setOrientation(org.jfree.chart.plot.PlotOrientation orientation)
public boolean isLegend()
public void setLegend(boolean isLegend)
public boolean hasToolTip()
public boolean hasUrl()
public void hasUrl(boolean hasUrl)
public void hasToolTip(boolean hasToolTip)
public org.jfree.chart.JFreeChart getChart()
public void setChart(org.jfree.chart.JFreeChart chart)
public org.jfree.util.TableOrder getOrder()
public void setOrder(org.jfree.util.TableOrder order)
public boolean isDateAxis()
public void setDateAxis(boolean dateAxis)
public java.awt.Font getTitleFont()
public void showBorder(boolean showBorder)
showBorder
- booleanpublic void setBorderColor(java.awt.Paint borderColor)
borderColor
- Paintpublic java.awt.Paint getBorderColor()
public void showOutlineBorder(boolean outlineBorder)
outlineBorder
- booleanpublic void setOutlineBorderColor(java.awt.Paint outlineBorderColor)
outlineBorderColor
- Paintpublic float getAlpha()
public void setAlpha(float alpha)
public java.awt.Paint getBackgroundPaint()
public void setBackgroundPaint(java.awt.Paint backgroundPaint)
backgroundPaint
- Paintpublic org.jfree.chart.plot.CategoryPlot getCategoryPlot()
public org.jfree.chart.plot.PiePlot getPiePlot()
public org.jfree.chart.plot.PiePlot3D getPiePlot3D()
public org.jfree.chart.plot.XYPlot getLinePlot()
public java.lang.String getNoDataMessage()
public void setNoDataMessage(java.lang.String noDataMessage)
public java.awt.Font getNoDataMessageFont()
public void setNoDataMessageFont(java.awt.Font noDataMessageFont)
public int getPlotOrientation()
public void setPlotOrientation(int plotOrientation)
public void setPieSectionPaint(java.lang.String key, java.awt.Paint p)
key
- Stringp
- Paintpublic org.jfree.chart.renderer.category.CategoryItemRenderer getCategoryItemRender()
public void setCategoryItemRender(org.jfree.chart.renderer.category.CategoryItemRenderer categoryItemRender)
public org.jfree.chart.renderer.xy.XYItemRenderer getXyItemRender()
public void setXyItemRender(org.jfree.chart.renderer.xy.XYItemRenderer xyItemRender)
public void setTitleFont(java.awt.Font titleFont)
public boolean isShowGridXline()
public void setShowGridXline(boolean showGridXline)
public java.awt.Paint getGridlineXPaint()
public void setGridlineXPaint(java.awt.Paint gridlineXPaint)
public boolean isShowGridYline()
public void setShowGridYline(boolean showGridYline)
public java.awt.Paint getGridlineYPaint()
public void setGridlineYPaint(java.awt.Paint gridlineYPaint)
public java.awt.Paint getXlabelPaint()
public void setXlabelPaint(java.awt.Paint xlabelPaint)
public java.awt.Font getXlabelFont()
public void setXlabelFont(java.awt.Font xlabelFont)
public java.awt.Paint getYlabelPaint()
public void setYlabelPaint(java.awt.Paint ylabelPaint)
public java.awt.Font getYlabelFont()
public void setYlabelFont(java.awt.Font ylabelFont)
public boolean isXtickLabelVisible()
public void setXtickLabelVisible(boolean xtickLabelVisible)
public boolean isYtickLabelVisible()
public void setYtickLabelVisible(boolean ytickLabelVisible)
public org.jfree.ui.RectangleEdge getLegendPosition()
public void setLegendPosition(org.jfree.ui.RectangleEdge legendPosition)
public void setLengend2Left()
public void setLengend2Right()
public void setLengend2Top()
public void setLengend2Bottom()
public double getMinYRange()
public void setMinYRange(double minYRange)
public double getMaxYRange()
public void setMaxYRange(double maxYRange)
public void setCategoryLabelPositions_UP_45()
public void setCategoryLabelPositions_UP_90()
public void setCategoryLabelPositions_DOWN_45()
public void setCategoryLabelPositions_DOWN_90()
public void setCategoryLabelPositions_STANDARD()
public void setPieExplodePercent(java.lang.String section, double percent)
section
- Stringpercent
- 抽取出来的距离(0.0~1.0)public void setPieExplodePercent(java.lang.String section)
section
- 突出显示块的名称public java.awt.Paint getShadowPaint()
public void setShadowPaint(java.awt.Paint shadowPaint)
public org.jfree.chart.axis.CategoryLabelPositions getCategoryLabelPositions()
public void setCategoryLabelPositions(org.jfree.chart.axis.CategoryLabelPositions categoryLabelPositions)