Class ChartWithScale
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Panel
-
- com.google.gwt.user.client.ui.SimplePanel
-
- org.dashbuilder.renderer.chartjs.lib.Chart
-
- org.dashbuilder.renderer.chartjs.lib.ChartWithTooltip
-
- org.dashbuilder.renderer.chartjs.lib.ChartWithScale
-
- All Implemented Interfaces:
com.google.gwt.event.dom.client.HasClickHandlers,com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.AcceptsOneWidget,com.google.gwt.user.client.ui.HasOneWidget,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.HasWidgets,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget,com.google.gwt.user.client.ui.IsWidget,Iterable<com.google.gwt.user.client.ui.Widget>,HasAnimationCompleteHandlers,HasDataSelectionEventHandlers,HasAnimation,HasScale,HasTooltip,IsResponsive
- Direct Known Subclasses:
BarChart,DoughnutChart,LineChart,PieChart,PolarAreaChart,RadarChart
public abstract class ChartWithScale extends ChartWithTooltip implements HasScale
-
-
Field Summary
-
Fields inherited from class org.dashbuilder.renderer.chartjs.lib.Chart
callbackList, nativeCanvas, options, style
-
Fields inherited from interface org.dashbuilder.renderer.chartjs.lib.options.HasAnimation
ANIMATION, ANIMATION_EASING, ANIMATION_STEPS
-
Fields inherited from interface org.dashbuilder.renderer.chartjs.lib.options.HasScale
SCALEBEGINATZERO, SCALEFONTCOLOR, SCALEFONTFAMILY, SCALEFONTSIZE, SCALEFONTSTYLE, SCALEINTEGERSONLY, SCALELABEL, SCALELINECOLOR, SCALELINEWIDTH, SCALEOVERRIDE, SCALESHOWLABELS, SCALESTARTVALUE, SCALESTEPS, SCALESTEPWIDTH, SHOWSCALE
-
Fields inherited from interface org.dashbuilder.renderer.chartjs.lib.options.HasTooltip
MULTITOOLTIPTEMPLATE, SHOWTOOLTIPS, TOOLTIPCARETSIZE, TOOLTIPCORNERRADIUS, TOOLTIPEVENTS, TOOLTIPFILLCOLOR, TOOLTIPFONTCOLOR, TOOLTIPFONTFAMILY, TOOLTIPFONTSIZE, TOOLTIPFONTSTYLE, TOOLTIPTEMPLATE, TOOLTIPTITLEFONTCOLOR, TOOLTIPTITLEFONTFAMILY, TOOLTIPTITLEFONTSIZE, TOOLTIPTITLEFONTSTYLE, TOOLTIPXOFFSET, TOOLTIPXPADDING, TOOLTIPYPADDING
-
Fields inherited from interface org.dashbuilder.renderer.chartjs.lib.options.IsResponsive
MAINTAIN_ASPECT_RATIO, RESPONSIVE
-
-
Constructor Summary
Constructors Constructor Description ChartWithScale()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetScaleBeginAtZero(boolean beginAtZero)Default falsevoidsetScaleFontColor(String color)Default #666voidsetScaleFontFamily(String fontFamily)Default "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"voidsetScaleFontSize(int size)Default 12voidsetScaleFontStyle(com.google.gwt.dom.client.Style.FontStyle style)Default normalvoidsetScaleIntegersOnly(boolean only)Default truevoidsetScaleLabel(String template)Default"<%=value%>"voidsetScaleLineColor(String color)voidsetScaleLineWidth(int pixelWidth)Default 1voidsetScaleOverride(boolean override)Default falsevoidsetScaleShowLabels(boolean showLabels)truevoidsetScaleStartValue(double startValue)DoublevoidsetScaleSteps(int steps)Scale steps Default nullvoidsetScaleStepWidth(int width)Default nullvoidshowScale(boolean scale)Default true-
Methods inherited from class org.dashbuilder.renderer.chartjs.lib.ChartWithTooltip
setCornerRadius, setMultiTooltipTemplate, setTooltipCaretSize, setTooltipEvents, setTooltipFillColor, setTooltipFontColor, setTooltipFontFamily, setTooltipFontSize, setTooltipFontStyle, setTooltipTemplate, setTooltipTitleFontColor, setTooltipTitleFontFamily, setTooltipTitleFontSize, setTooltipTitleFontStyle, setTooltipXOffset, setTooltipXPadding, setTooltipYPadding, showTooltips
-
Methods inherited from class org.dashbuilder.renderer.chartjs.lib.Chart
addAnimationCallback, addAnimationCompleteHandler, addClickHandler, addDataSelectionHandler, constructOptions, draw, getNativeCanvas, getNativeElement, getSnapshot, onAnimationComplete, onAnimationProgress, onAttach, processEvents, registerNativeAnimationHandlers, reload, setAnimationEnabled, setAnimationSteps, setAnimationType, setChartStyle, setHeight, setLegendTemplate, setMaintainAspectRatio, setNativeCanvas, setPixelHeight, setPixelWidth, setResponsive, setWidth, update
-
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
showScale
public void showScale(boolean scale)
Description copied from interface:HasScaleDefault true
-
setScaleOverride
public void setScaleOverride(boolean override)
Description copied from interface:HasScaleDefault false- Specified by:
setScaleOverridein interfaceHasScale
-
setScaleSteps
public void setScaleSteps(int steps)
Description copied from interface:HasScaleScale steps Default null- Specified by:
setScaleStepsin interfaceHasScale
-
setScaleStepWidth
public void setScaleStepWidth(int width)
Description copied from interface:HasScaleDefault null- Specified by:
setScaleStepWidthin interfaceHasScale
-
setScaleStartValue
public void setScaleStartValue(double startValue)
Description copied from interface:HasScaleDouble- Specified by:
setScaleStartValuein interfaceHasScale
-
setScaleLineColor
public void setScaleLineColor(String color)
- Specified by:
setScaleLineColorin interfaceHasScale
-
setScaleLineWidth
public void setScaleLineWidth(int pixelWidth)
Description copied from interface:HasScaleDefault 1- Specified by:
setScaleLineWidthin interfaceHasScale
-
setScaleShowLabels
public void setScaleShowLabels(boolean showLabels)
Description copied from interface:HasScaletrue- Specified by:
setScaleShowLabelsin interfaceHasScale
-
setScaleLabel
public void setScaleLabel(String template)
Description copied from interface:HasScaleDefault"<%=value%>"- Specified by:
setScaleLabelin interfaceHasScale
-
setScaleIntegersOnly
public void setScaleIntegersOnly(boolean only)
Description copied from interface:HasScaleDefault true- Specified by:
setScaleIntegersOnlyin interfaceHasScale
-
setScaleBeginAtZero
public void setScaleBeginAtZero(boolean beginAtZero)
Description copied from interface:HasScaleDefault false- Specified by:
setScaleBeginAtZeroin interfaceHasScale
-
setScaleFontFamily
public void setScaleFontFamily(String fontFamily)
Description copied from interface:HasScaleDefault "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"- Specified by:
setScaleFontFamilyin interfaceHasScale
-
setScaleFontSize
public void setScaleFontSize(int size)
Description copied from interface:HasScaleDefault 12- Specified by:
setScaleFontSizein interfaceHasScale
-
setScaleFontStyle
public void setScaleFontStyle(com.google.gwt.dom.client.Style.FontStyle style)
Description copied from interface:HasScaleDefault normal- Specified by:
setScaleFontStylein interfaceHasScale
-
setScaleFontColor
public void setScaleFontColor(String color)
Description copied from interface:HasScaleDefault #666- Specified by:
setScaleFontColorin interfaceHasScale
-
-