Package org.wicketstuff.gchart
Enum ChartType
- java.lang.Object
-
- java.lang.Enum<ChartType>
-
- org.wicketstuff.gchart.ChartType
-
- All Implemented Interfaces:
Serializable,Comparable<ChartType>,JavaScriptable
public enum ChartType extends Enum<ChartType> implements JavaScriptable
Selection of chart types. Complete for classic charts, but does not implement the Material chart types.- Author:
- Dieter Tremel
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANNOTATIONAREABARBUBBLECALENDARCANDLESTICKCOLUMNCOMBOGANTTGAUGEGEOGeocharts need Maps API key, seeChart.setMapsApiKey(java.lang.String)HISTOGRAMLINELINE_MATERIALMAPMap charts need Maps API key, seeChart.setMapsApiKey(java.lang.String)ORGPIEPieChart.SANKEYSCATTERSTEPPEDAREATABLETIMELINETREEMAPWORDTREE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetChartClass()Get the class name of the chart type.StringgetLoadPackage()Package name of the type to use in the loader.StringtoJavaScript()Return the JavaScript part.static ChartTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ChartType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANNOTATION
public static final ChartType ANNOTATION
-
AREA
public static final ChartType AREA
-
BAR
public static final ChartType BAR
-
BUBBLE
public static final ChartType BUBBLE
-
CALENDAR
public static final ChartType CALENDAR
-
CANDLESTICK
public static final ChartType CANDLESTICK
-
COLUMN
public static final ChartType COLUMN
-
COMBO
public static final ChartType COMBO
-
GANTT
public static final ChartType GANTT
-
GAUGE
public static final ChartType GAUGE
-
GEO
public static final ChartType GEO
Geocharts need Maps API key, seeChart.setMapsApiKey(java.lang.String)
-
HISTOGRAM
public static final ChartType HISTOGRAM
-
LINE
public static final ChartType LINE
-
LINE_MATERIAL
public static final ChartType LINE_MATERIAL
-
MAP
public static final ChartType MAP
Map charts need Maps API key, seeChart.setMapsApiKey(java.lang.String)
-
ORG
public static final ChartType ORG
-
PIE
public static final ChartType PIE
PieChart. For Donut charts use this with OptionpieHole.
-
SANKEY
public static final ChartType SANKEY
-
SCATTER
public static final ChartType SCATTER
-
STEPPEDAREA
public static final ChartType STEPPEDAREA
-
TABLE
public static final ChartType TABLE
-
TIMELINE
public static final ChartType TIMELINE
-
TREEMAP
public static final ChartType TREEMAP
-
WORDTREE
public static final ChartType WORDTREE
-
-
Method Detail
-
values
public static ChartType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ChartType c : ChartType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChartType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getChartClass
public String getChartClass()
Get the class name of the chart type.- Returns:
- Class name of Google implementation.
-
getLoadPackage
public String getLoadPackage()
Package name of the type to use in the loader.- Returns:
- Name of the charts package name. This defaults to
CORE_PACKAGEfor most types.
-
toJavaScript
public String toJavaScript()
Description copied from interface:JavaScriptableReturn the JavaScript part.- Specified by:
toJavaScriptin interfaceJavaScriptable- Returns:
- JavaScript String for use as part of chart declaration.
-
-