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

java.lang.Object
  extended by org.zkoss.zkmax.zul.fusionchart.config.DefaultChartProperties
      extended by org.zkoss.zkmax.zul.fusionchart.config.ChartPropertiesMap
          extended by org.zkoss.zkmax.zul.fusionchart.config.GanttChartHeaderPropertiesMap
All Implemented Interfaces:
java.io.Serializable, ChartProperties, ChartInfoNotifier

public class GanttChartHeaderPropertiesMap
extends ChartPropertiesMap

Since:
6.0.1
Author:
jimmy
See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_MONTH_FORMAT
           
static int DEFAULT_PERIOD
           
 
Constructor Summary
GanttChartHeaderPropertiesMap()
           
 
Method Summary
 void clearAllHeaderProperties()
          Remove all of header property.
 ChartProperties createHeaderProperties(java.util.Date start, java.util.Date end)
          Create the header properties.
 ChartProperties createHeaderProperties(int index)
          Create the header properties.
 java.lang.String getDateFormater()
          Returns the dateformat for all of header.
 ChartProperties getHeaderProperties(java.util.Date start, java.util.Date end)
          Returns the header properties.
 ChartProperties getHeaderProperties(int index)
          Returns the header properties at the specified position.
static java.util.List<java.lang.Comparable<?>> getKey(java.util.Date start, java.util.Date end)
           
 int getPeriod()
          Returns the period used in header.
 boolean isShowDateHeader()
          Returns whether to show the date column.
 void removeHeaderProperties(java.util.Date start, java.util.Date end)
          Remove the header properties properties.
 void removeHeaderProperties(int index)
          Remove the header properties at the specified position.
 void setDateFormater(java.lang.String dateFormater)
          Sets the dateformat for all of header.
 void setPeriod(int period)
          Sets the period used in header.
 void setShowDateHeader(boolean showDateHeader)
          Sets whether to show the date column.
 
Methods inherited from class org.zkoss.zkmax.zul.fusionchart.config.ChartPropertiesMap
clearAllProperties, createProperties, getKeys, getProperties, removeProperties, size
 
Methods inherited from class org.zkoss.zkmax.zul.fusionchart.config.DefaultChartProperties
addAllProperties, addChartDataListener, addProperty, addPropertyListener, clear, fireEvent, fireEvent, getAllProperties, getProperty, removeChartDataListener, removeProperty, removePropertyListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MONTH_FORMAT

public static final java.lang.String DEFAULT_MONTH_FORMAT

DEFAULT_PERIOD

public static final int DEFAULT_PERIOD
See Also:
Constant Field Values
Constructor Detail

GanttChartHeaderPropertiesMap

public GanttChartHeaderPropertiesMap()
Method Detail

getDateFormater

public java.lang.String getDateFormater()
Returns the dateformat for all of header.

Returns:
String

setDateFormater

public void setDateFormater(java.lang.String dateFormater)
Sets the dateformat for all of header.

Parameters:
dateFormater -

setShowDateHeader

public void setShowDateHeader(boolean showDateHeader)
Sets whether to show the date column.

Gantt chart only.

Parameters:
showDateHeader -

isShowDateHeader

public boolean isShowDateHeader()
Returns whether to show the date column.

Gantt chart only.

Returns:
boolean

getPeriod

public int getPeriod()
Returns the period used in header. The value can be Calendar.DAY_OF_MONTH, Calendar.MONTH, Calendar.YEAR. default is Calendar.MONTH if not specified.


setPeriod

public void setPeriod(int period)
Sets the period used in header. The value can be Calendar.DAY_OF_MONTH, Calendar.MONTH, Calendar.YEAR.


createHeaderProperties

public ChartProperties createHeaderProperties(java.util.Date start,
                                              java.util.Date end)
Create the header properties.

Returns:
GanttChartCategoryProperties

createHeaderProperties

public ChartProperties createHeaderProperties(int index)
Create the header properties.

Returns:
GanttChartCategoryProperties

getHeaderProperties

public ChartProperties getHeaderProperties(java.util.Date start,
                                           java.util.Date end)
Returns the header properties.

Parameters:
start -
end -
Returns:
ChartProperties

getHeaderProperties

public ChartProperties getHeaderProperties(int index)
Returns the header properties at the specified position.

Parameters:
index -
Returns:
ChartProperties

removeHeaderProperties

public void removeHeaderProperties(java.util.Date start,
                                   java.util.Date end)
Remove the header properties properties.

Parameters:
start -
end -

removeHeaderProperties

public void removeHeaderProperties(int index)
Remove the header properties at the specified position.

Parameters:
index -

clearAllHeaderProperties

public void clearAllHeaderProperties()
Remove all of header property.


getKey

public static final java.util.List<java.lang.Comparable<?>> getKey(java.util.Date start,
                                                                   java.util.Date end)


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