public class Chart extends Widget<HTMLDivElement,Chart>
Modifier and Type | Class and Description |
---|---|
class |
Chart.SVGChart |
contextMenu, contextMenuHandlerRegistration, currentHeight, currentWidth, enabled, NATIVE_CONTEXT_MENU_HANDLER
Constructor and Description |
---|
Chart() |
Modifier and Type | Method and Description |
---|---|
Chart |
add(Widget<? extends Element<?>,?> widget) |
Serie |
createSerie() |
protected void |
draw() |
ChartTitle |
getChartTitle() |
double |
getMarginBottom() |
List<Serie> |
getSeries() |
List<Serie> |
getSeries(Axis axis) |
SerieType |
getType() |
XAxis |
getXAxis() |
XAxis |
getXAxis(int i) |
YAxis |
getYAxis() |
YAxis |
getYAxis(int i) |
Chart |
setAreaPlotOptions(AreaPlotOptions areaPlotOptions) |
Chart |
setBackgroundColor(Color backgroundColor)
Set the background color.
|
Chart |
setChartSubtitle(ChartSubtitle chartSubtitle) |
Chart |
setChartTitle(ChartTitle chartTitle) |
Chart |
setCredits(Credits credits) |
Chart |
setLegend(Legend legend) |
Chart |
setMarginBottom(double marginBottom) |
Chart |
setSize(double width,
double height)
Sets the object's size.
|
Chart |
setType(SerieType type) |
void |
update(Axis axis) |
addActionHandler, addClassName, addDoubleActionHandler, addDoubleTapHandler, addDropTarget, addEventHandler, addEventHandler, addResizeHandler, addStyleName, addTapHandler, addTouchHoldHandler, canDropTargetAccept, cast, clear, clearBackgroundColor, clearDropTargets, clearTextColor, ensureHandlers, fireEvent, fireEvent, fireResizeEvent, getAbsoluteLeft, getAbsoluteTop, getAncestor, getChildren, getChildrenCount, getComputedStyle, getContextMenu, getContextMenuHandler, getDeepestWidget, getDragSource, getDropTargetList, getElement, getFirstChild, getId, getLastChild, getNextSibling, getNextSibling, getOffsetHeight, getOffsetWidth, getParent, getScrollLeft, getScrollTop, getStyle, hasClassName, hasFocus, insert, isAttached, isDropTarget, isEnabled, isInEventThread, onAttach, onDetach, remove, removeClassName, removeDropTarget, removeStyleName, setClassName, setContextMenu, setDragSource, setDropTarget, setEnabled, setHeight, setHeight, setHeight, setId, setLeft, setLeftAndTop, setMaxHeight, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setMinWidth, setParent, setPixelSize, setScrollLeft, setScrollTop, setTextAlign, setTextColor, setTop, setWidth, setWidth, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancelMeasure, cancelMutation, measureAsSoonAsPossible, mutateAsSoonAsPossible, mutateAsSoonAsPossible, scheduleMeasure, scheduleMutation
addAttachHandler
addDetachHandler
addTransitionEndHandler, addTransitionEndHandler
addMouseDownHandler, addMouseDownHandler
addMouseMoveHandler, addMouseMoveHandler
addMouseOutHandler, addMouseOutHandler
addMouseOverHandler, addMouseOverHandler
addMouseUpHandler, addMouseUpHandler
addWheelHandler, addWheelHandler
addClickHandler, addClickHandler
addDoubleClickHandler, addDoubleClickHandler
addContextMenuHandler, addContextMenuHandler
addTouchStartHandler, addTouchStartHandler
addTouchMoveHandler, addTouchMoveHandler
addTouchForceChangeHandler, addTouchForceChangeHandler
addTouchEndHandler, addTouchEndHandler
addTouchCancelHandler, addTouchCancelHandler
addTouchHoldHandler
addTapHandler
addDoubleTapHandler
addKeyDownHandler, addKeyDownHandler
addKeyUpHandler, addKeyUpHandler
addKeyPressHandler, addKeyPressHandler
addScrollHandler, addScrollHandler
addAnimationStartHandler, addAnimationStartHandler
addAnimationIterationHandler, addAnimationIterationHandler
addAnimationEndHandler, addAnimationEndHandler
addActionHandler
addDoubleActionHandler
protected void draw()
public SerieType getType()
public double getMarginBottom()
public Chart setMarginBottom(double marginBottom)
public ChartTitle getChartTitle()
public Chart setChartTitle(ChartTitle chartTitle)
public Chart setChartSubtitle(ChartSubtitle chartSubtitle)
public Chart setAreaPlotOptions(AreaPlotOptions areaPlotOptions)
public XAxis getXAxis()
public XAxis getXAxis(int i)
public YAxis getYAxis()
public YAxis getYAxis(int i)
public Chart setSize(double width, double height)
setSize
in class Widget<HTMLDivElement,Chart>
width
- the object's new width, in CSS units (e.g. "10px", "1em")height
- the object's new height, in CSS units (e.g. "10px", "1em")public void update(Axis axis)
public Serie createSerie()
public Chart add(Widget<? extends Element<?>,?> widget)
add
in class Widget<HTMLDivElement,Chart>
public Chart setBackgroundColor(Color backgroundColor)
Widget
Widget.clearBackgroundColor()
, the theme's background color will be used.setBackgroundColor
in class Widget<HTMLDivElement,Chart>
backgroundColor
- the background color to setCopyright © 2018 Xalys. All rights reserved.