public abstract class Plot extends GeneralInfo implements BasePlot
限定符和类型 | 字段和说明 |
---|---|
protected double |
combinedSize |
static int |
DEFAULT_SIZE |
protected static double |
MARKERSIZE |
static java.lang.String |
SECOND_AXIS |
protected java.lang.String |
secondShowUnit |
protected java.lang.String |
showUnit |
static java.lang.String |
X_AXIS |
static java.lang.String |
XML_TAG |
static java.lang.String |
Y_AXIS |
构造器和说明 |
---|
Plot() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
accept(java.lang.Class<? extends Plot> obClass)
判断图表类型是否是obClass
|
protected void |
addSeries2PlotGlyph(PlotGlyph plotGlyph,
ChartData chartData) |
protected void |
addSeriesByIndex(int from,
int to,
PlotGlyph plotGlyph,
ChartData cd) |
protected void |
addSeriesByIndex(int from,
int to,
PlotGlyph plotGlyph,
ChartData cd,
boolean excludeNull) |
protected void |
addSeriesByIndexWithoutNull(int from,
int to,
PlotGlyph plotGlyph,
ChartData cd) |
boolean |
anyChartAdvancedInteractionUse() |
void |
buidExecuteSequenceList(java.util.List list,
Calculator calculator)
预先计算聚合图表 表间公式顺序.
|
void |
buildGenealogyAndCheckSheetExecuteSequence(Calculator calculator,
java.util.List silList,
java.util.List bilList)
处理sheet&报表块 之间的计算顺序
|
void |
clearConditionAttrAndRenewLegend(Plot oldPlot)
切换选中图表的时候, 重置属性.
|
java.lang.Object |
clone()
克隆
|
protected void |
createDataLabel4DataPointWithCondition(DataPoint dataPoint,
ConditionCollection conditionCollection) |
protected void |
createDataLabel4EverySeries(PlotGlyph plotGlyph) |
protected void |
createDataLabelWithDataPoint4Map(DataPoint dataPoint,
DataPoint4Map dataPoint4Map) |
protected DataPoint |
createDataPoint() |
protected void |
createDataPointLabel(PlotGlyph plotGlyph)
createDataLabel for DataPoint
|
protected DataSeries |
createDataSeries(int seriesIndex) |
DataSheetGlyph |
createDataSheetGlyph(PlotGlyph plotGlyph)
创建数据表对应的Glyph
|
LegendGlyph |
createLegendGlyph(PlotGlyph plotGlyph)
kunsnat: 股价图.
|
LegendItem[] |
createLegendItems(PlotGlyph plotGlyph)
kunsnat: 甘特图不同, 还有气泡图.
|
LegendItem[] |
createLegendItems(PlotGlyph plotGlyph,
int seriesSize)
将趋势线也加入到图例中.
|
ChartData |
createNullChartData()
创建空值数据.
|
abstract PlotGlyph |
createPlotGlyph(ChartData chartData)
根据图表数据创建Plot对应的PlotGlyph
|
protected void |
dealColorCondition(LineMarkerIcon itemIcon,
DataSeries dataSeries,
java.awt.Color[] colors) |
protected void |
dealCondition(LineMarkerIcon itemIcon,
DataSeries dataSeries,
java.awt.Color[] colors) |
void |
dealFormula(Calculator calculator)
需要覆盖所有带坐标轴的Plot 处理条件显示中的公式.
|
protected void |
dealLineCondition(LineMarkerIcon itemIcon,
DataSeries dataSeries,
java.awt.Color[] colors) |
protected void |
dealNullPointAndCategoryNum(NormalChartData chartData,
int seriesIndex,
int categoryIndex,
DataPoint dataPoint) |
abstract ChartData |
defaultChartData()
返回图表在设计展示时 默认的图表数据
|
ChartData |
defaultSecondMoreCate()
图表设计器中, 默认展示的2层分类数据.
|
ChartData |
defaultThirdMoreCate()
图表设计器中, 默认展示的3层分类数据.
|
void |
dependence(CalculatorProvider ca,
java.util.List<java.lang.String> result) |
boolean |
equals(java.lang.Object ob)
比较和Object是否相等
|
DataSeriesCondition |
exsitMarkerType()
判断是否包含 标记类型
|
java.lang.String[] |
getAlertLinePaneTitle() |
int |
getAutoRefreshPerSecond()
返回自动刷新数据的时间
|
Axis |
getAxis(int i)
返回序号对应的坐标轴
|
Axis |
getAxis(java.lang.String type)
根据AxisGlyph中的type拿到对应plot的axis *
|
TextAttr |
getCategoryNameTextAttr()
得到分类名称字体设置
|
double |
getCombinedSize()
获取作为被组合的图的大小
|
ConditionCollection |
getConditionCollection()
返回条件显示
|
DataProcessor |
getDataProcessor() |
DataProcessor |
getDataProcessor4Definition() |
DataSheet |
getDataSheet()
返回数据表
|
int |
getDetailType()
具体得类型
|
NameJavaScriptGroup |
getHotHyperLink()
返回热点链接
|
AttrContents |
getHotTooltipStyle()
返回热点提示内容
|
java.util.HashMap<java.lang.String,BaseFormula> |
getHyperLinkEditorMap()
得到当前图表超链参数下拉框中有的选项
|
int[] |
getInteractivePaneArrayThatNotSurpport()
返回热点提示界面中, 不支持的功能界面数组
|
Legend |
getLegend()
返回绘图区推理
|
protected LineMarkerIcon |
getLegendMarkerIcon(DataSeries dataSeries,
java.awt.Color[] colors)
根据序号,从SeriesCollection中生成LineMarkerIcon,
LinePlot, CustomPlot, XYPlot和StockPlot, RadarPlot, BubblePlot不同.
|
protected LineMarkerIcon |
getLegendMarkerIcon4Line(DataSeries dataSeries,
java.awt.Color[] colors) |
double |
getMaxValueFromData(ChartData cd,
ChartAxisPosition leftOrRight)
默认系列0开始, 返回图表数据中的最大值
|
double |
getMaxValueFromData(ChartData chartData,
int seriesStart,
int seriesCount,
ChartAxisPosition leftOrRight)
从指定系列开始, 返回 图表数据的最大值
|
double |
getMinValueFromData(ChartData cd,
boolean isLog,
ChartAxisPosition leftOrRight)
从数据中得到最小值, 默认从系列0开始.
|
java.lang.String |
getPlotDetailType()
返回plot的类型
|
AttrFillStyle |
getPlotFillStyle()
返回填充颜色风格
|
abstract java.lang.String |
getPlotID()
用于识别图表类型的ID,不能用class对象,因为像柱形图和条形图是一个class对象
|
java.lang.String |
getPlotSmallIconPath()
返回具体图表的地址,目前用于图表设计器的图表切换 ,默认返回二维柱形图小图标
|
int |
getPlotStyle()
返回风格
|
ChartTypeValueCollection |
getPlotType()
返回属于哪一种图表类型
|
Axis |
getSecondAxis()
返回第二坐标轴
|
protected ConditionCollection |
getSeriesIndexConditionCollection(int seriesIndex)
以前可能是 组合图根据不同的序号 对应的系列类型 取不同的Collection
|
TextAttr |
getUnitTextAttr()
得到单位的字体设置
|
TextAttr |
getValueTextAttr()
得到值的字体设置
|
Axis |
getxAxis()
返回x轴方向的坐标轴
|
Axis |
getyAxis()
返回y轴方向的坐标轴
|
protected boolean |
hasEffect(ConditionAttr conditionAttr) |
HyperLinkPara[] |
hyperLinkParas() |
void |
install4PlotGlyph(PlotGlyph plotGlyph,
ChartData chartData)
初始化PlotGlyph中的属性, 和Plot同步
|
boolean |
is3D()
判断是否为3D图表.
|
boolean |
isExsitLineStyle()
判断是否包含 折线类型.
|
boolean |
isGisKindLabel()
返回标签是否是gis地图这种有地址这样的信息的
|
boolean |
isHaveAxis()
界面用到的 先判断下是否有坐标轴, 是否需要加载坐标轴界面
地图 饼图 仪表盘 三种类型没有坐标轴
|
boolean |
isInteractiveAxisTooltip()
返回是否显示坐标轴交互提示.
|
boolean |
isMapKindLabel()
返回标签是否是地图这种有地址这样的信息的
|
boolean |
isMapPlot()
是否是地图
|
boolean |
isMeterPlot()
是否是仪表盘
|
boolean |
isNeedRenameHyperLinkPane()
返回超链面板中是否需要重新命名
|
boolean |
isNullValueBreak()
返回空值时是否断开
|
boolean |
isOnlyIntervalBackground()
设置是否 只显示间隔背景 (默认false)
|
boolean |
isSeriesDragEnable()
可以进行系列拖拽
|
boolean |
isShowAllDataPointLabel()
标签显示所有内容
|
boolean |
isShowCateName()
是否显示分类名称
|
boolean |
isSupport3D()
是否支持3D
|
boolean |
isSupportAddress4Gis()
返回是否支持提示地址.
|
boolean |
isSupportAnimate()
是否支持动态 展示图表
|
boolean |
isSupportAutoRefresh()
是否支持自动刷新数据
|
protected boolean |
isSupportAxisLabelWrapShow() |
boolean |
isSupportAxisLineStyle()
是否支持坐标轴轴样式
|
boolean |
isSupportAxisReverse()
返回是否支持 分类轴/值轴逆序.默认不支持
|
boolean |
isSupportAxisTip()
返回是否支持 坐标轴提示.
|
boolean |
isSupportBorder()
是否支持默认边框
|
boolean |
isSupportCate()
是否支持分类数据
|
boolean |
isSupportCategoryFilter()
是否支持分类过滤
|
boolean |
isSupportDataLabelAttr()
股价图默认不支持标签属性.
|
boolean |
isSupportDataSeriesAttr()
甘特图没有系列属性*
|
boolean |
isSupportDataSeriesCondition()
仪表盘不支持数据点 高亮显示 && 股价图也不支持, 改为固定的格式*
|
boolean |
isSupportDataSheet()
是否支持数据表.
|
boolean |
isSupportDelimiter()
标签是否支持分隔符
|
boolean |
isSupportIntervalBackground()
返回 是否支持间隔背景
|
boolean |
isSupportLeadLine()
是否支持牵引线
|
boolean |
isSupportLegend()
是否支持图例
|
boolean |
isSupportMoreCate()
是否支持多分类坐标轴.
|
boolean |
isSupportPlotBackground()
是否支持绘图区背景
|
boolean |
isSupportSeriesDrag()
是否支持系列拖拽
|
boolean |
isSupportSeriesFilter()
是否直接系列过滤
|
boolean |
isSupportTooltipInInteractivePane()
返回是否在界面上 支持 热点提示.
|
boolean |
isSupportTooltipSeriesType()
数据点提示是否支持显示多系列值
|
boolean |
isSupportTrendLine()
是否支持趋势线 返回false 默认不支持
|
boolean |
isSupportValuePercent()
是否支持 值百分比
|
boolean |
isSupportZoomCategoryAxis()
是否支持分类轴的缩放.
|
boolean |
isSupportZoomDirection()
是否支持缩放方向设置
|
boolean |
isUseSecondAxis()
判断条件中是否用第三坐标轴
|
boolean |
isValidPlot() |
boolean |
match4GUI(Plot plot)
界面切换时 比较两个Plot是否相等
|
abstract boolean |
matchPlotType(Plot newPlot)
在选择类型界面时 比较大致的Plot类型.
|
void |
modFormulaString(MOD_COLUMN_ROW mod)
在报表行列变动时 公式的联动.
|
boolean |
needAnalysisLinePane()
判断是否需要加载分析线型界面
|
protected void |
readerAttr(XMLableReader reader) |
protected void |
readPlotXML(XMLableReader reader) |
void |
readXML(XMLableReader reader)
读取XML属性
|
void |
resetNullLegendAttr()
仪表盘, 股价图 没有图例!
|
void |
setAutoRefreshPerSecond(int autoRefreshPerSecond)
设置自动刷新数据的时间second
|
void |
setCategoryNameTextAttr(TextAttr attr) |
void |
setCombinedSize(double size)
设置作为组合图的大小
|
void |
setConditionCollection(ConditionCollection conditionCollection)
设置条件显示
|
void |
setDataProcessor(DataProcessor dataProcessor) |
void |
setDataSheet(DataSheet dataSheet) |
void |
setHotHyperLink(NameJavaScriptGroup hotHyperLink)
设置热点链接
|
void |
setHotTooltipStyle(AttrContents hotTooltipStyle)
设置热点提示内容格式
|
void |
setInteractiveAxisTooltip(boolean interactiveAxisTooltip)
设置是否显示坐标轴交互提示
|
void |
setLegend(Legend legend)
设置图例
|
void |
setNullValueBreak(boolean isNullValueBreak)
设置空值时 是否断开
|
void |
setPlotFillStyle(AttrFillStyle plotFillStyle)
设置填充颜色风格
|
void |
setPlotStyle(int plotStyle)
设置风格
|
void |
setSecondAxis(Axis axis)
设置图表的第二坐标轴, 目前是只有组合图提供了第二轴
|
void |
setSecondShowUnit(java.lang.String secondShowUnit) |
void |
setSeriesDragEnable(boolean seriesDragEnable)
设置是否可以进行系列拖拽
|
void |
setShowCateName(boolean isShow)
是否显示分类名称
|
void |
setShowUnit(java.lang.String showUnit) |
void |
setUnitTextAttr(TextAttr attr) |
void |
setValueTextAttr(TextAttr attr) |
void |
setxAxis(Axis axis)
设置x轴方向的坐标轴, 一般情况是在水平矩形下方(甘特图例外, 在水平矩形上方)
|
void |
setyAxis(Axis axis)
设置y轴方向(一般都是在左侧)的坐标轴
|
void |
writeXML(XMLPrintWriter writer)
输出XML属性
|
changedAttrToJSONObject, changeStyleAttrAlpha, changeStyleAttrBackground, changeStyleAttrBorder, changeStyleAttrColor, changeStyleAttrContents, changeStyleAttrLineStyle, getAlpha, getBackground, getBorderColor, getBorderStyle, getRoundRadius, isRoundBorder, isShadow, readGeneralInfoXML, setAlpha, setAttrAlpha, setBackground, setBorderColor, setBorderStyle, setRoundBorder, setRoundRadius, setShadow, toJSONObject, writeGeneralInfoXML
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPlotName
public static final java.lang.String XML_TAG
public static final java.lang.String X_AXIS
public static final java.lang.String Y_AXIS
public static final java.lang.String SECOND_AXIS
public static final int DEFAULT_SIZE
protected double combinedSize
protected static final double MARKERSIZE
protected java.lang.String showUnit
protected java.lang.String secondShowUnit
public DataProcessor getDataProcessor()
public DataProcessor getDataProcessor4Definition()
public void setDataProcessor(DataProcessor dataProcessor)
public void setShowUnit(java.lang.String showUnit)
public void setSecondShowUnit(java.lang.String secondShowUnit)
public void setLegend(Legend legend)
public Legend getLegend()
public void setDataSheet(DataSheet dataSheet)
public DataSheet getDataSheet()
public void setHotHyperLink(NameJavaScriptGroup hotHyperLink)
public NameJavaScriptGroup getHotHyperLink()
public void setPlotStyle(int plotStyle)
public int getPlotStyle()
public void setPlotFillStyle(AttrFillStyle plotFillStyle)
public AttrFillStyle getPlotFillStyle()
public void setHotTooltipStyle(AttrContents hotTooltipStyle)
public AttrContents getHotTooltipStyle()
public void setInteractiveAxisTooltip(boolean interactiveAxisTooltip)
public boolean isInteractiveAxisTooltip()
public void setNullValueBreak(boolean isNullValueBreak)
public boolean isNullValueBreak()
public void setConditionCollection(ConditionCollection conditionCollection)
public ConditionCollection getConditionCollection()
public java.lang.String getPlotDetailType()
public abstract PlotGlyph createPlotGlyph(ChartData chartData)
chartData
- 图表相关的数据public abstract java.lang.String getPlotID()
public boolean isSupportTrendLine()
public boolean isSupportAxisTip()
public boolean isSupportAxisReverse()
public boolean needAnalysisLinePane()
public boolean isSupportTooltipInInteractivePane()
public boolean isSupportIntervalBackground()
public boolean isOnlyIntervalBackground()
public boolean isSupportBorder()
public void install4PlotGlyph(PlotGlyph plotGlyph, ChartData chartData)
plotGlyph
- 绘图区GlyphchartData
- 图表数据.public LegendGlyph createLegendGlyph(PlotGlyph plotGlyph)
plotGlyph
- 绘图区public DataSheetGlyph createDataSheetGlyph(PlotGlyph plotGlyph)
plotGlyph
- 绘图区public LegendItem[] createLegendItems(PlotGlyph plotGlyph)
plotGlyph
- 绘图区public LegendItem[] createLegendItems(PlotGlyph plotGlyph, int seriesSize)
plotGlyph
- 绘图区seriesSize
- 系列个数public void dependence(CalculatorProvider ca, java.util.List<java.lang.String> result)
public void dealFormula(Calculator calculator)
calculator
- 公式计算器public void buidExecuteSequenceList(java.util.List list, Calculator calculator)
calculator
- 公式计算器list
- 表间变动listpublic void buildGenealogyAndCheckSheetExecuteSequence(Calculator calculator, java.util.List silList, java.util.List bilList)
public void modFormulaString(MOD_COLUMN_ROW mod)
mod
- 行列变动protected void dealCondition(LineMarkerIcon itemIcon, DataSeries dataSeries, java.awt.Color[] colors)
protected void dealColorCondition(LineMarkerIcon itemIcon, DataSeries dataSeries, java.awt.Color[] colors)
protected LineMarkerIcon getLegendMarkerIcon(DataSeries dataSeries, java.awt.Color[] colors)
protected LineMarkerIcon getLegendMarkerIcon4Line(DataSeries dataSeries, java.awt.Color[] colors)
protected void dealLineCondition(LineMarkerIcon itemIcon, DataSeries dataSeries, java.awt.Color[] colors)
public ChartData createNullChartData()
protected DataPoint createDataPoint()
protected DataSeries createDataSeries(int seriesIndex)
protected void addSeriesByIndex(int from, int to, PlotGlyph plotGlyph, ChartData cd, boolean excludeNull)
protected void dealNullPointAndCategoryNum(NormalChartData chartData, int seriesIndex, int categoryIndex, DataPoint dataPoint)
protected void addSeriesByIndexWithoutNull(int from, int to, PlotGlyph plotGlyph, ChartData cd)
protected void addSeriesByIndex(int from, int to, PlotGlyph plotGlyph, ChartData cd)
protected void createDataPointLabel(PlotGlyph plotGlyph)
plotGlyph
- protected void createDataLabel4EverySeries(PlotGlyph plotGlyph)
protected ConditionCollection getSeriesIndexConditionCollection(int seriesIndex)
protected void createDataLabel4DataPointWithCondition(DataPoint dataPoint, ConditionCollection conditionCollection)
protected void createDataLabelWithDataPoint4Map(DataPoint dataPoint, DataPoint4Map dataPoint4Map)
public double getCombinedSize()
public void setCombinedSize(double size)
size
- 大小public DataSeriesCondition exsitMarkerType()
public boolean isExsitLineStyle()
public double getMaxValueFromData(ChartData cd, ChartAxisPosition leftOrRight)
cd
- 图表数据leftOrRight
- 左侧或右侧坐标轴public boolean isUseSecondAxis()
public double getMaxValueFromData(ChartData chartData, int seriesStart, int seriesCount, ChartAxisPosition leftOrRight)
chartData
- 图表数据seriesStart
- 系列开始的值seriesCount
- 系列的个数leftOrRight
- 左侧或右侧轴public double getMinValueFromData(ChartData cd, boolean isLog, ChartAxisPosition leftOrRight)
cd
- 图表数据isLog
- 是否为对数leftOrRight
- 左侧或者右侧坐标轴public boolean match4GUI(Plot plot)
plot
- 绘图public abstract boolean matchPlotType(Plot newPlot)
newPlot
- 新plotpublic void clearConditionAttrAndRenewLegend(Plot oldPlot)
oldPlot
- 旧Plotpublic void resetNullLegendAttr()
public boolean isHaveAxis()
public Axis getAxis(int i)
public Axis getAxis(java.lang.String type)
public Axis getxAxis()
public void setxAxis(Axis axis)
axis
- x轴方向的坐标轴public Axis getyAxis()
public void setyAxis(Axis axis)
axis
- y轴方向的坐标轴public Axis getSecondAxis()
public void setSecondAxis(Axis axis)
axis
- 第二坐标轴public void setSeriesDragEnable(boolean seriesDragEnable)
seriesDragEnable
- 是否可以进行系列拖拽public boolean isSeriesDragEnable()
public java.lang.String[] getAlertLinePaneTitle()
public boolean isSupportDataSheet()
public boolean isSupportMoreCate()
public boolean isSupportCate()
public boolean isSupportDataSeriesAttr()
public boolean isSupportDataLabelAttr()
public boolean isSupportDataSeriesCondition()
public boolean isSupport3D()
public boolean isSupportAnimate()
public boolean isSupportSeriesDrag()
public boolean isSupportAutoRefresh()
public boolean is3D()
public boolean isSupportZoomCategoryAxis()
public boolean isSupportZoomDirection()
public boolean isSupportCategoryFilter()
public boolean isSupportSeriesFilter()
public boolean isSupportLeadLine()
public boolean isSupportValuePercent()
public boolean isSupportAddress4Gis()
public void setAutoRefreshPerSecond(int autoRefreshPerSecond)
autoRefreshPerSecond
- 自动刷新的时间 -1 表示不自动刷新public int getAutoRefreshPerSecond()
public abstract ChartData defaultChartData()
public ChartData defaultSecondMoreCate()
public ChartData defaultThirdMoreCate()
public int[] getInteractivePaneArrayThatNotSurpport()
public void readXML(XMLableReader reader)
GeneralInfo
readXML
在接口中 XMLReadable
readXML
在类中 GeneralInfo
reader
- XML读取器XMLableReader
protected void readPlotXML(XMLableReader reader)
protected void readerAttr(XMLableReader reader)
public void writeXML(XMLPrintWriter writer)
GeneralInfo
writeXML
在接口中 XMLWriter
writeXML
在类中 GeneralInfo
writer
- XML属性输出public java.lang.Object clone() throws java.lang.CloneNotSupportedException
GeneralInfo
clone
在接口中 FCloneable
clone
在类中 GeneralInfo
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public boolean equals(java.lang.Object ob)
GeneralInfo
equals
在类中 GeneralInfo
ob
- 用 于比较的Objectpublic boolean isMeterPlot()
public TextAttr getValueTextAttr()
public TextAttr getUnitTextAttr()
public TextAttr getCategoryNameTextAttr()
public void setValueTextAttr(TextAttr attr)
public void setUnitTextAttr(TextAttr attr)
public void setCategoryNameTextAttr(TextAttr attr)
public void setShowCateName(boolean isShow)
isShow
- public boolean isValidPlot()
public boolean isShowCateName()
public java.lang.String getPlotSmallIconPath()
getPlotSmallIconPath
在接口中 BasePlot
public ChartTypeValueCollection getPlotType()
public int getDetailType()
protected boolean isSupportAxisLabelWrapShow()
public boolean isSupportTooltipSeriesType()
public boolean isSupportDelimiter()
public boolean isMapPlot()
public boolean isShowAllDataPointLabel()
public boolean isSupportPlotBackground()
public boolean isMapKindLabel()
public boolean isGisKindLabel()
public boolean isSupportLegend()
public boolean isSupportAxisLineStyle()
public boolean accept(java.lang.Class<? extends Plot> obClass)
obClass
- 传入对象public boolean isNeedRenameHyperLinkPane()
isNeedRenameHyperLinkPane
在接口中 BasePlot
public HyperLinkPara[] hyperLinkParas()
public java.util.HashMap<java.lang.String,BaseFormula> getHyperLinkEditorMap()
getHyperLinkEditorMap
在接口中 BasePlot
public boolean anyChartAdvancedInteractionUse()
protected boolean hasEffect(ConditionAttr conditionAttr)