public class ChartGlyphLayout
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static double |
ARROW_HEIGHT |
static double |
ARROW_WIDTH |
构造器和说明 |
---|
ChartGlyphLayout() |
限定符和类型 | 方法和说明 |
---|---|
static void |
dataSheetDoLayoutWithPlotGlyph(ChartGlyph chartGlyph)
布局数据表
|
static void |
doLayout(ChartGlyph chartGlyph,
int resolution)
图表ChartGlyph的整个布局 边界
|
static void |
legendDoLayoutWithLeftBounds(java.awt.geom.Rectangle2D chartOriginalBounds,
java.awt.geom.Rectangle2D chartBounds,
ChartGlyph chartGlyph,
int resolution)
布局图例
|
static void |
makeSureDataSheetBounds(java.awt.geom.Rectangle2D chartBounds,
ChartGlyph chartGlyph,
int resolution)
图例的布局对数据表有影响, 特别是在左侧的时候, 如果图例过多, 会在下方和图例交叉, 应该默认全部把图例避过,
所以应该在图例布局之后 再完成数据表边界确定.
|
static void |
plotDoLayout(java.awt.geom.Rectangle2D chartBounds,
ChartGlyph chartGlyph,
int resolution)
只布局绘图区
|
static void |
preGap4ChartBorder(ChartGlyph chartGlyph,
java.awt.geom.Rectangle2D chartBounds)
去掉边框
|
static void |
preGap4ChartInPadding(java.awt.geom.Rectangle2D chartBounds)
去掉内边框
|
static void |
titleGlyphDoLayout(java.awt.geom.Rectangle2D chartBounds,
TitleGlyph titleGlyph,
int resolution)
布局标题
含有直角坐标系的图形使用
|
public static void doLayout(ChartGlyph chartGlyph, int resolution)
chartGlyph
- 用于布局的对象resolution
- 分辨率参数public static void makeSureDataSheetBounds(java.awt.geom.Rectangle2D chartBounds, ChartGlyph chartGlyph, int resolution)
chartBounds
- 图表剩余边界chartGlyph
- 图表resolution
- 分辨率public static void preGap4ChartBorder(ChartGlyph chartGlyph, java.awt.geom.Rectangle2D chartBounds)
chartGlyph
- 图表chartBounds
- 图表剩余边界public static void preGap4ChartInPadding(java.awt.geom.Rectangle2D chartBounds)
chartBounds
- 图表剩余边界public static void titleGlyphDoLayout(java.awt.geom.Rectangle2D chartBounds, TitleGlyph titleGlyph, int resolution)
chartBounds
- 图表剩余边界titleGlyph
- 标题resolution
- 分辨率public static void legendDoLayoutWithLeftBounds(java.awt.geom.Rectangle2D chartOriginalBounds, java.awt.geom.Rectangle2D chartBounds, ChartGlyph chartGlyph, int resolution)
chartOriginalBounds
- 图表原始边界chartBounds
- 图表剩余边界chartGlyph
- 图表resolution
- 分辨率public static void plotDoLayout(java.awt.geom.Rectangle2D chartBounds, ChartGlyph chartGlyph, int resolution)
chartBounds
- 图表的区域chartGlyph
- 图表绘图对象resolution
- 分辨率public static void dataSheetDoLayoutWithPlotGlyph(ChartGlyph chartGlyph)
chartGlyph
- 数据表图形