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

java.lang.Object
  extended by org.zkoss.zkmax.zul.fusionchart.config.DefaultChartProperties
All Implemented Interfaces:
java.io.Serializable, ChartProperties, ChartInfoNotifier
Direct Known Subclasses:
ChartPropertiesMap, GanttChartCategoriesPropertiesList, GanttTableConfig.GanttRowPropertiesList, MilestonePropertiesList, TrendLinePropertiesList

public class DefaultChartProperties
extends java.lang.Object
implements java.io.Serializable, ChartInfoNotifier, ChartProperties

Since:
6.0.1
Author:
tony
See Also:
Serialized Form

Constructor Summary
DefaultChartProperties()
           
 
Method Summary
 void addAllProperties(java.util.Map<java.lang.String,java.lang.String> config)
          Add all properties.
 void addChartDataListener(ChartDataListener l)
           
 ChartProperties addProperty(java.lang.String key, java.lang.String value)
          Add the value of the specified property.
 void addPropertyListener(ChartInfoNotifier property)
           
 void clear()
          Clear all properties.
protected  void fireEvent(int type, java.lang.Comparable<java.lang.Object> series, java.lang.Object data)
          Fires a ChartDataEvent for all registered listener (thru addChartDataListener(org.zkoss.zul.event.ChartDataListener).
protected  void fireEvent(int type, java.lang.Object data)
           
 java.util.Map<java.lang.String,java.lang.String> getAllProperties()
          Returns all properties.
 java.lang.String getProperty(java.lang.String key)
          Returns the specified property.
 void removeChartDataListener(ChartDataListener l)
           
 ChartProperties removeProperty(java.lang.String key)
          Removes the specified property.
 void removePropertyListener(ChartInfoNotifier property)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultChartProperties

public DefaultChartProperties()
Method Detail

fireEvent

protected void fireEvent(int type,
                         java.lang.Comparable<java.lang.Object> series,
                         java.lang.Object data)
Fires a ChartDataEvent for all registered listener (thru addChartDataListener(org.zkoss.zul.event.ChartDataListener).

Note: you can invoke this method only in an event listener.


fireEvent

protected void fireEvent(int type,
                         java.lang.Object data)

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

addProperty

public ChartProperties addProperty(java.lang.String key,
                                   java.lang.String value)
Description copied from interface: ChartProperties
Add the value of the specified property.

Specified by:
addProperty in interface ChartProperties

removeProperty

public ChartProperties removeProperty(java.lang.String key)
Description copied from interface: ChartProperties
Removes the specified property.

Specified by:
removeProperty in interface ChartProperties

getProperty

public java.lang.String getProperty(java.lang.String key)
Description copied from interface: ChartProperties
Returns the specified property.

Specified by:
getProperty in interface ChartProperties

getAllProperties

public java.util.Map<java.lang.String,java.lang.String> getAllProperties()
Description copied from interface: ChartProperties
Returns all properties.

Specified by:
getAllProperties in interface ChartProperties

clear

public void clear()
Description copied from interface: ChartProperties
Clear all properties.

Specified by:
clear in interface ChartProperties

addAllProperties

public void addAllProperties(java.util.Map<java.lang.String,java.lang.String> config)
Description copied from interface: ChartProperties
Add all properties.

Specified by:
addAllProperties in interface ChartProperties


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