com.extjs.gxt.charts.client.model.charts
Class BarChart

java.lang.Object
  extended by com.extjs.gxt.ui.client.data.BaseModelData
      extended by com.extjs.gxt.ui.client.data.BaseModel
          extended by com.extjs.gxt.charts.client.model.charts.ChartConfig
              extended by com.extjs.gxt.charts.client.model.charts.BarChart
All Implemented Interfaces:
ChangeEventSource, Model, ModelData, java.io.Serializable
Direct Known Subclasses:
CylinderBarChart, FilledBarChart

public class BarChart
extends ChartConfig

OFC Bar Chart.

See Also:
Serialized Form

Nested Class Summary
static class BarChart.Bar
           
static class BarChart.BarStyle
           
 
Field Summary
 
Fields inherited from class com.extjs.gxt.charts.client.model.charts.ChartConfig
dataProvider, model
 
Fields inherited from class com.extjs.gxt.ui.client.data.BaseModel
changeEventSupport
 
Fields inherited from class com.extjs.gxt.ui.client.data.BaseModelData
allowNestedValues, map
 
Fields inherited from interface com.extjs.gxt.ui.client.data.ChangeEventSource
Add, Remove, Update
 
Constructor Summary
  BarChart()
          Creates a new bar chart with normal style.
  BarChart(BarChart.BarStyle style)
          Creates a new bar chart.
protected BarChart(java.lang.String style)
           
 
Method Summary
 void addBars(BarChart.Bar... bars)
          Adds the bars.
 void addBars(java.util.List<BarChart.Bar> bars)
          Adds the bars.
 void addValues(java.util.List<java.lang.Number> values)
          Adds the values.
 void addValues(java.lang.Number... values)
          Adds the values.
 java.lang.String getColour()
          Gets the colour.
 void setColour(java.lang.String colour)
          Sets the colour in HTML hex format (#ffffff).
 void setDataProvider(BarDataProvider dataProvider)
          Sets the charts data provider.
 
Methods inherited from class com.extjs.gxt.charts.client.model.charts.ChartConfig
addChartListener, addNullValue, getChartListeners, getDataProvider, getFontSize, getModel, getText, getTooltip, getType, getValues, isEnableEvents, removeChartListener, setAnimateOnShow, setDataProvider, setEnableEvents, setFontSize, setKeys, setKeys, setModel, setText, setTooltip, setValues
 
Methods inherited from class com.extjs.gxt.ui.client.data.BaseModel
addChangeListener, addChangeListener, fireEvent, fireEvent, isSilent, notify, notifyPropertyChanged, remove, removeChangeListener, removeChangeListeners, set, setSilent
 
Methods inherited from class com.extjs.gxt.ui.client.data.BaseModelData
get, get, getProperties, getPropertyNames, isAllowNestedValues, setAllowNestedValues, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.extjs.gxt.ui.client.data.ModelData
get, getProperties, getPropertyNames
 

Constructor Detail

BarChart

public BarChart()
Creates a new bar chart with normal style.


BarChart

public BarChart(BarChart.BarStyle style)
Creates a new bar chart.

Parameters:
style - the style

BarChart

protected BarChart(java.lang.String style)
Method Detail

addBars

public void addBars(BarChart.Bar... bars)
Adds the bars.

Parameters:
bars - the bars

addBars

public void addBars(java.util.List<BarChart.Bar> bars)
Adds the bars.

Parameters:
bars - the bars

addValues

public void addValues(java.util.List<java.lang.Number> values)
Adds the values.

Parameters:
values - the values

addValues

public void addValues(java.lang.Number... values)
Adds the values.

Parameters:
values - the values

getColour

public java.lang.String getColour()
Gets the colour.

Returns:
the colour

setColour

public void setColour(java.lang.String colour)
Sets the colour in HTML hex format (#ffffff).

Parameters:
colour - the new colour

setDataProvider

public void setDataProvider(BarDataProvider dataProvider)
Sets the charts data provider.

Parameters:
dataProvider - the data provider