|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sencha.gxt.widget.core.client.Component
com.sencha.gxt.chart.client.draw.DrawComponent
com.sencha.gxt.chart.client.chart.Chart<M>
M - the data type to be used by this Chartpublic class Chart<M>
The Chart package provides the capability to visualize data.
| Nested Class Summary | |
|---|---|
static class |
Chart.Position
Enumeration used for items positioned on the chart. |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
Chart()
Creates a chart with default width and height. |
|
Chart(int width,
int height)
Creates a chart with the given width and height. |
|
| Method Summary | |
|---|---|
void |
addAxis(Axis<M,?> axis)
Adds an axis to the chart. |
void |
addSeries(Series<M> series)
Adds a Series to the chart. |
void |
bindStore(ListStore<M> store)
Binds the store to the chart so that any store events will automatically redraw the chart. |
void |
calculateMaximumGutter()
Calculates the maximum gutter of the chart's series. |
int |
getAnimationDuration()
Returns the duration of animations on the chart. |
EasingFunction |
getAnimationEasing()
Returns the EasingFunction used by animations on the chart. |
Map<Chart.Position,Axis<M,?>> |
getAxes()
Returns the map of axes currently added to the chart. |
Axis<M,?> |
getAxis(Chart.Position position)
Returns the Axis at the given Chart.Position. |
PreciseRectangle |
getBBox()
Returns the bounding box of the chart. |
ListStore<M> |
getCurrentStore()
Returns the store currently being used by the chart. |
double |
getDefaultInsets()
Returns the initial insets of the chart. |
Legend<M> |
getLegend()
Returns the legend of the chart. |
double[] |
getMaxGutter()
Returns maximum gutter of the series in the chart. |
List<Series<M>> |
getSeries()
Returns all of the series attached to the chart. |
Series<M> |
getSeries(int index)
Returns the series attached to the chart at the given index. |
ListStore<M> |
getStore()
Returns the data store bound to the chart. |
PreciseRectangle |
getZoom()
Returns the zoom of the chart. |
boolean |
hasShadows()
Returns whether or not the chart has shadows. |
boolean |
isResizing()
Returns whether or not the chart is resizing. |
void |
onMouseDown(Event event)
Method used when the chart is clicked. |
void |
onMouseMove(Event event)
Method used when the mouse moves over the chart. |
void |
onMouseOut(Event event)
Method used when the mouse leaves the chart. |
void |
onResize(int width,
int height)
|
void |
redrawChart()
Redraws all elements of the chart. |
void |
redrawChartForced()
Redraws all elements of the chart immediatley. |
Axis<M,?> |
removeAxis(Axis<M,?> axis)
Removes the Axis from the chart. |
Axis<M,?> |
removeAxis(Chart.Position position)
Removes the Axis at the given Chart.Position from the chart. |
void |
removeLegend()
Removes the Legend currently attached legend from the chart. |
boolean |
removeSeries(int index)
Removes the given Series from the chart. |
boolean |
removeSeries(Series<M> series)
Removes the given Series from the chart. |
void |
setAnimationDuration(int animationDuration)
Sets the duration of animations on the chart. |
void |
setAnimationEasing(EasingFunction animationEasing)
Sets the EasingFunction used by animations on the chart. |
void |
setChartShadow(boolean shadow)
Sets whether or not the chart has shadows. |
void |
setDefaultInsets(double defaultInsets)
Sets the initial insets of the chart. |
void |
setLegend(Legend<M> legend)
Sets the legend of the chart. |
void |
setPixelSize(int width,
int height)
|
void |
setStore(ListStore<M> store)
Sets the data store bound to the chart. |
void |
setSubstore(ListStore<M> substore)
Sets a temporary substore for the chart. |
void |
setZoom(PreciseRectangle zoom)
Sets the zoom of the chart. |
| Methods inherited from class com.sencha.gxt.chart.client.draw.DrawComponent |
|---|
addGradient, addSprite, addSpriteHandler, addSpriteOutHandler, addSpriteOverHandler, addSpriteSelectionHandler, getBackground, getSurface, isAnimated, isViewBox, onBrowserEvent, redrawSurface, redrawSurfaceForced, remove, renderSprite, setAnimated, setBackground, setViewBox, sinkBrowserEvents |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Chart()
public Chart(int width,
int height)
width - the width of the chartheight - the height of the chart| Method Detail |
|---|
public void addAxis(Axis<M,?> axis)
Chart.Position can be
added.
axis - the axis to be addedpublic void addSeries(Series<M> series)
Series to the chart.
series - the series to be addedpublic void bindStore(ListStore<M> store)
store - the store to be boundpublic void calculateMaximumGutter()
public int getAnimationDuration()
public EasingFunction getAnimationEasing()
EasingFunction used by animations on the chart.
public Map<Chart.Position,Axis<M,?>> getAxes()
public Axis<M,?> getAxis(Chart.Position position)
Axis at the given Chart.Position.
position - the position of the axis
public PreciseRectangle getBBox()
public ListStore<M> getCurrentStore()
public double getDefaultInsets()
public Legend<M> getLegend()
public double[] getMaxGutter()
public List<Series<M>> getSeries()
public Series<M> getSeries(int index)
index - the index of the series
public ListStore<M> getStore()
public PreciseRectangle getZoom()
public boolean hasShadows()
public boolean isResizing()
public void onMouseDown(Event event)
onMouseDown in class DrawComponentevent - the mouse eventpublic void onMouseMove(Event event)
onMouseMove in class DrawComponentevent - the mouse eventpublic void onMouseOut(Event event)
onMouseOut in class DrawComponentevent - the mouse event
public void onResize(int width,
int height)
public void redrawChart()
public void redrawChartForced()
public Axis<M,?> removeAxis(Axis<M,?> axis)
Axis from the chart.
axis - the axis to remove
public Axis<M,?> removeAxis(Chart.Position position)
Axis at the given Chart.Position from the chart.
position - the position of the axis to remove
public void removeLegend()
Legend currently attached legend from the chart.
public boolean removeSeries(int index)
Series from the chart.
index - the index of the series to be removed
public boolean removeSeries(Series<M> series)
Series from the chart.
series - the series to be removed
public void setAnimationDuration(int animationDuration)
animationDuration - the duration of animations on the chartpublic void setAnimationEasing(EasingFunction animationEasing)
EasingFunction used by animations on the chart.
animationEasing - the easing function used by animations on the chartpublic void setChartShadow(boolean shadow)
shadow - true if shadowspublic void setDefaultInsets(double defaultInsets)
defaultInsets - the initial insets of the chartpublic void setLegend(Legend<M> legend)
legend - the legend of the chart
public void setPixelSize(int width,
int height)
setPixelSize in class Componentpublic void setStore(ListStore<M> store)
store - the data storepublic void setSubstore(ListStore<M> substore)
TimeAxis.
substore - substore for the chartpublic void setZoom(PreciseRectangle zoom)
zoom - the zoom of the chart
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||