public class TextGlyph extends RectangleGlyph implements StyleContactWithConditionCollection
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
position |
protected java.lang.String |
text |
protected TextAttr |
textAttr |
bounds, visible| 限定符和类型 | 方法和说明 |
|---|---|
void |
changeStyleAttrAlpha(AttrAlpha attrAlpha)
改变条件透明度样式.
|
void |
changeStyleAttrBackground(AttrBackground attrBackground)
改变条件背景样式.
|
void |
changeStyleAttrBorder(AttrBorder attrBorder)
改变条件边框样式.
|
void |
changeStyleAttrColor(AttrColor attrColor)
改变条件颜色样式.
|
void |
changeStyleAttrContents(AttrContents attrContents)
改变条件内容样式.
|
void |
changeStyleAttrLineStyle(AttrLineStyle attrLineStyle)
改变条件线型样式
|
java.lang.Object |
clone() |
void |
draw(java.awt.Graphics g,
int resolution)
普通的文本画法,无旋转
|
void |
drawAxisTitle(java.awt.Graphics g,
int resolution) |
protected void |
drawBackground(java.awt.Graphics2D g2d,
int resolution) |
protected void |
drawText(java.awt.Graphics2D g2d,
int resolution) |
boolean |
equals(java.lang.Object ob) |
protected double |
getHorizontalLabelX(java.awt.geom.Rectangle2D gapBounds,
java.awt.geom.Dimension2D dim) |
java.awt.Shape |
getOutline4Fill()
获取用于填充的外发光的形状
|
int |
getPosition()
返回文本图像将要画的位置
Constants.RIGHT Constants.CENTER Constants.LEFT
|
java.awt.Shape |
getShape()
返回shape
|
java.lang.String |
getText()
获取要画的文字
|
TextAttr |
getTextAttr()
获取要画的文字的属性,包括文本的字体、旋转度和对齐方式等
|
java.awt.geom.Dimension2D |
preferredDimension(int resolution)
预计算 文本占用的Dim
|
java.util.Iterator |
selectableChildren()
可选中的子集.
|
void |
setPosition(int position)
设置文本图像画的位置
|
void |
setText(java.lang.String text)
设置要画的文字
|
void |
setTextAttr(TextAttr textAttr)
设置要画的文字的属性
|
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
JSONObject |
toJSONObject4Refresh(Repository repo) |
JSONObject |
toVanJSONObject(Repository repo) |
getBounds, isInvisible, isVisible, setBounds, setVisibledealCondition, dealConditionWithSeriesColor, drawOnlyBorder, drawWithOutBorder, getAlpha, getBackground, getBorderColor, getBorderStyle, getGeneralInfo, getRoundRadius, is3DIE6, isRoundBorder, isShadow, paint, paintBackground, putBackgroundJSON, putPlotBackgroundJSON, setAlpha, setBackground, setBorderColor, setBorderStyle, setGeneralInfo, setRoundBorderprotected java.lang.String text
protected TextAttr textAttr
protected int position
public TextGlyph()
public TextGlyph(java.lang.String title,
TextAttr textAttr)
public void draw(java.awt.Graphics g,
int resolution)
draw 在接口中 Glyphdraw 在类中 GeneralGlyphg - 图形对象resolution - 分辨率public java.awt.Shape getShape()
getShape 在接口中 GlyphgetShape 在类中 RectangleGlyphpublic java.util.Iterator selectableChildren()
selectableChildren 在接口中 Glyphprotected void drawBackground(java.awt.Graphics2D g2d,
int resolution)
protected void drawText(java.awt.Graphics2D g2d,
int resolution)
public void drawAxisTitle(java.awt.Graphics g,
int resolution)
protected double getHorizontalLabelX(java.awt.geom.Rectangle2D gapBounds,
java.awt.geom.Dimension2D dim)
public java.awt.Shape getOutline4Fill()
RectangleGlyphgetOutline4Fill 在类中 RectangleGlyphpublic java.awt.geom.Dimension2D preferredDimension(int resolution)
resolution - 分辨率public void setText(java.lang.String text)
text - 待画的文字public java.lang.String getText()
public TextAttr getTextAttr()
public void setTextAttr(TextAttr textAttr)
textAttr - 文字属性public void setPosition(int position)
position - 文本图像的位置
Constants.RIGHT Constants.CENTER Constants.LEFTpublic int getPosition()
public boolean equals(java.lang.Object ob)
equals 在类中 RectangleGlyphpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone 在接口中 FCloneableclone 在类中 RectangleGlyphjava.lang.CloneNotSupportedException - 如果克隆失败则抛出此异常public JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject 在接口中 GlyphtoJSONObject 在类中 RectangleGlyphrepo - 请求JSONException - 抛错public JSONObject toJSONObject4Refresh(Repository repo) throws JSONException
JSONExceptionpublic JSONObject toVanJSONObject(Repository repo) throws JSONException
toVanJSONObject 在类中 GeneralGlyphJSONExceptionpublic void changeStyleAttrAlpha(AttrAlpha attrAlpha)
changeStyleAttrAlpha 在接口中 StyleContactWithConditionCollectionattrAlpha - 透明度public void changeStyleAttrBackground(AttrBackground attrBackground)
changeStyleAttrBackground 在接口中 StyleContactWithConditionCollectionattrBackground - 背景public void changeStyleAttrBorder(AttrBorder attrBorder)
changeStyleAttrBorder 在接口中 StyleContactWithConditionCollectionattrBorder - 边框public void changeStyleAttrColor(AttrColor attrColor)
changeStyleAttrColor 在接口中 StyleContactWithConditionCollectionattrColor - 颜色public void changeStyleAttrContents(AttrContents attrContents)
changeStyleAttrContents 在接口中 StyleContactWithConditionCollectionattrContents - 内容public void changeStyleAttrLineStyle(AttrLineStyle attrLineStyle)
changeStyleAttrLineStyle 在接口中 StyleContactWithConditionCollectionattrLineStyle - 线型