?? jfreechart api.txt
字號(hào):
void setAxisOffset(Spacer offset) 坐標(biāo)軸到數(shù)據(jù)區(qū)的間距
void setOrientation(PlotOrientation orientation) 數(shù)據(jù)區(qū)的方向(PlotOrientation.HORIZONTAL或PlotOrientation.VERTICAL)
void setDomainAxis(CategoryAxis axis) 數(shù)據(jù)區(qū)的分類(lèi)軸
void setDomainAxisLocation(AxisLocation location) 分類(lèi)軸的位置(參數(shù)常量在org.jfree.chart.axis.AxisLocation類(lèi)中定義)
void setDomainGridlinesVisible(boolean visible) 分類(lèi)軸網(wǎng)格是否可見(jiàn)
void setDomainGridlinePaint(Paint paint) 分類(lèi)軸網(wǎng)格線條顏色
void setDomainGridlineStroke(Stroke stroke) 分類(lèi)軸網(wǎng)格線條筆觸
void setRangeAxis(ValueAxis axis) 數(shù)據(jù)區(qū)的數(shù)據(jù)軸
void setRangeAxisLocation(AxisLocation location) 數(shù)據(jù)軸的位置(參數(shù)常量在org.jfree.chart.axis.AxisLocation類(lèi)中定義)
void setRangeGridlinesVisible(boolean visible) 數(shù)據(jù)軸網(wǎng)格是否可見(jiàn)
void setRangeGridlinePaint(Paint paint) 數(shù)據(jù)軸網(wǎng)格線條顏色
void setRangeGridlineStroke(Stroke stroke) 數(shù)據(jù)軸網(wǎng)格線條筆觸
void setRenderer(CategoryItemRenderer renderer) 數(shù)據(jù)區(qū)的表示者(詳見(jiàn)Renderer組)
void addAnnotation(CategoryAnnotation annotation) 給數(shù)據(jù)區(qū)加一個(gè)注釋
void addRangeMarker(Marker marker,Layer layer) 給數(shù)據(jù)區(qū)加一個(gè)數(shù)值范圍區(qū)域
PiePlot(Plot)類(lèi):
void setDataset(PieDataset dataset) 數(shù)據(jù)區(qū)的1維數(shù)據(jù)表
void setIgnoreNullValues(boolean flag) 忽略無(wú)值的分類(lèi)
void setCircular(boolean flag) 餅圖是否一定是正圓
void setStartAngle(double angle) 餅圖的初始角度
void setDirection(Rotation direction) 餅圖的旋轉(zhuǎn)方向
void setExplodePercent(int section,double percent) 抽取的那塊(1維數(shù)據(jù)表的分類(lèi)下標(biāo))以及抽取出來(lái)的距離(0.0~1.0),3D餅圖無(wú)效
void setLabelBackgroundPaint(Paint paint) 分類(lèi)標(biāo)簽的底色
void setLabelFont(Font font) 分類(lèi)標(biāo)簽的字體
void setLabelPaint(Paint paint) 分類(lèi)標(biāo)簽的字體顏色
void setLabelLinkMargin(double margin) 分類(lèi)標(biāo)簽與圖的連接線邊距
void setLabelLinkPaint(Paint paint) 分類(lèi)標(biāo)簽與圖的連接線顏色
void setLabelLinkStroke(Stroke stroke) 分類(lèi)標(biāo)簽與圖的連接線筆觸
void setLabelOutlinePaint(Paint paint) 分類(lèi)標(biāo)簽邊框顏色
void setLabelOutlineStroke(Paint paint) 分類(lèi)標(biāo)簽邊框筆觸
void setLabelShadowPaint(Paint paint) 分類(lèi)標(biāo)簽陰影顏色
void setMaximumLabelWidth(double width) 分類(lèi)標(biāo)簽的最大長(zhǎng)度(0.0~1.0)
void setPieIndex(int index) 餅圖的索引(復(fù)合餅圖中用到)
void setSectionOutlinePaint(int section,Paint paint) 指定分類(lèi)餅的邊框顏色
void setSectionOutlineStroke(int section,Stroke stroke) 指定分類(lèi)餅的邊框筆觸
void setSectionPaint(int section,Paint paint) 指定分類(lèi)餅的顏色
void setShadowPaint(Paint paint) 餅圖的陰影顏色
void setShadowXOffset(double offset) 餅圖的陰影相對(duì)圖的水平偏移
void setShadowYOffset(double offset) 餅圖的陰影相對(duì)圖的垂直偏移
void setLabelGenerator(PieSectionLabelGenerator generator) 分類(lèi)標(biāo)簽的格式,設(shè)置成null則整個(gè)標(biāo)簽包括連接線都不顯示
void setToolTipGenerator(PieToolTipGenerator generator) MAP中鼠標(biāo)移上的顯示格式
void setURLGenerator(PieURLGenerator generator) MAP中鉆取鏈接格式
PiePlot3D(PiePlot)類(lèi):
void setDepthFactor(double factor) 3D餅圖的Z軸高度(0.0~1.0)
MultiplePiePlot(Plot)類(lèi):
void setLimit(double limit) 每個(gè)餅圖之間的數(shù)據(jù)關(guān)聯(lián)(詳細(xì)比較復(fù)雜)
void setPieChart(JFreeChart pieChart) 每個(gè)餅圖的顯示方式(見(jiàn)JFreeChart類(lèi)個(gè)PiePlot類(lèi))
-----------------------------------------------------------------------------------------------------------
AbstractRenderer類(lèi):
void setItemLabelAnchorOffset(double offset) 數(shù)據(jù)標(biāo)簽的與數(shù)據(jù)點(diǎn)的偏移
void setItemLabelsVisible(boolean visible) 數(shù)據(jù)標(biāo)簽是否可見(jiàn)
void setItemLabelFont(Font font) 數(shù)據(jù)標(biāo)簽的字體
void setItemLabelPaint(Paint paint) 數(shù)據(jù)標(biāo)簽的字體顏色
void setItemLabelPosition(ItemLabelPosition position) 數(shù)據(jù)標(biāo)簽位置
void setPositiveItemLabelPosition(ItemLabelPosition position) 正數(shù)標(biāo)簽位置
void setNegativeItemLabelPosition(ItemLabelPosition position) 負(fù)數(shù)標(biāo)簽位置
void setOutLinePaint(Paint paint) 圖形邊框的線條顏色
void setOutLineStroke(Stroke stroke) 圖形邊框的線條筆觸
void setPaint(Paint paint) 所有分類(lèi)圖形的顏色
void setShape(Shape shape) 所有分類(lèi)圖形的形狀(如折線圖的點(diǎn))
void setStroke(Stroke stroke) 所有分類(lèi)圖形的筆觸(如折線圖的線)
void setSeriesItemLabelsVisible(int series,boolean visible) 指定分類(lèi)的數(shù)據(jù)標(biāo)簽是否可見(jiàn)
void setSeriesItemLabelFont(int series,Font font) 指定分類(lèi)的數(shù)據(jù)標(biāo)簽的字體
void setSeriesItemLabelPaint(int series,Paint paint) 指定分類(lèi)的數(shù)據(jù)標(biāo)簽的字體顏色
void setSeriesItemLabelPosition(int series,ItemLabelPosition position) 數(shù)據(jù)標(biāo)簽位置
void setSeriesPositiveItemLabelPosition(int series,ItemLabelPosition position) 正數(shù)標(biāo)簽位置
void setSeriesNegativeItemLabelPosition(int series,ItemLabelPosition position) 負(fù)數(shù)標(biāo)簽位置
void setSeriesOutLinePaint(int series,Paint paint) 指定分類(lèi)的圖形邊框的線條顏色
void setSeriesOutLineStroke(int series,Stroke stroke) 指定分類(lèi)的圖形邊框的線條筆觸
void setSeriesPaint(int series,Paint paint) 指定分類(lèi)圖形的顏色
void setSeriesShape(int series,Shape shape) 指定分類(lèi)圖形的形狀(如折線圖的點(diǎn))
void setSeriesStroke(int series,Stroke stroke) 指定分類(lèi)圖形的筆觸(如折線圖的線)
AbstractCategoryItemRenderer(AbstractRenderer)類(lèi):
void setLabelGenerator(CategoryLabelGenerator generator) 數(shù)據(jù)標(biāo)簽的格式
void setToolTipGenerator(CategoryToolTipGenerator generator) MAP中鼠標(biāo)移上的顯示格式
void setItemURLGenerator(CategoryURLGenerator generator) MAP中鉆取鏈接格式
void setSeriesLabelGenerator(int series,CategoryLabelGenerator generator) 指定分類(lèi)的數(shù)據(jù)標(biāo)簽的格式
void setSeriesToolTipGenerator(int series,CategoryToolTipGenerator generator) 指定分類(lèi)的MAP中鼠標(biāo)移上的顯示格式
void setSeriesItemURLGenerator(int series,CategoryURLGenerator generator) 指定分類(lèi)的MAP中鉆取鏈接格式
BarRenderer(AbstractCategoryItemRenderer)類(lèi):
void setDrawBarOutline(boolean draw) 是否畫(huà)圖形邊框
void setItemMargin(double percent) 每個(gè)BAR之間的間隔
void setMaxBarWidth(double percent) 每個(gè)BAR的最大寬度
void setMinimumBarLength(double min) 最短的BAR長(zhǎng)度,避免數(shù)值太小而顯示不出
void setPositiveItemLabelPositionFallback(ItemLabelPosition position) 無(wú)法在BAR中顯示的正數(shù)標(biāo)簽位置
void setNegativeItemLabelPositionFallback(ItemLabelPosition position) 無(wú)法在BAR中顯示的負(fù)數(shù)標(biāo)簽位置
BarRenderer3D(BarRenderer)類(lèi):
void setWallPaint(Paint paint) 3D坐標(biāo)軸的墻體顏色
StackedBarRenderer(BarRenderer)類(lèi):
沒(méi)有特殊的設(shè)置
StackedBarRenderer3D(BarRenderer3D)類(lèi):
沒(méi)有特殊的設(shè)置
GroupedStackedBarRenderer(StackedBarRenderer)類(lèi):
void setSeriesToGroupMap(KeyToGroupMap map) 將分類(lèi)自由的映射成若干個(gè)組(KeyToGroupMap.mapKeyToGroup(series,group))
LayeredBarRenderer(BarRenderer)類(lèi):
void setSeriesBarWidth(int series,double width) 設(shè)定每個(gè)分類(lèi)的寬度(注意設(shè)置不要使某分類(lèi)被覆蓋)
WaterfallBarRenderer(BarRenderer)類(lèi):
void setFirstBarPaint(Paint paint) 第一個(gè)柱圖的顏色
void setLastBarPaint(Paint paint) 最后一個(gè)柱圖的顏色
void setPositiveBarPaint(Paint paint) 正值柱圖的顏色
void setNegativeBarPaint(Paint paint) 負(fù)值柱圖的顏色
IntervalBarRenderer(BarRenderer)類(lèi):
需要傳IntervalCategoryDataset作為數(shù)據(jù)源
GanttBarRenderer(IntervalBarRenderer)類(lèi):
void setCompletePaint(Paint paint) 完成進(jìn)度顏色
void setIncompletePaint(Paint paint) 未完成進(jìn)度顏色
void setStartPercent(double percent) 設(shè)置進(jìn)度條在整條中的起始位置(0.0~1.0)
void setEndPercent(double percent) 設(shè)置進(jìn)度條在整條中的結(jié)束位置(0.0~1.0)
StatisticBarRenderer(BarRenderer)類(lèi):
需要傳StatisticCategoryDataset作為數(shù)據(jù)源
LineAndShapeRenderer(AbstractCategoryItemRenderer)類(lèi):
void setDrawLines(boolean draw) 是否折線的數(shù)據(jù)點(diǎn)之間用線連
void setDrawShapes(boolean draw) 是否折線的數(shù)據(jù)點(diǎn)根據(jù)分類(lèi)使用不同的形狀
void setShapesFilled(boolean filled) 所有分類(lèi)是否填充數(shù)據(jù)點(diǎn)圖形
void setSeriesShapesFilled(int series,boolean filled) 指定分類(lèi)是否填充數(shù)據(jù)點(diǎn)圖形
void setUseFillPaintForShapeOutline(boolean use) 指定是否填充數(shù)據(jù)點(diǎn)的Paint也被用于畫(huà)數(shù)據(jù)點(diǎn)形狀的邊框
LevelRenderer(AbstractCategoryItemRenderer)類(lèi):
void setItemMargin(double percent) 每個(gè)分類(lèi)之間的間隔
void setMaxItemWidth(double percent) 每個(gè)分類(lèi)的最大寬度
CategoryStepRenderer(AbstractCategoryItemRenderer)類(lèi):
void setStagger(boolean shouldStagger) 不同分類(lèi)的圖是否交錯(cuò)
MinMaxCategoryRenderer(AbstractCategoryItemRenderer)類(lèi):
void setDrawLines(boolean drawLines) 是否在每個(gè)分類(lèi)線間畫(huà)連接線
void setGroupPaint(Paint groupPaint) 一組圖形連接線的顏色
void setGroupStroke(Stroke groupStroke) 一組圖形連接線的筆觸
void setMaxIcon(Icon maxIcon) 最大值的ICON
void setMinIcon(Icon minIcon) 最小值的ICON
void setObjectIcon(Icon objectIcon) 所有值的ICON
AreaRender(AbstractCategoryItemRenderer)類(lèi):
沒(méi)有特殊的設(shè)置
StackedAreaRender(AreaRender)類(lèi):
沒(méi)有特殊的設(shè)置
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -