public class Chart
extends org.apache.wicket.markup.html.WebMarkupContainer
Options class is very similar in structure to the Highcharts API. See
http://api.highcharts.com/
highcharts for more information of what all the options mean.Theme can contain any configuration an Options object, so it
acts as a template for creating charts. It should contain all the
configurations common to all the charts you want to display. Note that a
theme is set globally, so all charts on one page have the same theme!
| Constructor and Description |
|---|
Chart(String id,
Options options) |
Chart(String id,
Options options,
Theme theme) |
| Modifier and Type | Method and Description |
|---|---|
String |
getJavaScriptVarName() |
Options |
getOptions() |
Theme |
getTheme() |
org.apache.wicket.request.resource.JavaScriptResourceReference |
getThemeReference() |
String |
getThemeUrl() |
void |
setOptions(Options options) |
void |
setTheme(org.apache.wicket.request.resource.JavaScriptResourceReference theme)
Sets the theme for this chart by specifying a reference to a javascript
file containing the theme.
|
void |
setTheme(String themeUrl)
Sets the theme for this chart by specifying a URL to a javascript file
containing the theme.
|
void |
setTheme(Theme theme)
Sets the theme for this chart by specifying a theme class.
|
void |
setThemeReference(org.apache.wicket.request.resource.JavaScriptResourceReference themeReference) |
void |
setThemeUrl(String themeUrl) |
getWebPage, getWebRequest, getWebResponse, getWebSessionadd, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrappublic Options getOptions()
public Theme getTheme()
public org.apache.wicket.request.resource.JavaScriptResourceReference getThemeReference()
public String getThemeUrl()
public void setOptions(Options options)
public void setTheme(org.apache.wicket.request.resource.JavaScriptResourceReference theme)
Highcharts.setOptions(myOptions);
where myOptions is a JSON representation of the
theme options.
A theme can only be set via one setTheme method. An
IllegalStateException will be thrown if you call two setTheme
methods.theme - reference to a javascript file containing a theme.public void setTheme(String themeUrl)
Highcharts.setOptions(myOptions);
where myOptions is a JSON representation of the
theme options.
A theme can only be set via one setTheme method. An
IllegalStateException will be thrown if you call two setTheme
methods.theme - reference to a javascript file containing a theme.public void setTheme(Theme theme)
IllegalStateException will be thrown if you call two setTheme
methods.theme - the theme class.public void setThemeReference(org.apache.wicket.request.resource.JavaScriptResourceReference themeReference)
public void setThemeUrl(String themeUrl)
public String getJavaScriptVarName()
Copyright © 2012. All Rights Reserved.