public class Meter extends SpecialGlyph
限定符和类型 | 字段和说明 |
---|---|
protected double |
arcWidth |
protected java.awt.geom.Rectangle2D |
bounds |
protected static int |
CHORD |
protected static int |
CIR |
protected double |
extentAngle |
protected int |
joinType |
protected double |
maxOuterSize |
protected static double |
METER_ANOTHER_ANGLE |
protected static double |
METER_WIDTH_OFF |
protected double |
meterMiddleX |
protected double |
meterMiddleY |
protected java.awt.geom.Arc2D |
meterShape |
protected MeterStyle |
meterStyle
仪表盘分格
|
protected static double |
OFFANGLE |
protected static int |
PIE |
protected double |
radius |
protected double |
startAngle |
protected java.awt.geom.Dimension2D |
titleDim |
protected TextGlyph |
titleGlyph
标题
|
protected double |
value
仪表盘的值
|
构造器和说明 |
---|
Meter() |
Meter(TextGlyph title,
double value,
MeterStyle meterStyle) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
adjuetRadius(double meterW,
double meterH,
int resolution) |
protected void |
calculateMeterShape() |
protected void |
calculateMiddleYAndRadius(double meterW,
double meterH,
int resolution) |
java.lang.Object |
clone() |
protected double |
deal4Begin(int index,
MeterInterval interval) |
protected double |
deal4End(int index,
MeterInterval interval) |
protected double |
dealWithDoubleValue(double tickValue) |
void |
draw(java.awt.Graphics g,
int resolution)
画法.
|
protected void |
drawTitle(java.awt.Graphics2D g2d,
int resolution) |
boolean |
equals(java.lang.Object ob) |
java.awt.geom.Rectangle2D |
getBounds()
返回边界
|
protected java.awt.Color |
getColor4CurrentValue() |
java.awt.geom.Dimension2D |
getMaxTickLableDim() |
MeterStyle |
getMeterStyle()
返回仪表盘风格
|
protected double |
getOrder() |
java.awt.Shape |
getShape()
返回表示该Glyph的几何形状的对象
|
TextGlyph |
getTitle()
返回仪表盘的标题
|
double |
getValue()
返回仪表盘的值
|
protected void |
initTransientValue(int resolution) |
void |
resetBeforeDraw()
重置
|
void |
setBounds(java.awt.geom.Rectangle2D bounds)
设置边界
|
void |
setMeterStyle(MeterStyle meterStyle)
设置Meter对应的仪表盘风格
|
void |
setTitle(TextGlyph title)
设置仪表盘的标题
|
void |
setValue(double value)
设置仪表盘的值
|
protected double |
valueToAngle(double value,
int angleRange)
Translates a data value to an angle on the dial.
|
selectableChildren, toJSONObject
protected static final int CIR
protected static final int PIE
protected static final int CHORD
protected static final double METER_WIDTH_OFF
protected static final double METER_ANOTHER_ANGLE
protected static final double OFFANGLE
protected double value
protected TextGlyph titleGlyph
protected MeterStyle meterStyle
protected java.awt.geom.Rectangle2D bounds
protected transient double meterMiddleX
protected transient double meterMiddleY
protected transient double radius
protected transient double startAngle
protected transient double extentAngle
protected transient int joinType
protected transient double maxOuterSize
protected transient double arcWidth
protected transient java.awt.geom.Dimension2D titleDim
protected java.awt.geom.Arc2D meterShape
public Meter()
public Meter(TextGlyph title, double value, MeterStyle meterStyle)
public void setBounds(java.awt.geom.Rectangle2D bounds)
public java.awt.geom.Rectangle2D getBounds()
public void draw(java.awt.Graphics g, int resolution)
g
- 画图对象resolution
- 屏幕分辨率protected void drawTitle(java.awt.Graphics2D g2d, int resolution)
public void resetBeforeDraw()
protected double dealWithDoubleValue(double tickValue)
protected double getOrder()
protected void initTransientValue(int resolution)
protected void calculateMiddleYAndRadius(double meterW, double meterH, int resolution)
protected void adjuetRadius(double meterW, double meterH, int resolution)
protected void calculateMeterShape()
protected java.awt.Color getColor4CurrentValue()
public java.awt.Shape getShape()
Glyph
protected double valueToAngle(double value, int angleRange)
protected double deal4Begin(int index, MeterInterval interval)
protected double deal4End(int index, MeterInterval interval)
public java.awt.geom.Dimension2D getMaxTickLableDim()
public void setMeterStyle(MeterStyle meterStyle)
public MeterStyle getMeterStyle()
public void setValue(double value)
public double getValue()
public void setTitle(TextGlyph title)
public TextGlyph getTitle()
public boolean equals(java.lang.Object ob)
equals
在类中 java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 SpecialGlyph
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常