public class VanChartDataPoint extends DataPoint
限定符和类型 | 字段和说明 |
---|---|
protected AttrBackground |
color |
protected static int |
DEFAULT_SIZE |
protected AttrLabel |
defaultAttrLabel |
protected java.awt.Color |
defaultColor |
protected AttrLabel |
label |
构造器和说明 |
---|
VanChartDataPoint() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
addAttrNodeJSON(JSONObject js,
Repository repo,
ChartWebPara para) |
protected void |
addBorderToJSON(JSONObject js) |
protected void |
addCate2SeriesXYJSON(JSONObject js) |
protected void |
addDataSheetToJSON(JSONObject js,
Repository repo) |
void |
addDrawImp(Glyph glyph) |
void |
addLabelBounds(java.awt.geom.Rectangle2D labelBounds) |
protected void |
addLabelToJSON(JSONObject js,
Repository repo) |
protected void |
addNormalXYJSON(JSONObject js) |
protected void |
addOtherAttrToJSON(JSONObject js,
Repository repo,
ChartWebPara para)
处理一些特有点的属性
|
protected void |
addTooltipToJSON(JSONObject js,
Repository repo) |
protected void |
addXYJSON(JSONObject js) |
boolean |
checkSameCategoryName() |
void |
clearDrawImp() |
void |
clearLabelBounds() |
protected void |
drawAutoFontLabelText(TextGlyph textGlyph,
java.awt.Graphics g,
int resolution) |
protected void |
drawFontLabelText(TextGlyph textGlyph,
java.awt.Graphics g,
int resolution) |
void |
drawLabel(java.awt.Graphics g,
int resolution)
画出系列点的标签
|
protected void |
drawLabelContent(TextGlyph textGlyph,
java.awt.Graphics g,
int resolution) |
AttrAlpha |
getAlpha() |
VanChartAttrBubble |
getAttrBubble() |
VanChartAttrMarker |
getAttrMarker() |
AttrBorder |
getBorder() |
int |
getCategoryNum() |
AttrBackground |
getColor() |
java.awt.Color |
getDataPointBackgroundColor() |
AttrLabel |
getDefaultAttrLabel() |
java.awt.Color |
getDefaultColor() |
double |
getDoubleMapValue() |
protected java.lang.String |
getFirstLineString() |
GanttData |
getGanttData() |
AttrSeriesImageBackground |
getImageBackground() |
FRFont |
getInSideCateAndSeriesFont() |
FRFont |
getInSideValueAndPercentFont() |
AttrLabel |
getLabel()
返回该数据点的 标签属性
|
java.awt.geom.GeneralPath |
getLeadLine()
返回饼图系列点的牵引线
|
java.lang.String |
getMapAreaName() |
MapAreaNameValue<java.lang.String,java.lang.Double,java.lang.Double,java.lang.Object> |
getMapAreaNameValue() |
double |
getMapLatitude() |
double |
getMapLongitude() |
java.lang.Object |
getMapValue() |
protected java.awt.Color |
getMarkerBackgroundColor()
由於散點圖的顏色涉及到漸變色,所以處理好的顏色放在drawImpl中
要想獲取和點一樣的顏色,應該優先取drawImpl中的顏色
如果以圖片為背景,則不取漸變色
|
protected java.lang.String |
getOriginStringSizeValue4JSON() |
FRFont |
getOutSideCateAndSeriesFont() |
FRFont |
getOutSideValueAndPercentFont() |
protected java.lang.String |
getSecondLineString() |
double |
getSizeValue() |
AttrTooltip |
getTooltip()
返回该数据点的 提示属性
|
boolean |
isOutside()
是否是柱子外
|
boolean |
isSizeIsNull()
返回值是否为空值
|
boolean |
isUseCustomFont()
是否是自定义样式
|
void |
removeLabelBounds(java.awt.geom.Rectangle2D rectangle2D) |
void |
setAlpha(AttrAlpha alpha) |
void |
setAttrBubble(VanChartAttrBubble attrBubble) |
void |
setAttrMarker(VanChartAttrMarker attrMarker) |
void |
setAttrNode(AttrNode node) |
void |
setBorder(AttrBorder border) |
void |
setCategoryNum(int categoryNum) |
void |
setColor(AttrBackground color) |
void |
setDataSheet(DataSeriesCondition dataSheet) |
void |
setDefaultAttrLabel(AttrLabel defaultAttrLabel) |
void |
setDefaultColor(java.awt.Color color) |
void |
setEffect(AttrEffect effect) |
void |
setFloatColor(AttrFloatColor floatColor) |
void |
setGanttData(GanttData ganttData) |
void |
setImageBackground(AttrSeriesImageBackground imageBackground) |
void |
setLabel(AttrLabel label)
设置该数据点的 标签属性
|
void |
setLeadLine(java.awt.geom.GeneralPath leadLine)
设置饼图系列点的牵引线.
|
void |
setMapAreaName(java.lang.String areaName) |
void |
setMapAreaNameValue(MapAreaNameValue<java.lang.String,java.lang.Double,java.lang.Double,java.lang.Object> mapAreaNameValue) |
void |
setMapValue(java.lang.Object value) |
void |
setRangeLegendColor(java.awt.Color rangeLegendColor) |
void |
setSizeIsNull(boolean sizeIsNull) |
void |
setSizeValue(java.lang.Number number) |
void |
setTooltip(AttrTooltip tooltip)
设置该数据点的 提示属性
|
JSONObject |
toJSONObject(Repository repo,
ChartWebPara para)
转为json数据
|
clone, containsPara, createDataPointDrillUpHyperLink, createDataPointHotHyperLink, createHotTooltip, draw, equals, evalWithCondition, getCategoryIndex, getCategoryName, getCategoryOriginalName, getDataLabel, getDataPointStyle, getDrawImpl, getDrillUpLink, getDrillUpParas4Hyperlink, getHyperLinkJason, getImageMapAreaTag, getOriginStringValue4JSON, getParameters4Labels, getParas4Hyperlink, getPercentParaString, getPercentValue, getPureParameters4Labels, getSecondCate, getSeriesIndex, getSeriesName, getSeriesOriginalName, getShape, getThirdCate, getType, getValue, getValueByUnit, getValueParaString, isValueIsInexistence, isValueIsNull, putDataPointConditionAttr, putDataPointConditionAttr, putDataPointConditionAttrWidthDefault, putLabelSeriesConditionAttr, putValueData, setCategoryIndex, setCategoryName, setCategoryOriginalName, setDataLabel, setDataPointStyle, setDrawImpl, setDrillUpLink, setHyperlink, setHyperLinkJason, setIndividualLabelText, setPercentValue, setSecondCate, setSeriesIndex, setSeriesName, setSeriesOriginalName, setShape, setThirdCate, setTooltip, setValue, setValueByUnit, setValueIsInexistence, setValueIsNull, toJSONObject, toOldResult, toResult, toResult, toVanJSONObject, toVanJSONObject
selectableChildren
protected static final int DEFAULT_SIZE
protected AttrLabel label
protected AttrBackground color
protected AttrLabel defaultAttrLabel
protected java.awt.Color defaultColor
public int getCategoryNum()
public void setCategoryNum(int categoryNum)
public GanttData getGanttData()
public void setGanttData(GanttData ganttData)
public void setRangeLegendColor(java.awt.Color rangeLegendColor)
public MapAreaNameValue<java.lang.String,java.lang.Double,java.lang.Double,java.lang.Object> getMapAreaNameValue()
public java.lang.String getMapAreaName()
public void setMapAreaName(java.lang.String areaName)
public void setMapValue(java.lang.Object value)
public double getMapLongitude()
public double getMapLatitude()
public java.lang.Object getMapValue()
public double getDoubleMapValue()
public void setMapAreaNameValue(MapAreaNameValue<java.lang.String,java.lang.Double,java.lang.Double,java.lang.Object> mapAreaNameValue)
public VanChartAttrBubble getAttrBubble()
public void setAttrBubble(VanChartAttrBubble attrBubble)
public double getSizeValue()
public void setSizeValue(java.lang.Number number)
protected java.lang.String getOriginStringSizeValue4JSON()
public boolean isSizeIsNull()
public void setSizeIsNull(boolean sizeIsNull)
public void setLeadLine(java.awt.geom.GeneralPath leadLine)
public java.awt.geom.GeneralPath getLeadLine()
public void setAttrMarker(VanChartAttrMarker attrMarker)
public VanChartAttrMarker getAttrMarker()
public void setImageBackground(AttrSeriesImageBackground imageBackground)
public AttrSeriesImageBackground getImageBackground()
public void setAttrNode(AttrNode node)
public void setLabel(AttrLabel label)
label
- 标签属性public AttrLabel getLabel()
public void setDataSheet(DataSeriesCondition dataSheet)
public void setTooltip(AttrTooltip tooltip)
tooltip
- 提示属性public AttrTooltip getTooltip()
public void setAlpha(AttrAlpha alpha)
public void setEffect(AttrEffect effect)
public void setBorder(AttrBorder border)
public void setColor(AttrBackground color)
public AttrBackground getColor()
public void setFloatColor(AttrFloatColor floatColor)
public void setDefaultAttrLabel(AttrLabel defaultAttrLabel)
public AttrLabel getDefaultAttrLabel()
public void setDefaultColor(java.awt.Color color)
public java.awt.Color getDefaultColor()
public AttrBorder getBorder()
public AttrAlpha getAlpha()
public void addDrawImp(Glyph glyph)
public void addLabelBounds(java.awt.geom.Rectangle2D labelBounds)
public void clearDrawImp()
public void clearLabelBounds()
public void removeLabelBounds(java.awt.geom.Rectangle2D rectangle2D)
public void drawLabel(java.awt.Graphics g, int resolution)
public boolean isUseCustomFont()
protected void drawFontLabelText(TextGlyph textGlyph, java.awt.Graphics g, int resolution)
protected void drawAutoFontLabelText(TextGlyph textGlyph, java.awt.Graphics g, int resolution)
protected void drawLabelContent(TextGlyph textGlyph, java.awt.Graphics g, int resolution)
protected java.lang.String getFirstLineString()
protected java.lang.String getSecondLineString()
public boolean isOutside()
public FRFont getInSideCateAndSeriesFont()
public FRFont getInSideValueAndPercentFont()
public FRFont getOutSideCateAndSeriesFont()
public FRFont getOutSideValueAndPercentFont()
public java.awt.Color getDataPointBackgroundColor()
protected java.awt.Color getMarkerBackgroundColor()
public boolean checkSameCategoryName()
public JSONObject toJSONObject(Repository repo, ChartWebPara para) throws JSONException
toJSONObject
在类中 DataPoint
repo
- 请求JSONException
- 抛错protected void addOtherAttrToJSON(JSONObject js, Repository repo, ChartWebPara para) throws JSONException
js
- repo
- para
- JSONException
protected void addAttrNodeJSON(JSONObject js, Repository repo, ChartWebPara para) throws JSONException
JSONException
protected void addBorderToJSON(JSONObject js) throws JSONException
JSONException
protected void addTooltipToJSON(JSONObject js, Repository repo) throws JSONException
JSONException
protected void addLabelToJSON(JSONObject js, Repository repo) throws JSONException
JSONException
protected void addDataSheetToJSON(JSONObject js, Repository repo) throws JSONException
JSONException
protected void addXYJSON(JSONObject js) throws JSONException
JSONException
protected void addCate2SeriesXYJSON(JSONObject js) throws JSONException
JSONException
protected void addNormalXYJSON(JSONObject js) throws JSONException
JSONException