public class Chart
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BAR_CHART_TYPE
value of the bar chart type
|
static java.awt.Color |
DEFAULT_DATA_COLOR
Default data color
|
static java.lang.String |
LINE_CHART_TYPE
value of the line chart type
|
static java.lang.String |
PIE_CHART_TYPE
value of the pie chart type
|
static java.lang.String |
PN_ALT
name of the alt name property
|
static java.lang.String |
PN_BC_BAR_SPACING
name of the bar spacing property for bar charts
|
static java.lang.String |
PN_BC_BAR_WIDTH
name of the bar width property for bar charts
|
static java.lang.String |
PN_BG_COLOR
name of the background color property
|
static java.lang.String |
PN_CHART_TYPE
name of the chart type property
|
static java.lang.String |
PN_DATA
name of the data property
|
static java.lang.String |
PN_DATA_COLORS
name of the data color property
|
static java.lang.String |
PN_HEIGHT
name of the width property
|
static java.lang.String |
PN_LABEL_COLOR
name of the label color property
|
static java.lang.String |
PN_LC_LINE_WIDTH
name of the line width property for line charts
|
static java.lang.String |
PN_LINE_COLOR
name of the line color property
|
static java.lang.String |
PN_PC_START_ANGLE
name of the start angle property for pie charts
|
static java.lang.String |
PN_TITLE
name of the title property
|
static java.lang.String |
PN_WIDTH
name of the width property
|
Constructor and Description |
---|
Chart(Resource resource)
Creates a new chart based on the given resource.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.String name)
Get a property either from the overlaid map or the underlying properties.
|
java.lang.String |
getAlt()
Returns the chart alt name as defined by "chartAlt"
|
Layer |
getChartLayer()
Returns the chart layer of this chart.
|
java.awt.Color |
getColor(java.lang.String name)
Get a color either from the overlaid map or the underlying properties.
|
java.lang.Double |
getDouble(java.lang.String name)
Get a double property either from the overlaid map or the underlying
properties.
|
java.lang.Float |
getFloat(java.lang.String name)
Get a float property either from the overlaid map or the underlying
properties.
|
java.lang.Integer |
getInt(java.lang.String name)
Get a integer property either from the overlaid map or the underlying
properties.
|
Layer |
getLegendLayer()
Returns the legend layer of this chart.
|
java.lang.String |
getString(java.lang.String name)
Get a string property either from the overlaid map or the underlying
properties.
|
boolean |
hasData()
Checks if this chart has content
|
void |
loadStyleData(Style style)
Loads several definitions from style.
|
public static final java.lang.String PIE_CHART_TYPE
public static final java.lang.String BAR_CHART_TYPE
public static final java.lang.String LINE_CHART_TYPE
public static final java.lang.String PN_TITLE
public static final java.lang.String PN_CHART_TYPE
public static final java.lang.String PN_ALT
public static final java.lang.String PN_DATA
public static final java.lang.String PN_WIDTH
public static final java.lang.String PN_HEIGHT
public static final java.lang.String PN_PC_START_ANGLE
public static final java.lang.String PN_LC_LINE_WIDTH
public static final java.lang.String PN_BC_BAR_WIDTH
public static final java.lang.String PN_BC_BAR_SPACING
public static final java.lang.String PN_BG_COLOR
public static final java.lang.String PN_LABEL_COLOR
public static final java.lang.String PN_LINE_COLOR
public static final java.lang.String PN_DATA_COLORS
public static final java.awt.Color DEFAULT_DATA_COLOR
public Chart(Resource resource)
resource
- resource of the chartjava.lang.IllegalArgumentException
- if the given resource is not adaptable to node.public boolean hasData()
true
if this chart has contentpublic java.lang.String getAlt()
PN_ALT
public java.lang.Object get(java.lang.String name)
name
- name of the propertypublic java.lang.String getString(java.lang.String name)
name
- name of the propertypublic java.lang.Integer getInt(java.lang.String name)
name
- name of the propertypublic java.lang.Double getDouble(java.lang.String name)
name
- name of the propertypublic java.lang.Float getFloat(java.lang.String name)
name
- name of the propertypublic java.awt.Color getColor(java.lang.String name)
name
- name of the propertypublic void loadStyleData(Style style)
style
- style to load definitions frompublic Layer getChartLayer() throws java.io.IOException, RepositoryException
java.io.IOException
- if an I/O error occurs.RepositoryException
- if a repository error occurs.public Layer getLegendLayer() throws java.io.IOException, RepositoryException
java.io.IOException
- if an I/O error occurs.RepositoryException
- if a repository error occurs.Copyright © 2010 - 2020 Adobe. All Rights Reserved