public class TitleGlyph extends TextGlyph
限定符和类型 | 字段和说明 |
---|---|
static double |
GAP |
bounds, visible
构造器和说明 |
---|
TitleGlyph() |
TitleGlyph(java.lang.String text4Glyph,
TextAttr textAttr) |
限定符和类型 | 方法和说明 |
---|---|
protected java.lang.String |
dealStringAutoWrap(java.lang.String labelString,
TextAttr textAttr,
int resolution,
double maxWidth) |
void |
draw(java.awt.Graphics g,
int resolution)
普通的文本画法,无旋转
|
protected void |
drawText(java.awt.Graphics2D g2d,
int resolution) |
protected double |
getHorizontalLabelX(java.awt.geom.Rectangle2D gapBounds,
java.awt.geom.Dimension2D dim) |
void |
layoutTitleAndRefreshChartBounds(java.awt.geom.Rectangle2D chartBounds,
double width_gap,
double height_gap,
int resolution)
布局标题并刷新图表的边界
|
java.awt.geom.Dimension2D |
preferredDimension(int resolution,
double chartWidth,
double chartHeight)
预计算标题 占用的Dim, 需要填充 判断Gap 和 MaxHeight
|
changeStyleAttrAlpha, changeStyleAttrBackground, changeStyleAttrBorder, changeStyleAttrColor, changeStyleAttrContents, changeStyleAttrLineStyle, clone, drawAxisTitle, drawBackground, equals, getOutline4Fill, getPosition, getShape, getText, getTextAttr, preferredDimension, selectableChildren, setPosition, setText, setTextAttr, toJSONObject, toJSONObject4Refresh, toVanJSONObject
getBounds, isInvisible, isVisible, setBounds, setVisible
dealCondition, dealConditionWithSeriesColor, drawOnlyBorder, drawWithOutBorder, getAlpha, getBackground, getBorderColor, getBorderStyle, getGeneralInfo, getRoundRadius, is3DIE6, isRoundBorder, isShadow, paint, paintBackground, putBackgroundJSON, putPlotBackgroundJSON, setAlpha, setBackground, setBorderColor, setBorderStyle, setGeneralInfo, setRoundBorder
public static final double GAP
public TitleGlyph(java.lang.String text4Glyph, TextAttr textAttr)
public TitleGlyph()
public void layoutTitleAndRefreshChartBounds(java.awt.geom.Rectangle2D chartBounds, double width_gap, double height_gap, int resolution)
chartBounds
- 图表边界width_gap
- 宽度间隔height_gap
- 高度间隔resolution
- 分辨率public java.awt.geom.Dimension2D preferredDimension(int resolution, double chartWidth, double chartHeight)
resolution
- 分辨率chartWidth
- 宽度chartHeight
- 高度public void draw(java.awt.Graphics g, int resolution)
TextGlyph
protected void drawText(java.awt.Graphics2D g2d, int resolution)
protected java.lang.String dealStringAutoWrap(java.lang.String labelString, TextAttr textAttr, int resolution, double maxWidth)
protected double getHorizontalLabelX(java.awt.geom.Rectangle2D gapBounds, java.awt.geom.Dimension2D dim)
getHorizontalLabelX
在类中 TextGlyph