public class VanChartTitleGlyph extends TitleGlyph
GAP
bounds, visible
构造器和说明 |
---|
VanChartTitleGlyph() |
VanChartTitleGlyph(java.lang.String text4Glyph,
TextAttr textAttr) |
限定符和类型 | 方法和说明 |
---|---|
double |
getFloatPercentX()
返回悬浮位置 距离左上角横向位置
|
double |
getFloatPercentY()
返回悬浮位置 距离左上角纵向位置
|
double |
getMaxHeight()
返回区域最大占比
|
boolean |
isFloating()
返回是否自定义悬浮位置
|
boolean |
isLimitSize()
返回是否限制区域大小
|
boolean |
isUseHtml()
返回是否使用html解析文本
|
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
|
void |
setFloating(boolean floating)
设置是否自定义悬浮位置
|
void |
setFloatPercentX(double x)
设置悬浮位置 距离左上角横向位置
|
void |
setFloatPercentY(double y)
设置悬浮位置 距离左上角纵向位置
|
void |
setLimitSize(boolean limitSize)
设置是否限制区域大小
|
void |
setMaxHeight(double maxHeight)
设置区域最大占比
|
void |
setUseHtml(boolean useHtml)
设置是否使用html解析文本
|
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
dealStringAutoWrap, draw, drawText, getHorizontalLabelX
changeStyleAttrAlpha, changeStyleAttrBackground, changeStyleAttrBorder, changeStyleAttrColor, changeStyleAttrContents, changeStyleAttrLineStyle, clone, drawAxisTitle, drawBackground, equals, getOutline4Fill, getPosition, getShape, getText, getTextAttr, preferredDimension, selectableChildren, setPosition, setText, setTextAttr, 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 VanChartTitleGlyph()
public VanChartTitleGlyph(java.lang.String text4Glyph, TextAttr textAttr)
public void setUseHtml(boolean useHtml)
useHtml
- 是否使用html解析文本public boolean isUseHtml()
public void setFloating(boolean floating)
floating
- 设置是否自定义悬浮位置public boolean isFloating()
public void setFloatPercentX(double x)
x
- 横向位置public double getFloatPercentX()
public void setFloatPercentY(double y)
y
- 纵向位置public double getFloatPercentY()
public void setLimitSize(boolean limitSize)
limitSize
- 是否限制区域大小public boolean isLimitSize()
public void setMaxHeight(double maxHeight)
maxHeight
- 区域最大占比public double getMaxHeight()
public void layoutTitleAndRefreshChartBounds(java.awt.geom.Rectangle2D chartBounds, double width_gap, double height_gap, int resolution)
layoutTitleAndRefreshChartBounds
在类中 TitleGlyph
chartBounds
- 图表边界width_gap
- 宽度间隔height_gap
- 高度间隔resolution
- 分辨率public java.awt.geom.Dimension2D preferredDimension(int resolution, double chartWidth, double chartHeight)
preferredDimension
在类中 TitleGlyph
resolution
- 分辨率chartWidth
- 宽度chartHeight
- 高度public JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject
在接口中 Glyph
toJSONObject
在类中 TextGlyph
repo
- 请求JSONException
- 抛错