|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
com.googlecode.wickedcharts.wicket6.highcharts.Chart
public class Chart
A simple markup container to display a chart. A chart can be provided with the following data:
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!
| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.Component |
|---|
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER |
| Constructor Summary | |
|---|---|
Chart(String id,
Options options)
|
|
Chart(String id,
Options options,
Theme theme)
|
|
| Method Summary | |
|---|---|
protected ChartBehavior |
createChartBehavior()
Factory method for ChartBehaviors. |
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)
|
| Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
|---|
getWebPage, getWebRequest, getWebResponse, getWebSession |
| Methods inherited from class org.apache.wicket.MarkupContainer |
|---|
add, 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, visitChildren |
| Methods inherited from class org.apache.wicket.Component |
|---|
add, 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, wrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Chart(String id,
Options options)
public Chart(String id,
Options options,
Theme theme)
| Method Detail |
|---|
public 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()
protected ChartBehavior createChartBehavior()
ChartBehaviors. May be overridden, if a custom
implementation of ChartBehavior is needed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||