org.jfree.chart.JFreeChart implements:
java.lang.Cloneable, org.jfree.ui.Drawable, java.util.EventListener, PlotChangeListener, java.io.Serializable, TitleChangeListener
void | addChangeListener(ChartChangeListener listener) 注册一个用于对图表的变化通知对象 |
void | addLegend(LegendTitle legend) 添加一个图例 LegendTitle legendTitle = new LegendTitle(chart.getPlot()); legendTitle.setBorder(1, 1, 1, 2);//设置四周的边距,带线框. legendTitle.setPosition(RectangleEdge.RIGHT); chart.addLegend(legendTitle); |
void | addProgressListener(ChartProgressListener listener) 注册一个有关的图表事件通知的对象。 |
void | addSubtitle(Title subtitle) 添加副标题 jFreeChart.addSubtitle(0, new TextTitle("first"));//有索引的副标题,占一行 jFreeChart.addSubtitle(new TextTitle("first"));//副标题,占一行. |
void | clearSubtitles()清除所有副标题 |
java.lang.Object | clone() 克隆一个图像对象. |
boolean | equals(java.lang.Object obj) 判断两个jfreechart是否相等. |
void | fireChartChanged() //通知Jfreechart 数据发生了改变,重新绘制柱状图 |
java.awt.RenderingHints | getRenderingHints()返回此转换操作使用的呈现提示 |
getSubtitle(int index) //得到指定索引的副标题. | |
int | getSubtitleCount() //得到副标题的数量 |
java.util.List | getSubtitles() //得到副标题List |
getTitle() // jfreechart.getTitle().setPosition(RectangleEdge.BOTTOM) //设置标题的位置 | |
getXYPlot() | |
void | handleClick(int x, int y, ChartRenderingInfo info) |
boolean | isBorderVisible() 设置边界是否显示 |
protected void | notifyListeners(ChartChangeEvent event) 通知监听 |
protected void | notifyListeners(ChartProgressEvent event) 通知监听 |
void | plotChanged(PlotChangeEvent event) |
void | removeChangeListener(ChartChangeListener listener)移除监听 |
void | removeLegend()移除图例 |
void | removeProgressListener(ChartProgressListener listener) 异常监听 |
void | removeSubtitle(Title title) 移除副标题 |
void | setAntiAlias(boolean flag) //设置字体模糊边界. |
void | setBackgroundImage(java.awt.Image image) //背景图片. |
void | setBackgroundImageAlignment(int alignment) //背景图片对齐方式(参数常量在org.jfree.ui.Align类中定义) |
void | setBackgroundImageAlpha(float alpha) //背景图片透明度(0.0~1.0) |
void | setBackgroundPaint(java.awt.Paint paint) //背景色 |
void | setBorderPaint(java.awt.Paint paint) //边界线条颜色 |
void | setBorderStroke(java.awt.Stroke stroke) //边界线条笔触 |
void | setBorderVisible(boolean visible) //边界线条是否可见 |
void | setNotify(boolean notify) |
void | setPadding(org.jfree.ui.RectangleInsets padding) // RectangleInsets.ZERO_INSETS |
void | setRenderingHints(java.awt.RenderingHints renderingHints) // |
void | setSubtitles(java.util.List subtitles) //设置副标题. |
void | setTitle(java.lang.String text) //设置标题 |
void | setTitle(TextTitle title) //设置标题 |
void | titleChanged(TitleChangeEvent event) |