欢迎来到天天文库
浏览记录
ID:1325204
大小:56.50 KB
页数:7页
时间:2017-11-10
《jfreechart样式设置》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、JFreeChart类:voidsetAntiAlias(booleanflag)字体模糊边界voidsetBackgroundImage(Imageimage)背景图片voidsetBackgroundImageAlignment(intalignment)背景图片对齐方式(参数常量在org.jfree.ui.Align类中定义)voidsetBackgroundImageAlpha(floatalpha)背景图片透明度(0.0~1.0)voidsetBackgroundPaint(Paintpaint)背景色voidsetBorderPaint(P
2、aintpaint)边界线条颜色voidsetBorderStroke(Strokestroke)边界线条笔触voidsetBorderVisible(booleanvisible)边界线条是否可见-----------------------------------------------------------------------------------------------------------TextTitle类:voidsetFont(Fontfont)标题字体voidsetPaint(Paintpaint)标题字体颜色voidset
3、Text(Stringtext)标题内容-----------------------------------------------------------------------------------------------------------StandardLegend(Legend)类:voidsetBackgroundPaint(Paintpaint)图示背景色voidsetTitle(Stringtitle)图示标题内容voidsetTitleFont(Fontfont)图示标题字体voidsetBoundingBoxArcWidth
4、(intarcWidth)图示边界圆角宽voidsetBoundingBoxArcHeight(intarcHeight)图示边界圆角高voidsetOutlinePaint(Paintpaint)图示边界线条颜色voidsetOutlineStroke(Strokestroke)图示边界线条笔触voidsetDisplaySeriesLines(booleanflag)图示项是否显示横线(折线图有效)voidsetDisplaySeriesShapes(booleanflag)图示项是否显示形状(折线图有效)voidsetItemFont(Fontf
5、ont)图示项字体voidsetItemPaint(Paintpaint)图示项字体颜色voidsetAnchor(intanchor)图示在图表中的显示位置(参数常量在Legend类中定义)-----------------------------------------------------------------------------------------------------------Axis类:voidsetVisible(booleanflag)坐标轴是否可见voidsetAxisLinePaint(Paintpaint)坐标轴线
6、条颜色(3D轴无效)voidsetAxisLineStroke(Strokestroke)坐标轴线条笔触(3D轴无效)voidsetAxisLineVisible(booleanvisible)坐标轴线条是否可见(3D轴无效)voidsetFixedDimension(doubledimension)(用于复合表中对多坐标轴的设置)voidsetLabel(Stringlabel)坐标轴标题voidsetLabelFont(Fontfont)坐标轴标题字体voidsetLabelPaint(Paintpaint)坐标轴标题颜色voidsetLabelA
7、ngle(doubleangle)`坐标轴标题旋转角度(纵坐标可以旋转)voidsetTickLabelFont(Fontfont)坐标轴标尺值字体voidsetTickLabelPaint(Paintpaint)坐标轴标尺值颜色voidsetTickLabelsVisible(booleanflag)坐标轴标尺值是否显示voidsetTickMarkPaint(Paintpaint)坐标轴标尺颜色voidsetTickMarkStroke(Strokestroke)坐标轴标尺笔触voidsetTickMarksVisible(booleanflag)
8、坐标轴标尺是否显示ValueAxis(Axis)类:voidsetAutoRange(bool
此文档下载收益归作者所有