public class ChartAlertValueGlyph extends SpecialGlyph
限定符和类型 | 字段和说明 |
---|---|
protected int |
index
警戒线在glyph数组中的index
|
protected double |
indexValue
用于显示的indexValue
|
protected java.awt.geom.Rectangle2D |
labelBounds
警戒线的边框
|
protected java.awt.geom.Line2D[] |
lines
警戒线线
|
构造器和说明 |
---|
ChartAlertValueGlyph()
构造默认的警戒线
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone()
克隆
|
java.awt.geom.Rectangle2D |
dealIntersectsBounds(java.awt.geom.Rectangle2D alertBounds,
java.awt.geom.GeneralPath alertValuePath,
java.awt.geom.Rectangle2D resultLabelBounds)
处理可能重叠的警戒线 边界
|
void |
dealWithAlertLine()
处理警戒线
|
void |
draw(java.awt.Graphics g,
int resolution)
将图像对象画到屏幕上
|
void |
drawAlertValueLabel(java.awt.Graphics g,
int resolution) |
boolean |
equals(java.lang.Object ob)
比较和Object是否相等
|
protected java.awt.geom.Rectangle2D |
getAlertBounds(int alertPosition)
警戒标签的可容纳范围.
|
java.lang.String |
getAlertContent()
返回警戒线的名称内容
|
FRFont |
getAlertFont()
返回警戒线名称内容的字体
|
protected java.awt.geom.Rectangle2D |
getAlertLabelBounds(java.awt.geom.Point2D centerP,
java.awt.geom.Dimension2D dim,
java.awt.geom.GeneralPath alertValuePath,
int alertPosition) |
protected java.awt.geom.Rectangle2D |
getAlertLabelBounds4Range(java.awt.geom.Point2D centerP,
java.awt.geom.Dimension2D dim,
java.awt.geom.GeneralPath alertValuePath,
int alertPosition) |
float |
getAlertLineAlpha()
返回警戒线的透明度
|
java.lang.String |
getAlertPaneSelectName()
返回界面操作时 警戒线的名称
|
int |
getAlertPosition()
返回警戒线的位置 # Constants.LEFT Constants.RIGHT
|
BaseFormula |
getAlertValueFormula()
返回警戒线的值 支持公式
|
AttrColor |
getLineColor()
返回警戒线的颜色
|
AttrLineStyle |
getLineStyle()
返回警戒线线型
|
java.awt.Shape |
getShape()
返回表示该Glyph的几何形状的对象
|
NumberAxisGlyph |
getValueAxisGlyph()
返回绑定的值轴
|
void |
setAlertContent(java.lang.String alertContent)
设置警戒线的名称内容
|
void |
setAlertFont(FRFont alertFont)
设置警戒线名称内容的字体 #alertContent
|
void |
setAlertLabelPaths(java.awt.geom.GeneralPath generalPath)
设置用于处理标签重叠的generalPath
|
void |
setAlertLineAlpha(float alertLineAlpha)
设置警戒线的透明度
|
void |
setAlertPaneSelectName(java.lang.String name)
设置 警戒线在界面操作时的名称
|
void |
setAlertPosition(int alertPosition)
设置警戒线的位置
|
void |
setAlertValueFormula(BaseFormula formula)
设置警戒线的 值 支持公式
|
void |
setIndex(int index)
设置序号
|
void |
setIndexValue(double indexValue)
设置indexValue
|
void |
setLineColor(AttrColor lineColor)
设置警戒线的颜色
|
void |
setLineStyle(AttrLineStyle lineStyle)
设置警戒线线型
|
void |
setValuAxisGlyph(NumberAxisGlyph axisGlyph)
设置绑定的值轴
|
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
JSONObject |
toVanJSONObject(Repository repo,
int position) |
selectableChildren
protected int index
protected java.awt.geom.Line2D[] lines
protected java.awt.geom.Rectangle2D labelBounds
protected double indexValue
public void setIndexValue(double indexValue)
public void setAlertLabelPaths(java.awt.geom.GeneralPath generalPath)
public void setIndex(int index)
public void setValuAxisGlyph(NumberAxisGlyph axisGlyph)
public NumberAxisGlyph getValueAxisGlyph()
public void setAlertValueFormula(BaseFormula formula)
formula
- 警戒线的值public BaseFormula getAlertValueFormula()
public void setAlertPosition(int alertPosition)
alertPosition
- 警戒线位置public int getAlertPosition()
public void setAlertContent(java.lang.String alertContent)
alertContent
- 警戒线的名称内容public java.lang.String getAlertContent()
public void setLineColor(AttrColor lineColor)
lineColor
- 警戒线的颜色public AttrColor getLineColor()
public void setLineStyle(AttrLineStyle lineStyle)
lineStyle
- 警戒线的线型public AttrLineStyle getLineStyle()
public void setAlertFont(FRFont alertFont)
alertFont
- 警戒线的内容字体public FRFont getAlertFont()
public void setAlertLineAlpha(float alertLineAlpha)
alertLineAlpha
- 警戒线的透明度public float getAlertLineAlpha()
public void setAlertPaneSelectName(java.lang.String name)
name
- 界面操作时警戒线的名称public java.lang.String getAlertPaneSelectName()
public void draw(java.awt.Graphics g, int resolution)
Glyph
g
- 画图对象resolution
- 屏幕分辨率public void dealWithAlertLine()
public void drawAlertValueLabel(java.awt.Graphics g, int resolution)
protected java.awt.geom.Rectangle2D getAlertLabelBounds(java.awt.geom.Point2D centerP, java.awt.geom.Dimension2D dim, java.awt.geom.GeneralPath alertValuePath, int alertPosition)
protected java.awt.geom.Rectangle2D getAlertLabelBounds4Range(java.awt.geom.Point2D centerP, java.awt.geom.Dimension2D dim, java.awt.geom.GeneralPath alertValuePath, int alertPosition)
public java.awt.geom.Rectangle2D dealIntersectsBounds(java.awt.geom.Rectangle2D alertBounds, java.awt.geom.GeneralPath alertValuePath, java.awt.geom.Rectangle2D resultLabelBounds)
alertBounds
- 警戒线边界alertValuePath
- 警戒边界pathresultLabelBounds
- 结果边界protected java.awt.geom.Rectangle2D getAlertBounds(int alertPosition)
public java.awt.Shape getShape()
Glyph
public boolean equals(java.lang.Object ob)
equals
在类中 java.lang.Object
ob
- 用 于比较的Objectpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 SpecialGlyph
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public JSONObject toVanJSONObject(Repository repo, int position) throws JSONException
JSONException
public JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject
在接口中 Glyph
toJSONObject
在类中 SpecialGlyph
repo
- 请求JSONException
- 抛错