public class BiasTextPainter extends TagPainter
构造器和说明 |
---|
BiasTextPainter(java.lang.String text) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(java.lang.Object obj)
Equals.
|
void |
generateLineEndList(double length,
double height)
计算线组
|
java.util.List |
getAngleList()
get angleList
|
java.util.List |
getLargeDiagonal() |
java.util.List |
getLineEndList()
get lineEndList
|
java.lang.String |
getText()
get text
|
java.util.List |
getTextList()
get textList
|
boolean |
isBackSlash()
是否slash
|
void |
paint(java.awt.Graphics g,
int width,
int height,
int resolution,
Style style)
Paint.
|
void |
readXML(XMLableReader reader)
从XML文件中读取对象
|
void |
setAngle(int index,
double degree,
double length,
double height)
set the angle of down-borderline of the divided area(the angle between the borderline and the horizontal line),
meanwhile the coordinate of the line-end is updated, for example, if text="finereport|java", for "finereport",
the angle of the down-borderline is 45 degree.
|
void |
setAngleList(java.util.List angleList)
set angleList
|
void |
setIsBackSlash(boolean isBackSlash) |
void |
setLargeDiagonal(java.util.List largeDiagonal) |
void |
setLineEndList(java.util.List lineEndList)
set lineEndList
|
void |
setText(java.lang.String text)
set text,meanwhile update the degree of the line and the coordinate
|
void |
setTextList(java.util.List textList)
set textList
|
JSONObject |
toJSONObject(NodeVisitor toFindCharts,
Repository repo,
int width,
int height)
转为json
|
java.lang.String |
toString()
转为string
|
void |
writeXML(XMLPrintWriter writer)
将对象写入到XML文件
|
paintTag
clone, toJSONObject
public JSONObject toJSONObject(NodeVisitor toFindCharts, Repository repo, int width, int height) throws JSONException
toJSONObject
在接口中 Painter
toJSONObject
在类中 AbstractPainter
repo
- 网络请求上细纹width
- 宽度height
- 高度toFindCharts
- 查找图表JSONException
- 抛错public void setAngle(int index, double degree, double length, double height)
index
- index of the divided areadegree
- new degree that is to setlength
- the length of cellPaintElement, which is used to calculate the coordinate of the lineheight
- the width of cellPaintElement, which is used to calculate the coordinate of the linepublic void generateLineEndList(double length, double height)
length
- 长度height
- 高度public java.lang.String getText()
public void setText(java.lang.String text)
public java.util.List getAngleList()
public void setAngleList(java.util.List angleList)
public java.util.List getLineEndList()
public void setLineEndList(java.util.List lineEndList)
public java.util.List getTextList()
public void setTextList(java.util.List textList)
public java.util.List getLargeDiagonal()
public void setLargeDiagonal(java.util.List largeDiagonal)
public void setIsBackSlash(boolean isBackSlash)
public boolean isBackSlash()
public void paint(java.awt.Graphics g, int width, int height, int resolution, Style style)
g
- 图形上下文width
- 目标图形的宽度height
- 目标图形的高度resolution
- 屏幕分辨率style
- 样式public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
public java.lang.String toString()
toString
在类中 java.lang.Object
public void readXML(XMLableReader reader)
AbstractPainter
readXML
在接口中 XMLReadable
readXML
在类中 AbstractPainter
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
AbstractPainter
writeXML
在接口中 XMLWriter
writeXML
在类中 AbstractPainter
writer
- XML写入对象