public class MarkerGlyph extends SpecialGlyph
构造器和说明 |
---|
MarkerGlyph() |
MarkerGlyph(Marker marker,
java.awt.Color color)
构造标记Glyph
|
限定符和类型 | 方法和说明 |
---|---|
void |
dealCondition4Area(ConditionCollection collection,
DataPoint dataPoint,
java.awt.Color[] colors)
处理面积图的条件显示
|
void |
dealCondition4Line(ConditionCollection collection,
DataPoint dataPoint,
java.awt.Color[] colors)
处理折线类的条件显示
|
void |
draw(java.awt.Graphics g,
int resolution)
将图像对象画到屏幕上
|
boolean |
equals(java.lang.Object ob) |
float |
getAlpha()
返回标记图形的透明度
|
Marker |
getMarker()
返回标记图形中的标记
|
java.awt.Shape |
getShape()
返回标记类型的矩形区域
|
protected boolean |
isNeedBorderBG() |
void |
setAlpha(float alpha)
设置标记图形的透明度
|
void |
setMarker(Marker marker)
设置标记图形中的标记
|
void |
setShape(java.awt.geom.Rectangle2D shapeBounds)
设置标记类型的矩形区域
|
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
clone, selectableChildren
public MarkerGlyph()
public MarkerGlyph(Marker marker, java.awt.Color color)
marker
- 标记color
- 标记颜色public void draw(java.awt.Graphics g, int resolution)
Glyph
g
- 画图对象resolution
- 屏幕分辨率public java.awt.Shape getShape()
public void setShape(java.awt.geom.Rectangle2D shapeBounds)
public void setMarker(Marker marker)
public Marker getMarker()
public void setAlpha(float alpha)
public float getAlpha()
public void dealCondition4Line(ConditionCollection collection, DataPoint dataPoint, java.awt.Color[] colors)
collection
- 条件显示dataPoint
- 系列点colors
- 颜色数组public void dealCondition4Area(ConditionCollection collection, DataPoint dataPoint, java.awt.Color[] colors)
collection
- 条件显示dataPoint
- 系列点colors
- 颜色数组public boolean equals(java.lang.Object ob)
equals
在类中 java.lang.Object
public JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject
在接口中 Glyph
toJSONObject
在类中 SpecialGlyph
repo
- 请求JSONException
- 抛错protected boolean isNeedBorderBG()