public class TrendLineGlyph extends FoldLine
构造器和说明 |
---|
TrendLineGlyph(ChartEquationType equationType,
int square,
int average) |
限定符和类型 | 方法和说明 |
---|---|
void |
drawShape(java.awt.geom.Rectangle2D bounds)
根据矩形的宽度, 按照像素推移画出趋势线.
|
void |
fitting(double[] xVal,
double[] yVal)
趋势线拟合, 根据点集合进行计算.
|
Equation |
getEquation() |
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
java.lang.String |
toString()
返回拟合公式的字符串
|
draw, equals, getGeneralPath, getLineStyleInfo, getShape, setGeneralPath, setLineStyleInfo
clone, selectableChildren
public TrendLineGlyph(ChartEquationType equationType, int square, int average)
public Equation getEquation()
public void drawShape(java.awt.geom.Rectangle2D bounds)
bounds
- 宽度范围.public void fitting(double[] xVal, double[] yVal)
xVal
- x点的集合.yVal
- y点的集合.public java.lang.String toString()
toString
在类中 java.lang.Object
public JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject
在接口中 Glyph
toJSONObject
在类中 FoldLine
repo
- 请求JSONException
- 抛错