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

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.Shape
All Implemented Interfaces:
ChangeEventSource, Model, ModelData, java.io.Serializable

public class Shape
extends ChartConfig

OFC shape (polygon drawn within a chart)

See Also:
Serialized Form

Nested Class Summary
static class Shape.Point
          Shape chart data type.
 
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
Shape()
          Creates a new shape.
 
Method Summary
 void addPoint(java.lang.Number x, java.lang.Number y)
          Adds the point.
 void addPoints(java.util.Collection<Shape.Point> points)
          Adds the points.
 void addPoints(Shape.Point... points)
          Adds the points.
 java.lang.Float getAlpha()
          Returns the alpha value.
 java.lang.String getColour()
          Returns the colour.
 void setAlpha(java.lang.Float alpha)
          Sets the alpha value.
 void setColour(java.lang.String colour)
          Sets the colour in HTML hex format (#ffffff).
 
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

Shape

public Shape()
Creates a new shape.

Method Detail

addPoint

public void addPoint(java.lang.Number x,
                     java.lang.Number y)
Adds the point.

Parameters:
x - the x
y - the y

addPoints

public void addPoints(java.util.Collection<Shape.Point> points)
Adds the points.

Parameters:
points - the points

addPoints

public void addPoints(Shape.Point... points)
Adds the points.

Parameters:
points - the points

getAlpha

public java.lang.Float getAlpha()
Returns the alpha value.

Returns:
the alpha value

getColour

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

Returns:
the colour

setAlpha

public void setAlpha(java.lang.Float alpha)
Sets the alpha value.

Parameters:
alpha - the alpha value

setColour

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

Parameters:
colour - the new colour