JFreeChart类:
void setAntiAlias(boolean flag)
void setBackgroundImage(Image image)
void setBackgroundImageAlignm
void setBackgroundImageAlpha(float alpha)
void setBackgroundPaint(Paint paint)
void setBorderPaint(Paint paint)
void setBorderStroke(Stroke stroke)
void setBorderVisible(boolean visible)
-----------------------------------------------------------------------------------------------------------
TextTitle类:
void setFont(Font font)
void setPaint(Paint paint)
void setText(String text)
-----------------------------------------------------------------------------------------------------------
StandardLegend(Legend)类:
void setBackgroundPaint(Paint paint)
void setTitle(String title)
void setTitleFont(Font font)
void setBoundingBoxArcWidth(int arcWidth)
void setBoundingBoxArcHeight(int arcHeight)
void setOutlinePaint(Paint paint)
void setOutlineStroke(Stroke stroke)
void setDisplaySeriesLines(boolean flag)
void setDisplaySeriesShapes(boolean flag)
void setItemFont(Font font)
void setItemPaint(Paint paint)
void setAnchor(int anchor)
-----------------------------------------------------------------------------------------------------------
Axis类:
void setVisible(boolean flag)
void setAxisLinePaint(Paint paint)
void setAxisLineStroke(Stroke stroke)
void setAxisLineVisible(boolean visible)
void setFixedDimension(double dimension)
void setLabel(String label)
void setLabelFont(Font font)
void setLabelPaint(Paint paint)
void setLabelAngle(double angle)`
void setTickLabelFont(Font font)
void setTickLabelPaint(Paint paint)
void setTickLabelsVisible(boolean flag)
void setTickMarkPaint(Paint paint)
void setTickMarkStroke(Stroke stroke)
void setTickMarksVisible(boolean flag)
ValueAxis(Axis)类:
void setAutoRange(boolean auto)
void setAutoRangeMinimumSize(double size)
void setAutoTickUnitSelection
void setFixedAutoRange(double length)
void setInverted(boolean flag)
void setLowerMargin(double margin)
void setUpperMargin(double margin)
void setLowerBound(double min)
void setUpperBound(double max)
void setPositiveArrowVisible(boolean visible)
void setNegativeArrowVisible(boolean visible)
void setVerticalTickLabels(boolean flag)
void setStandardTickUnits(TickUnitSource source)
NumberAxis(ValueAxis)类:
void setAutoRangeIncludesZero
void setAutoRangeStickyZero(boolean flag)
void setNumberFormatOverride(NumberFormat formatter)
void setTickUnit(NumberTickUnit unit)
DateAxis(ValueAxis)类:
void setMaximumDate(Date maximumDate)
void setMinimumDate(Date minimumDate)
void setRange(Date lower,Date upper)
void setDateFormatOverride(DateFormat formatter)
void setTickUnit(DateTickUnit unit)
void setTickMarkPosition(DateTickMarkPosition position)
CategoryAxis(Axis)类:
void setCategoryMargin(double margin)
void setLowerMargin(double margin)
void setUpperMargin(double margin)
void setVerticalCategoryLabel
void setMaxCategoryLabelWidth
-----------------------------------------------------------------------------------------------------------
Plot类:
void setBackgroundImage(Image image)
void setBackgroundImageAlignm
void setBackgroundPaint(Paint paint)
void setBackgroundAlpha(float alpha)
void setForegroundAlpha(float alpha)
void setDataAreaRatio(double ratio)
void setOutLinePaint(Paint paint)
void setOutLineStroke(Stroke stroke)
void setNoDataMessage(String message)
void setNoDataMessageFont(Font font)
void setNoDataMessagePaint(Paint paint)
CategoryPlot(Plot)类:
void setDataset(CategoryDataset dataset)
void setColumnRenderingOrder(SortOrder order)
void setAxisOffset(Spacer offset)
void setOrientation(PlotOrientation orientation)
void setDomainAxis(CategoryAxis axis)
void setDomainAxisLocation(AxisLocation location)
void setDomainGridlinesVisibl
void setDomainGridlinePaint(Paint paint)
void setDomainGridlineStroke(Stroke stroke)
void setRangeAxis(ValueAxis axis)
void setRangeAxisLocation(AxisLocation location)
void setRangeGridlinesVisible
void setRangeGridlinePaint(Paint paint)
void setRangeGridlineStroke(Stroke stroke)
void setRenderer(CategoryItemRenderer renderer)
void addAnnotation(CategoryAnnotation annotation)
void addRangeMarker(Marker marker,Layer layer)
PiePlot(Plot)类:
void setDataset(PieDataset dataset)
void setIgnoreNullValues(boolean flag)
void setCircular(boolean flag)
void setStartAngle(double angle)
void setDirection(Rotation direction)
void setExplodePercent(int section,double percent)
void setLabelBackgroundPaint(Paint paint)
void setLabelFont(Font font)
void setLabelPaint(Paint paint)
void setLabelLinkMargin(double margin)
void setLabelLinkPaint(Paint paint)
void setLabelLinkStroke(Stroke stroke)
void setLabelOutlinePaint(Paint paint)
void setLabelOutlineStroke(Paint paint)
void setLabelShadowPaint(Paint paint)
void setMaximumLabelWidth(double width)
void setPieIndex(int index)
void setSectionOutlinePaint(int section,Paint paint)
void setSectionOutlineStroke(int section,Stroke stroke)
void setSectionPaint(int section,Paint paint)
void setShadowPaint(Paint paint)
void setShadowXOffset(double offset)
void setShadowYOffset(double offset)
void setLabelGenerator(PieSectionLabelGenerator
void setToolTipGenerator(PieToolTipGenerator generator)
void setURLGenerator(PieURLGenerator generator)
PiePlot3D(PiePlot)类:
void setDepthFactor(double factor)
MultiplePiePlot(Plot)类:
void setLimit(double limit)
void setPieChart(JFreeChart pieChart)
-----------------------------------------------------------------------------------------------------------
AbstractRenderer类:
void setItemLabelAnchorOffset
void setItemLabelsVisible(boolean visible)
void setItemLabelFont(Font font)
void setItemLabelPaint(Paint paint)
void setItemLabelPosition(ItemLabelPosition position)
void setPositiveItemLabelPosi
void setNegativeItemLabelPosi
void setOutLinePaint(Paint paint)
void setOutLineStroke(Stroke stroke)
void setPaint(Paint paint)
void setShape(Shape shape)
void setStroke(Stroke stroke)
void setSeriesItemLabelsVisib
void setSeriesItemLabelFont(int series,Font font)
void setSeriesItemLabelPaint(int series,Paint paint)
void setSeriesItemLabelPositi
void setSeriesPositiveItemLab
void setSeriesNegativeItemLab
void setSeriesOutLinePaint(int series,Paint paint)
void setSeriesOutLineStroke(int series,Stroke stroke)
void setSeriesPaint(int series,Paint paint)
void setSeriesShape(int series,Shape shape)
void setSeriesStroke(int series,Stroke stroke)
AbstractCategoryItemRend
void setLabelGenerator(CategoryLabelGenerator generator)
void setToolTipGenerator(CategoryToolTipGenerator
void setItemURLGenerator(CategoryURLGenerator generator)
void setSeriesLabelGenerator(int series,CategoryLabelGenerator generator)
void setSeriesToolTipGenerato
void setSeriesItemURLGenerato
BarRenderer(AbstractCategoryItemRend
void setDrawBarOutline(boolean draw)
void setItemMargin(double percent)
void setMaxBarWidth(double percent)
void setMinimumBarLength(double min)
void setPositiveItemLabelPosi
void setNegativeItemLabelPosi
BarRenderer3D(BarRenderer)类:
void setWallPaint(Paint paint)
StackedBarRenderer(BarRenderer)类:
没有特殊的设置
StackedBarRenderer3D(BarRenderer3D)类:
没有特殊的设置
GroupedStackedBarRendere
void setSeriesToGroupMap(KeyToGroupMap map)
LayeredBarRenderer(BarRenderer)类:
void setSeriesBarWidth(int series,double width)
WaterfallBarRenderer(BarRenderer)类:
void setFirstBarPaint(Paint paint)
void setLastBarPaint(Paint paint)
void setPositiveBarPaint(Paint paint)
void setNegativeBarPaint(Paint paint)
IntervalBarRenderer(BarRenderer)类:
需要传IntervalCategoryDataset作为数据源
GanttBarRenderer(IntervalBarRenderer)类:
void setCompletePaint(Paint paint)
void setIncompletePaint(Paint paint)
void setStartPercent(double percent)
void setEndPercent(double percent)
StatisticBarRenderer(BarRenderer)类:
需要传StatisticCategoryDataset
LineAndShapeRenderer(AbstractCategoryItemRend
void setDrawLines(boolean draw)
void setDrawShapes(boolean draw)
void setShapesFilled(boolean filled)
void setSeriesShapesFilled(int series,boolean filled)
void setUseFillPaintForShapeO
LevelRenderer(AbstractCategoryItemRend
void setItemMargin(double percent)
void setMaxItemWidth(double percent)
CategoryStepRenderer(AbstractCategoryItemRend
void setStagger(boolean shouldStagger)
MinMaxCategoryRenderer(AbstractCategoryItemRend
void setDrawLines(boolean drawLines)
void setGroupPaint(Paint groupPaint)
void setGroupStroke(Stroke groupStroke)
void setMaxIcon(Icon maxIcon)
void setMinIcon(Icon minIcon)
void setObjectIcon(Icon objectIcon)
AreaRender(AbstractCategoryItemRend
没有特殊的设置
StackedAreaRender(AreaRender)类:
没有特殊的设置
可参考资料与网址
官方网站
http://www.jfree.org/jfreechart/index.html
官方论坛
http://www.jfree.org/phpBB2/index.php
API 文档
http://www.jfree.org/jfreechart/api/gjdoc/index.html
中文API
http://blog.sina.com.cn/u/405da78d010000ap