org.zkoss.zkmax.zul.fusionchart.config
Class AbstractChartConfig

java.lang.Object
  extended by org.zkoss.zkmax.zul.fusionchart.config.AbstractChartConfig
All Implemented Interfaces:
ChartConfig, ChartInfoNotifier
Direct Known Subclasses:
CategoryChartConfig, GanttChartConfig, GanttTableConfig, SingleValueCategoryChartConfig

public class AbstractChartConfig
extends java.lang.Object
implements ChartInfoNotifier, ChartConfig

The Fusionchart config lets you control a variety of functional elements on the chart. For example, you can opt to show/hide data labels, data values, y-axis values. You can also set chart limits and extended properties.

All property of chart, please refer to the following reference document.
Pie 2D Chart.
Pie 3D Chart.
Funnel Chart.
Multi-series Column 2D Chart.
Multi-series Column 3D Chart.
Multi-series Bar 2D Chart.
Stacked Column 2D Chart.
Stacked Column 3D Chart.
Stacked Bar 2D Chart.
Multi-Series Line 2D Chart.
Multi-Series Area 2D Chart.
Stacked Area 2D Chart.
Multi-Series Column 2D Line Dual Y Chart.
Multi-Series Column 3D Line Dual Y Chart.

Since:
6.0.1
Author:
jimmy

Field Summary
protected  ChartProperties props
           
 
Constructor Summary
AbstractChartConfig()
           
 
Method Summary
 void addChartDataListener(ChartDataListener l)
           
 void addPropertyListener(ChartInfoNotifier property)
           
 int getBgAlpha()
          Returns the alpha (opacity) for the background.
 java.lang.String getBgColor()
          Returns the background color for the chart.
 ChartProperties getChartProperties()
           
protected  ChartProperties initChartProperties()
          Might be overwritten in other constructor
 boolean isAnimation()
          Returns whether to perform animation.
 void removeChartDataListener(ChartDataListener l)
           
 void removePropertyListener(ChartInfoNotifier property)
           
 void setAnimation(boolean animation)
          Sets whether to perform animation.
 void setBgAlpha(int bgAlpha)
          Sets the alpha (opacity) for the background.
 void setBgColor(java.lang.String bgColor)
          Sets the background color for the chart.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

props

protected ChartProperties props
Constructor Detail

AbstractChartConfig

public AbstractChartConfig()
Method Detail

initChartProperties

protected ChartProperties initChartProperties()
Might be overwritten in other constructor


isAnimation

public boolean isAnimation()
Returns whether to perform animation.


setAnimation

public void setAnimation(boolean animation)
Sets whether to perform animation.


getBgColor

public java.lang.String getBgColor()
Returns the background color for the chart. You can set any hex color code as the value of this attribute. To specify a gradient as background color, separate the hex color codes of each color in the gradient using comma.
Example: FF5904,FFFFFF.


setBgColor

public void setBgColor(java.lang.String bgColor)
Sets the background color for the chart. You can set any hex color code as the value of this attribute. To specify a gradient as background color, separate the hex color codes of each color in the gradient using comma.
Example: FF5904,FFFFFF.


getBgAlpha

public int getBgAlpha()
Returns the alpha (opacity) for the background.


setBgAlpha

public void setBgAlpha(int bgAlpha)
Sets the alpha (opacity) for the background.


addChartDataListener

public void addChartDataListener(ChartDataListener l)
Specified by:
addChartDataListener in interface ChartInfoNotifier

removeChartDataListener

public void removeChartDataListener(ChartDataListener l)
Specified by:
removeChartDataListener in interface ChartInfoNotifier

addPropertyListener

public void addPropertyListener(ChartInfoNotifier property)
Specified by:
addPropertyListener in interface ChartInfoNotifier

removePropertyListener

public void removePropertyListener(ChartInfoNotifier property)
Specified by:
removePropertyListener in interface ChartInfoNotifier

getChartProperties

public ChartProperties getChartProperties()
Specified by:
getChartProperties in interface ChartConfig


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo