public class DataSheetGlyph extends RectangleGlyph
限定符和类型 | 字段和说明 |
---|---|
protected double |
arrowValue |
protected double |
cateRowCout |
protected double |
crossValue |
protected java.text.Format |
format |
protected static double |
MAX_CATE_LINE |
protected static double |
PADDING_GAP |
protected double |
seriesRowHeight |
protected double |
unitLength |
bounds, visible
构造器和说明 |
---|
DataSheetGlyph() |
DataSheetGlyph(PlotGlyph plotGlyph) |
DataSheetGlyph(PlotGlyph plotGlyph,
LegendItem[] legendItem) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
_initSeriesRowHeightAndEndLegendWidth(ChartGlyph chartGlyph,
int resolution) |
protected void |
_newLine(java.awt.Graphics g,
double x,
double y,
double x1,
double y1) |
java.lang.Object |
clone() |
void |
doLayout(PlotGlyph plotGlyph)
数据表的布局方法调用
|
void |
draw(java.awt.Graphics g,
int resolution)
数据表在设计器上的画法
|
protected void |
drawLabel4Category(java.awt.Graphics g,
int resolution) |
protected void |
drawLabel4DataPoint(java.awt.Graphics g,
int resolution) |
boolean |
equals(java.lang.Object ob) |
double |
getBeginX() |
int |
getCategoryCount()
返回系列的数量
|
protected double |
getCateRowHeight() |
protected TextAttr |
getCateTextAttr() |
protected int |
getCharNumber(TextAttr textAttr,
int maxWidth,
int resolution) |
FRFont |
getFont()
获取数据表的显示字体
|
java.text.Format |
getFormat()
获取format
|
double |
getHeight() |
protected FRFont |
getLegendFont() |
java.awt.geom.Dimension2D |
getPrefferedSize(ChartGlyph chartGlyph,
int resolution)
根据系列计算Glyph的合适大小
|
protected DataSeries |
getSeries(int index)
返回指定位置上的系列
|
int |
getSeriesSize()
系列的数量
|
java.util.Iterator |
selectableChildren()
选中的列表.
|
void |
setArrowValue(double arrowValue) |
void |
setBeginX(double beginX) |
void |
setCrossValue(double crossValue) |
void |
setDataWithoutLegendItems(PlotGlyph plotGlyph)
初始化数据
|
void |
setFont(FRFont font)
数据表的显示字体
|
void |
setFormat(java.text.Format format)
设置format
|
void |
setHeight(double height) |
void |
setUnitLength(double unitLength) |
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
JSONObject |
toVanJSONObject(Repository repo) |
getBounds, getOutline4Fill, getShape, isInvisible, isVisible, setBounds, setVisible
dealCondition, dealConditionWithSeriesColor, drawOnlyBorder, drawWithOutBorder, getAlpha, getBackground, getBorderColor, getBorderStyle, getGeneralInfo, getRoundRadius, is3DIE6, isRoundBorder, isShadow, paint, paintBackground, putBackgroundJSON, putPlotBackgroundJSON, setAlpha, setBackground, setBorderColor, setBorderStyle, setGeneralInfo, setRoundBorder
protected static final double PADDING_GAP
protected static final double MAX_CATE_LINE
protected java.text.Format format
protected double unitLength
protected double seriesRowHeight
protected double crossValue
protected double arrowValue
protected double cateRowCout
public DataSheetGlyph()
public DataSheetGlyph(PlotGlyph plotGlyph)
public DataSheetGlyph(PlotGlyph plotGlyph, LegendItem[] legendItem)
public int getSeriesSize()
protected DataSeries getSeries(int index)
index
- 要返回的系列的索引public int getCategoryCount()
public java.util.Iterator selectableChildren()
public void setFont(FRFont font)
font
- 数据表格上的字体public FRFont getFont()
public void setFormat(java.text.Format format)
public java.text.Format getFormat()
public double getBeginX()
public void setBeginX(double beginX)
public double getHeight()
public void setHeight(double height)
public void setCrossValue(double crossValue)
public void setArrowValue(double arrowValue)
public void setUnitLength(double unitLength)
public java.awt.geom.Dimension2D getPrefferedSize(ChartGlyph chartGlyph, int resolution)
resolution
- 分辨率protected void _initSeriesRowHeightAndEndLegendWidth(ChartGlyph chartGlyph, int resolution)
protected int getCharNumber(TextAttr textAttr, int maxWidth, int resolution)
public void setDataWithoutLegendItems(PlotGlyph plotGlyph)
plotGlyph
- 图像public void doLayout(PlotGlyph plotGlyph)
plotGlyph
- 绘图public void draw(java.awt.Graphics g, int resolution)
draw
在接口中 Glyph
draw
在类中 GeneralGlyph
resolution
- 分辨率g
- 图形对象protected void _newLine(java.awt.Graphics g, double x, double y, double x1, double y1)
protected FRFont getLegendFont()
protected TextAttr getCateTextAttr()
protected double getCateRowHeight()
protected void drawLabel4Category(java.awt.Graphics g, int resolution)
protected void drawLabel4DataPoint(java.awt.Graphics g, int resolution)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 RectangleGlyph
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public boolean equals(java.lang.Object ob)
equals
在类中 RectangleGlyph
public JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject
在接口中 Glyph
toJSONObject
在类中 RectangleGlyph
repo
- 请求JSONException
- 抛错public JSONObject toVanJSONObject(Repository repo) throws JSONException
toVanJSONObject
在类中 GeneralGlyph
JSONException