📄 jfreechart.htm
字号:
addAnnotation(CategoryAnnotation annotation) 给数据区加一个注释<BR>void
addRangeMarker(Marker marker,Layer
layer) 给数据区加一个数值范围区域<BR><BR>PiePlot(Plot)类:<BR>void
setDataset(PieDataset dataset) 数据区的1维数据表<BR>void
setIgnoreNullValues(boolean flag) 忽略无值的分类<BR>void
setCircular(boolean flag) 饼图是否一定是正圆<BR>void
setStartAngle(double angle) 饼图的初始角度<BR>void setDirection(Rotation
direction) 饼图的旋转方向<BR>void setExplodePercent(int section,double
percent) 抽取的那块(1维数据表的分类下标)以及抽取出来的距离(0.0~1.0),3D饼图无效<BR>void
setLabelBackgroundPaint(Paint paint) 分类标签的底色<BR>void
setLabelFont(Font font) 分类标签的字体<BR>void
setLabelPaint(Paint paint) 分类标签的字体颜色<BR>void
setLabelLinkMargin(double margin) 分类标签与图的连接线边距<BR>void
setLabelLinkPaint(Paint paint) 分类标签与图的连接线颜色<BR>void
setLabelLinkStroke(Stroke stroke) 分类标签与图的连接线笔触<BR>void
setLabelOutlinePaint(Paint paint) 分类标签边框颜色<BR>void
setLabelOutlineStroke(Paint paint) 分类标签边框笔触<BR>void
setLabelShadowPaint(Paint paint) 分类标签阴影颜色<BR>void
setMaximumLabelWidth(double width) 分类标签的最大长度(0.0~1.0)<BR>void
setPieIndex(int index) 饼图的索引(复合饼图中用到)<BR>void
setSectionOutlinePaint(int section,Paint paint) 指定分类饼的边框颜色<BR>void
setSectionOutlineStroke(int section,Stroke stroke) 指定分类饼的边框笔触<BR>void
setSectionPaint(int section,Paint paint) 指定分类饼的颜色<BR>void
setShadowPaint(Paint paint) 饼图的阴影颜色<BR>void setShadowXOffset(double
offset) 饼图的阴影相对图的水平偏移<BR>void setShadowYOffset(double
offset) 饼图的阴影相对图的垂直偏移<BR>void
setLabelGenerator(PieSectionLabelGenerator generator)
分类标签的格式,设置成null则整个标签包括连接线都不显示<BR>void setToolTipGenerator(PieToolTipGenerator
generator) MAP中鼠标移上的显示格式<BR>void setURLGenerator(PieURLGenerator
generator) MAP中钻取链接格式<BR><BR>PiePlot3D(PiePlot)类:<BR>void
setDepthFactor(double factor)
3D饼图的Z轴高度(0.0~1.0)<BR><BR>MultiplePiePlot(Plot)类:<BR>void setLimit(double
limit) 每个饼图之间的数据关联(详细比较复杂) <BR>void
setPieChart(JFreeChart pieChart)
每个饼图的显示方式(见JFreeChart类个PiePlot类)<BR><BR>-----------------------------------------------------------------------------------------------------------<BR><BR>AbstractRenderer类:<BR>void
setItemLabelAnchorOffset(double offset)
数据标签的与数据点的偏移<BR>void setItemLabelsVisible(boolean
visible) 数据标签是否可见<BR>void setItemLabelFont(Font
font) 数据标签的字体<BR>void setItemLabelPaint(Paint
paint) 数据标签的字体颜色<BR>void
setItemLabelPosition(ItemLabelPosition
position) 数据标签位置<BR>void
setPositiveItemLabelPosition(ItemLabelPosition position)
正数标签位置<BR>void setNegativeItemLabelPosition(ItemLabelPosition
position) 负数标签位置<BR>void setOutLinePaint(Paint
paint) 图形边框的线条颜色<BR>void
setOutLineStroke(Stroke
stroke) 图形边框的线条笔触<BR>void setPaint(Paint
paint) 所有分类图形的颜色<BR>void setShape(Shape
shape) 所有分类图形的形状(如折线图的点)<BR>void
setStroke(Stroke stroke)
所有分类图形的笔触(如折线图的线)<BR>void setSeriesItemLabelsVisible(int series,boolean
visible) 指定分类的数据标签是否可见<BR>void setSeriesItemLabelFont(int
series,Font font) 指定分类的数据标签的字体<BR>void
setSeriesItemLabelPaint(int series,Paint
paint) 指定分类的数据标签的字体颜色<BR>void
setSeriesItemLabelPosition(int series,ItemLabelPosition
position) 数据标签位置<BR>void setSeriesPositiveItemLabelPosition(int
series,ItemLabelPosition position) 正数标签位置<BR>void
setSeriesNegativeItemLabelPosition(int series,ItemLabelPosition position)
负数标签位置<BR>void setSeriesOutLinePaint(int series,Paint
paint) 指定分类的图形边框的线条颜色<BR>void setSeriesOutLineStroke(int
series,Stroke stroke) 指定分类的图形边框的线条笔触<BR>void
setSeriesPaint(int series,Paint paint) 指定分类图形的颜色<BR>void
setSeriesShape(int series,Shape shape)
指定分类图形的形状(如折线图的点)<BR>void setSeriesStroke(int series,Stroke
stroke)
指定分类图形的笔触(如折线图的线)<BR><BR>AbstractCategoryItemRenderer(AbstractRenderer)类:<BR>void
setLabelGenerator(CategoryLabelGenerator generator) 数据标签的格式<BR>void
setToolTipGenerator(CategoryToolTipGenerator generator)
MAP中鼠标移上的显示格式<BR>void setItemURLGenerator(CategoryURLGenerator
generator) MAP中钻取链接格式<BR>void setSeriesLabelGenerator(int
series,CategoryLabelGenerator generator) 指定分类的数据标签的格式<BR>void
setSeriesToolTipGenerator(int series,CategoryToolTipGenerator generator)
指定分类的MAP中鼠标移上的显示格式<BR>void setSeriesItemURLGenerator(int
series,CategoryURLGenerator generator)
指定分类的MAP中钻取链接格式<BR><BR>BarRenderer(AbstractCategoryItemRenderer)类:<BR>void
setDrawBarOutline(boolean
draw) 是否画图形边框<BR>void setItemMargin(double
percent) 每个BAR之间的间隔<BR>void
setMaxBarWidth(double
percent) 每个BAR的最大宽度<BR>void
setMinimumBarLength(double
min) 最短的BAR长度,避免数值太小而显示不出<BR>void
setPositiveItemLabelPositionFallback(ItemLabelPosition
position) 无法在BAR中显示的正数标签位置<BR>void
setNegativeItemLabelPositionFallback(ItemLabelPosition
position) 无法在BAR中显示的负数标签位置<BR><BR>BarRenderer3D(BarRenderer)类:<BR>void
setWallPaint(Paint
paint) 3D坐标轴的墙体颜色<BR><BR>StackedBarRenderer(BarRenderer)类:<BR>没有特殊的设置<BR><BR>StackedBarRenderer3D(BarRenderer3D)类:<BR>没有特殊的设置<BR><BR>GroupedStackedBarRenderer(StackedBarRenderer)类:<BR>void
setSeriesToGroupMap(KeyToGroupMap
map) 将分类自由的映射成若干个组(KeyToGroupMap.mapKeyToGroup(series,group))<BR><BR>LayeredBarRenderer(BarRenderer)类:<BR>void
setSeriesBarWidth(int series,double
width) 设定每个分类的宽度(注意设置不要使某分类被覆盖)<BR><BR>WaterfallBarRenderer(BarRenderer)类:<BR>void
setFirstBarPaint(Paint paint) 第一个柱图的颜色<BR>void setLastBarPaint(Paint
paint) 最后一个柱图的颜色<BR>void setPositiveBarPaint(Paint
paint) 正值柱图的颜色<BR>void setNegativeBarPaint(Paint paint)
负值柱图的颜色<BR><BR>IntervalBarRenderer(BarRenderer)类:<BR>需要传IntervalCategoryDataset作为数据源<BR><BR>GanttBarRenderer(IntervalBarRenderer)类:<BR>void
setCompletePaint(Paint paint) 完成进度颜色<BR>void
setIncompletePaint(Paint paint) 未完成进度颜色<BR>void
setStartPercent(double percent) 设置进度条在整条中的起始位置(0.0~1.0)<BR>void
setEndPercent(double percent)
设置进度条在整条中的结束位置(0.0~1.0)<BR><BR>StatisticBarRenderer(BarRenderer)类:<BR>需要传StatisticCategoryDataset作为数据源<BR><BR>LineAndShapeRenderer(AbstractCategoryItemRenderer)类:<BR>void
setDrawLines(boolean draw) 是否折线的数据点之间用线连<BR>void
setDrawShapes(boolean draw) 是否折线的数据点根据分类使用不同的形状<BR>void
setShapesFilled(boolean filled) 所有分类是否填充数据点图形<BR>void
setSeriesShapesFilled(int series,boolean filled) 指定分类是否填充数据点图形<BR>void
setUseFillPaintForShapeOutline(boolean use)
指定是否填充数据点的Paint也被用于画数据点形状的边框<BR><BR>LevelRenderer(AbstractCategoryItemRenderer)类:<BR>void
setItemMargin(double percent) 每个分类之间的间隔<BR>void
setMaxItemWidth(double percent)
每个分类的最大宽度<BR><BR>CategoryStepRenderer(AbstractCategoryItemRenderer)类:<BR>void
setStagger(boolean shouldStagger)
不同分类的图是否交错<BR><BR>MinMaxCategoryRenderer(AbstractCategoryItemRenderer)类:<BR>void
setDrawLines(boolean drawLines) 是否在每个分类线间画连接线<BR>void
setGroupPaint(Paint groupPaint) 一组图形连接线的颜色<BR>void
setGroupStroke(Stroke groupStroke) 一组图形连接线的笔触<BR>void
setMaxIcon(Icon maxIcon) 最大值的ICON<BR>void setMinIcon(Icon
minIcon) 最小值的ICON<BR>void setObjectIcon(Icon
objectIcon)
所有值的ICON<BR><BR>AreaRender(AbstractCategoryItemRenderer)类:<BR>没有特殊的设置<BR><BR>StackedAreaRender(AreaRender)类:<BR>没有特殊的设置<BR></DIV>
<DIV class=blog_bottom>
<UL>
<LI>16:14 </LI>
<LI>浏览 (877) </LI>
<LI><A href="http://luohc.javaeye.com/blog/142094#comments">评论</A> (1) </LI>
<LI class=last><A class=more href="http://www.javaeye.com/wiki/topic/142094"
target=_blank>相关推荐</A> </LI></UL></DIV>
<DIV class=blog_comment>
<H5>评论</H5><A id=comments name=comments></A>
<DIV id=bc608201>
<DIV class=comment_title><A href="http://brofe.javaeye.com/"
target=_blank>brofe</A> 2008-07-22 <A
onclick="quote_comment(this);return false;"
href="http://luohc.javaeye.com/blog/142094#">回复</A> </DIV>
<DIV class=comment_content>谢谢整理。 如果能上传个附件供下载就更好了。 <BR><BR></DIV></DIV></DIV>
<DIV class=blog_comment>
<H5>发表评论</H5>
<FORM id=comment_form onsubmit="return false;" action=/blog/142094
method=post><INPUT id=editor_bbcode_flag type=hidden>
<DIV id=editor_main><TEXTAREA class="validate-richeditor bad-words min-length-5" id=editor_body style="WIDTH: 500px; HEIGHT: 350px" name=comment[body] rows=20 cols=40></TEXTAREA></DIV>
<SCRIPT type=text/javascript> var editor = new Control.TextArea.Editor("editor_body", "bbcode", false);</SCRIPT>
<P style="PADDING-RIGHT: 30px; TEXT-ALIGN: right">您还没有登录,请<A
href="http://luohc.javaeye.com/login">登录</A>后发表评论 <INPUT class=submit id=submit_button type=submit value=提交 name=commit></P></FORM>
<SCRIPT type=text/javascript> new Validation("comment_form", {immediate: false, onFormValidate: function(result, form){ if(confirm('您需要登录以后才能执行这个操作,现在要登录吗?')) window.location.href = '/login'; }}); </SCRIPT>
</DIV></DIV>
<SCRIPT type=text/javascript> dp.SyntaxHighlighter.ClipboardSwf = '/javascripts/syntaxhighlighter/clipboard.swf'; dp.SyntaxHighlighter.HighlightAll('code', true, true); fix_image_size($$('div.blog_content img'), 700); function quote_comment(link) { quote_user = $(link).previous(0).innerHTML; quote_body = $(link).up().next().innerHTML.stripTags(); editor.bbcode_editor.textarea.insertAfterSelection('[quote="'+quote_user+'"]\n' + quote_body + '\n[/quote]\n'); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -