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

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.LineChart
All Implemented Interfaces:
HasRightAxis, ChangeEventSource, Model, ModelData, java.io.Serializable
Direct Known Subclasses:
AreaChart

public class LineChart
extends ChartConfig
implements HasRightAxis

OFC line chart

See Also:
Serialized Form

Nested Class Summary
static class LineChart.LineStyle
           
 
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
  LineChart()
          Creates a new line chart with normal style.
protected LineChart(java.lang.String type)
          Creates a new line chart.
 
Method Summary
 void addDots(BaseDot... dots)
          Adds the dots.
 void addDots(java.util.List<BaseDot> dots)
          Adds the dots.
 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()
          Returns the colour.
 BaseDot getDotStyle()
          Returns the dot style.
 LineChart.LineStyle getLineStyle()
          Returns the line style.
 java.lang.Integer getWidth()
          Returns the width.
 boolean isRightAxis()
          Returns true if the line chart should use right Y axis
 void setColour(java.lang.String colour)
          Sets the colour.
 void setDataProvider(LineDataProvider dataProvider)
          Sets the charts data provider.
 void setDotStyle(BaseDot dotStyle)
          Sets the dot style.
 void setLineStyle(LineChart.LineStyle lineStyle)
          Sets the line style.
 void setRightAxis(boolean rightAxis)
          Sets the line chart to use the right axis if true, or left if false
 void setWidth(java.lang.Integer width)
          Sets the width.
 
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

LineChart

public LineChart()
Creates a new line chart with normal style.


LineChart

protected LineChart(java.lang.String type)
Creates a new line chart.

Parameters:
type - the type
Method Detail

addDots

public void addDots(BaseDot... dots)
Adds the dots.

Parameters:
dots - the dots

addDots

public void addDots(java.util.List<BaseDot> dots)
Adds the dots.

Parameters:
dots - the dots

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()
Returns the colour.

Returns:
the colour

setDotStyle

public void setDotStyle(BaseDot dotStyle)
Sets the dot style.

Parameters:
dotStyle - the new dot style

setLineStyle

public void setLineStyle(LineChart.LineStyle lineStyle)
Sets the line style.

Parameters:
lineStyle - the new line style

getDotStyle

public BaseDot getDotStyle()
Returns the dot style.

Returns:
the dot style

getLineStyle

public LineChart.LineStyle getLineStyle()
Returns the line style.

Returns:
the line style

isRightAxis

public boolean isRightAxis()
Returns true if the line chart should use right Y axis

Specified by:
isRightAxis in interface HasRightAxis
Returns:
true if use of right axis is enabled.

getWidth

public java.lang.Integer getWidth()
Returns the width.

Returns:
the width

setColour

public void setColour(java.lang.String colour)
Sets the colour.

Parameters:
colour - the new colour

setDataProvider

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

Parameters:
dataProvider - the data provider

setRightAxis

public void setRightAxis(boolean rightAxis)
Sets the line chart to use the right axis if true, or left if false

Specified by:
setRightAxis in interface HasRightAxis
Parameters:
rightAxis - true or false

setWidth

public void setWidth(java.lang.Integer width)
Sets the width.

Parameters:
width - the new width