|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ChartType>
schmitzm.jfree.chart.style.ChartType
public enum ChartType
Enum
representing the style type of a chart (bar, line, area, ...).
It also meta-information on these chart types, like translated titles,
preview images and information about the data requirements.
Enum Constant Summary | |
---|---|
AREA
Represents all area chart styles |
|
BAR
Represents all bar chart styles |
|
GANTT
Represents all gantt chart styles |
|
LINE
Represents all line chart styles |
|
PIE
Represents all pie chart styles |
|
POINT
Represents all point chart styles |
|
SCATTER
Represents all scatter chart styles |
|
SPIDER
Represents all spider chart styles |
|
TIMESERIES
Represents all timeseries chart styles |
Method Summary | |
---|---|
String |
getDescription()
Returns a description of this kind of chart. |
ImageIcon |
getIcon()
Returns an image of 16x16 pixels that shows the basic appearance of this chart type. |
int |
getMaxDimensions()
|
int |
getMinDimensions()
|
String |
getObjectName()
Returns a localized title for the objects drawn in this chart. |
ImageIcon |
getPreviewIcon()
Returns an image of 300x200 pixels that shows a hypothetical chart of the given type. |
String |
getTitle()
Returns a localized title of this kind of chart. |
boolean |
isCategoryAllowedForDomainAxis()
Does the ChartType allow category data for the domain axis? |
static ChartType |
valueOf(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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ChartType BAR
public static final ChartType LINE
public static final ChartType AREA
public static final ChartType POINT
public static final ChartType PIE
public static final ChartType GANTT
public static final ChartType TIMESERIES
public static final ChartType SPIDER
public static final ChartType SCATTER
Method Detail |
---|
public static ChartType[] values()
for (ChartType c : ChartType.values()) System.out.println(c);
public static ChartType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic ImageIcon getPreviewIcon()
null
, but rather a default image.
The images are not cached, so if ut's called often, cache it yourself.
public ImageIcon getIcon()
public String getDescription()
null
if no localized String found.
public String getTitle()
public int getMinDimensions()
public int getMaxDimensions()
public boolean isCategoryAllowedForDomainAxis()
ChartType
allow category data for the domain axis?
public String getObjectName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |