|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.chart.client.chart.series.Series<M>
M - the data type of the seriespublic abstract class Series<M>
Series is the abstract class containing the common logic to all chart series. This class implements the logic of handling mouse events, animating, hiding, showing all elements and returning the color of the series to be used as a legend item.
| Nested Class Summary | |
|---|---|
static class |
Series.LabelPosition
Enumeration used for labels positioned on the series. |
| Constructor Summary | |
|---|---|
Series()
Creates a series. |
|
| Method Summary | |
|---|---|
HandlerRegistration |
addSeriesHandler(SeriesHandler handler)
Adds a SeriesHandler handler for SeriesSelectionEvent,
SeriesItemOutEvent, SeriesItemOverEvent events. |
HandlerRegistration |
addSeriesItemOutHandler(SeriesItemOutEvent.SeriesItemOutHandler handler)
Adds a SeriesItemOutEvent.SeriesItemOutHandler handler for
SeriesItemOutEvent events. |
HandlerRegistration |
addSeriesItemOverHandler(SeriesItemOverEvent.SeriesItemOverHandler handler)
Adds a SeriesItemOverEvent.SeriesItemOverHandler handler for
SeriesItemOverEvent events. |
HandlerRegistration |
addSeriesSelectionHandler(SeriesSelectionEvent.SeriesSelectionHandler handler)
Adds a SeriesSelectionEvent.SeriesSelectionHandler handler for
SeriesSelectionEvent events. |
void |
calculateBBox(boolean gutter)
Calculates the bounding the box of the series and stores the result. |
void |
delete()
Removes all the sprites of the series from the surface. |
abstract void |
drawSeries()
Draws the series for the current chart. |
PreciseRectangle |
getBBox()
Returns the bounding box of the series. |
Chart<M> |
getChart()
Returns the chart that the series is attached. |
double[] |
getGutters()
Returns the axis insets of the series. |
SeriesHighlighter |
getHighlighter()
Return the SeriesHighlighter used by the series. |
SeriesLabelConfig<M> |
getLabelConfig()
Returns the configuration for labels on the series. |
Map<Integer,String> |
getLegendNames()
Returns the map of names used in the legend. |
List<String> |
getLegendTitles()
Returns the list of titles used in the legend of the series. |
SeriesRenderer<M> |
getRenderer()
Return the custom sprite renderer on the series. |
Color |
getStroke()
Return the stroke color of the series. |
double |
getStrokeWidth()
Return the stroke width of the series. |
ToolTip |
getToolTip()
Return the generated tool tip from the tool tip config. |
SeriesToolTipConfig<M> |
getToolTipConfig()
Returns the tooltip configuration. |
ValueProvider<M,? extends Number> |
getXField()
Returns the value provider for the x-axis of the series. |
Chart.Position |
getYAxisPosition()
Returns the y axis position of the series. |
abstract void |
hide(int yFieldIndex)
Hides the given y field index from the series. |
abstract void |
highlight(int index)
Highlights the series at the given index. |
abstract void |
highlightAll(int index)
Highlights all of the items in the series. |
boolean |
highlightedState()
Returns whether or not the series is actively highlighted. |
boolean |
isHighlighting()
Returns whether or not the series uses highlighting. |
boolean |
isShownInLegend()
Returns whether or not the series is shown in the legend. |
void |
onMouseDown(PrecisePoint point)
Method used when the series is clicked. |
int |
onMouseMove(PrecisePoint point)
Method used when the series is moused over. |
void |
onMouseOut(PrecisePoint point)
Method used when the mouse leaves the series. |
void |
removeToolTip()
Removes the components tooltip (if one exists). |
void |
setChart(Chart<M> chart)
Sets the chart that the series is attached. |
void |
setHighlighter(SeriesHighlighter highlighter)
Set the SeriesHighlighter used by the series. |
void |
setHighlighting(boolean highlighting)
Sets whether or not the series uses highlighting. |
void |
setLabelConfig(SeriesLabelConfig<M> labelConfig)
Sets the configuration for labels on the series. |
void |
setRenderer(SeriesRenderer<M> renderer)
Sets a custom sprite renderer on the series. |
void |
setShownInLegend(boolean showInLegend)
Sets whether or not the series is shown in the legend. |
void |
setStroke(Color stroke)
Sets the stroke color of the series. |
void |
setStrokeWidth(double strokeWidth)
Sets the stroke width of the series. |
void |
setToolTipConfig(SeriesToolTipConfig<M> config)
Sets the tooltip configuration. |
void |
setXField(ValueProvider<M,? extends Number> xField)
Sets the value provider for the x-axis of the series. |
void |
setYAxisPosition(Chart.Position yAxisPosition)
Sets the position of the y axis on the chart to be used by the series. |
abstract void |
show(int yFieldIndex)
Shows the given y field index from the series. |
abstract void |
unHighlight(int index)
Removes highlighting from the given index. |
abstract void |
unHighlightAll(int index)
UnHighlights all items in the series. |
abstract boolean |
visibleInLegend(int index)
Returns whether or not the given index is visible in legend. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Series()
| Method Detail |
|---|
public HandlerRegistration addSeriesHandler(SeriesHandler handler)
SeriesHandler.HasSeriesHandlersSeriesHandler handler for SeriesSelectionEvent,
SeriesItemOutEvent, SeriesItemOverEvent events.
addSeriesHandler in interface SeriesHandler.HasSeriesHandlershandler - the handler
public HandlerRegistration addSeriesItemOutHandler(SeriesItemOutEvent.SeriesItemOutHandler handler)
SeriesItemOutEvent.HasSeriesItemOutHandlersSeriesItemOutEvent.SeriesItemOutHandler handler for
SeriesItemOutEvent events.
addSeriesItemOutHandler in interface SeriesItemOutEvent.HasSeriesItemOutHandlershandler - the handler
public HandlerRegistration addSeriesItemOverHandler(SeriesItemOverEvent.SeriesItemOverHandler handler)
SeriesItemOverEvent.HasSeriesItemOverHandlersSeriesItemOverEvent.SeriesItemOverHandler handler for
SeriesItemOverEvent events.
addSeriesItemOverHandler in interface SeriesItemOverEvent.HasSeriesItemOverHandlershandler - the handler
public HandlerRegistration addSeriesSelectionHandler(SeriesSelectionEvent.SeriesSelectionHandler handler)
SeriesSelectionEvent.HasSeriesSelectionHandlersSeriesSelectionEvent.SeriesSelectionHandler handler for
SeriesSelectionEvent events.
addSeriesSelectionHandler in interface SeriesSelectionEvent.HasSeriesSelectionHandlershandler - the handler
public void calculateBBox(boolean gutter)
getBBox().
gutter - true if to use the series gutter in the calculationpublic void delete()
public abstract void drawSeries()
public PreciseRectangle getBBox()
public Chart<M> getChart()
public double[] getGutters()
public SeriesHighlighter getHighlighter()
SeriesHighlighter used by the series.
public SeriesLabelConfig<M> getLabelConfig()
public Map<Integer,String> getLegendNames()
public List<String> getLegendTitles()
public SeriesRenderer<M> getRenderer()
public Color getStroke()
public double getStrokeWidth()
public ToolTip getToolTip()
public SeriesToolTipConfig<M> getToolTipConfig()
public ValueProvider<M,? extends Number> getXField()
public Chart.Position getYAxisPosition()
public abstract void hide(int yFieldIndex)
yFieldIndex - the index of the y fieldpublic abstract void highlight(int index)
index - the index to be highlightedpublic abstract void highlightAll(int index)
index - the index of the seriespublic boolean highlightedState()
public boolean isHighlighting()
public boolean isShownInLegend()
public void onMouseDown(PrecisePoint point)
point - the point clickedpublic int onMouseMove(PrecisePoint point)
point - the point moused over
public void onMouseOut(PrecisePoint point)
point - the point leftpublic void removeToolTip()
public void setChart(Chart<M> chart)
chart - the chart that the series is attachedpublic void setHighlighter(SeriesHighlighter highlighter)
SeriesHighlighter used by the series.
highlighter - the series highlighterpublic void setHighlighting(boolean highlighting)
highlighting - whether or not the series uses highlightingpublic void setLabelConfig(SeriesLabelConfig<M> labelConfig)
labelConfig - the label configurationpublic void setRenderer(SeriesRenderer<M> renderer)
renderer - the rendererpublic void setShownInLegend(boolean showInLegend)
showInLegend - true if the series is shown in the legendpublic void setStroke(Color stroke)
stroke - the stroke color of the seriespublic void setStrokeWidth(double strokeWidth)
strokeWidth - the stroke width of the seriespublic void setToolTipConfig(SeriesToolTipConfig<M> config)
config - the tooltip configurationpublic void setXField(ValueProvider<M,? extends Number> xField)
xField - the value provider for the x-axis of the seriespublic void setYAxisPosition(Chart.Position yAxisPosition)
yAxisPosition - the position of the y axis on the chart to be used by
the seriespublic abstract void show(int yFieldIndex)
yFieldIndex - the index of the y fieldpublic abstract void unHighlight(int index)
index - the index to have its highlighting removedpublic abstract void unHighlightAll(int index)
index - the index of the seriespublic abstract boolean visibleInLegend(int index)
index - the index to determine visible
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||