public class DJChartOptions extends DJBaseElement
| Modifier and Type | Field and Description |
|---|---|
static byte |
EDGE_BOTTOM |
static byte |
EDGE_LEFT |
static byte |
EDGE_RIGHT |
static byte |
EDGE_TOP |
static byte |
LINE_STYLE_DASHED
Constant useful for specifying dashed line style.
|
static byte |
LINE_STYLE_DOTTED
Constant useful for specifying dotted line style.
|
static byte |
LINE_STYLE_DOUBLE
Constant useful for specifying double line style.
|
static byte |
LINE_STYLE_SOLID
Constant useful for specifying solid line style.
|
static byte |
POSITION_FOOTER |
static byte |
POSITION_HEADER |
SERIAL_VERSION_UID| Constructor and Description |
|---|
DJChartOptions() |
| Modifier and Type | Method and Description |
|---|---|
Color |
getBackColor()
Returns the background color.
|
String |
getCustomizerClass()
Returns a user specified chart customizer class name.
|
int |
getHeight()
Returns the chart height.
|
Color |
getLegendBackgroundColor()
Returns the legend background color.
|
Color |
getLegendColor()
Returns the legend color.
|
Font |
getLegendFont()
Returns the legend font.
|
Byte |
getLegendPosition()
Returns the legend position (EDGE_TOP, EDGE_BOTTOM, EDGE_LEFT, EDGE_RIGHT).
|
Color |
getLineColor()
Returns the line color.
|
Byte |
getLineStyle()
Gets the line style (LINE_STYLE_SOLID, LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_DOUBLE).
|
Float |
getLineWidth()
Returns the line width.
|
Integer |
getPadding()
Returns the padding.
|
byte |
getPosition()
Returns the position (DJChartOptions.POSITION_FOOTER or DJChartOptions.POSITION_HEADER).
|
Boolean |
getShowLegend()
Returns the legend visibility.
|
Color |
getSubtitleColor()
Returns the subtitle color.
|
StringExpression |
getSubtitleExpression()
Returns the subtitle expression.
|
Font |
getSubtitleFont()
Returns the subtitle font.
|
String |
getTheme()
Returns the theme.
|
Color |
getTitleColor()
Returns the title color.
|
StringExpression |
getTitleExpression()
Returns the title expression.
|
Font |
getTitleFont()
Returns the title font.
|
Byte |
getTitlePosition()
Returns the title position (EDGE_TOP, EDGE_BOTTOM, EDGE_LEFT, EDGE_RIGHT).
|
int |
getWidth()
Returns the chart width.
|
int |
getX()
Returns the x position.
|
int |
getY()
Returns the y position.
|
boolean |
isCentered()
Returns the true if the chart is centered.
|
void |
setBackColor(Color backColor)
Sets the background color.
|
void |
setCentered(boolean centered)
Sets the centered.
|
void |
setCustomizerClass(String customizerClass)
Sets a user specified chart customizer class name.
|
void |
setHeight(int height)
Sets the chart height.
|
void |
setLegendBackgroundColor(Color legendBackgroundColor)
Sets the legend background color.
|
void |
setLegendColor(Color legendColor)
Sets the legend color.
|
void |
setLegendFont(Font legendFont)
Sets the legend font.
|
void |
setLegendPosition(byte legendPosition)
Sets the legend position (EDGE_TOP, EDGE_BOTTOM, EDGE_LEFT, EDGE_RIGHT).
|
void |
setLineColor(Color lineColor)
Sets the line color.
|
void |
setLineStyle(byte lineStyle)
Sets the line style (LINE_STYLE_SOLID, LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_DOUBLE).
|
void |
setLineWidth(Float lineWidth)
Sets the line width.
|
void |
setPadding(Integer padding)
Sets the padding.
|
void |
setPosition(byte position)
Sets the position (DJChartOptions.POSITION_FOOTER or DJChartOptions.POSITION_HEADER).
|
void |
setShowLegend(Boolean showLegend)
Sets the legend visibility.
|
void |
setSubtitleColor(Color subtitleColor)
Sets the subtitle color.
|
void |
setSubtitleExpression(StringExpression subtitleExpression)
Sets the subtitle expression.
|
void |
setSubtitleFont(Font subtitleFont)
Sets the subtitle font.
|
void |
setTheme(String theme)
Sets the theme.
|
void |
setTitleColor(Color titleColor)
Sets the title color.
|
void |
setTitleExpression(StringExpression titleExpression)
Sets the title expression.
|
void |
setTitleFont(Font titleFont)
Sets the title font.
|
void |
setTitlePosition(byte titlePosition)
Sets the title position (EDGE_TOP, EDGE_BOTTOM, EDGE_LEFT, EDGE_RIGHT).
|
void |
setWidth(int width)
Sets the chart width.
|
void |
setX(int x)
Sets the x position.
|
void |
setY(int y)
Sets the y position.
|
void |
transform(DynamicJasperDesign design,
String name,
net.sf.jasperreports.engine.design.JRDesignChart chart,
int width) |
public static final byte POSITION_FOOTER
public static final byte POSITION_HEADER
public static final byte EDGE_TOP
public static final byte EDGE_BOTTOM
public static final byte EDGE_LEFT
public static final byte EDGE_RIGHT
public static final byte LINE_STYLE_SOLID
public static final byte LINE_STYLE_DASHED
public static final byte LINE_STYLE_DOTTED
public static final byte LINE_STYLE_DOUBLE
public Color getBackColor()
public void setBackColor(Color backColor)
backColor - the background colorpublic int getHeight()
public void setHeight(int height)
height - the chart heightpublic int getWidth()
public void setWidth(int width)
width - the chart widthpublic boolean isCentered()
public void setCentered(boolean centered)
centered - the centeredpublic byte getPosition()
public void setPosition(byte position)
position - the positionpublic int getY()
public void setY(int y)
y - the y positionpublic int getX()
public void setX(int x)
x - the x positionpublic Boolean getShowLegend()
public void setShowLegend(Boolean showLegend)
showLegend - the legend visibilitypublic Color getTitleColor()
public void setTitleColor(Color titleColor)
titleColor - the title colorpublic Color getSubtitleColor()
public void setSubtitleColor(Color subtitleColor)
subtitleColor - the subtitle colorpublic Color getLegendColor()
public void setLegendColor(Color legendColor)
legendColor - the legend colorpublic Color getLegendBackgroundColor()
public void setLegendBackgroundColor(Color legendBackgroundColor)
legendBackgroundColor - the legend background colorpublic String getTheme()
public void setTheme(String theme)
theme - the themepublic Font getTitleFont()
public void setTitleFont(Font titleFont)
titleFont - the title fontpublic Font getSubtitleFont()
public void setSubtitleFont(Font subtitleFont)
subtitleFont - the subtitle fontpublic Font getLegendFont()
public void setLegendFont(Font legendFont)
legendFont - the legend fontpublic Byte getLegendPosition()
public void setLegendPosition(byte legendPosition)
legendPosition - the legend positionpublic Byte getTitlePosition()
public void setTitlePosition(byte titlePosition)
titlePosition - the title positionpublic StringExpression getTitleExpression()
public void setTitleExpression(StringExpression titleExpression)
titleExpression - the title expressionpublic StringExpression getSubtitleExpression()
public void setSubtitleExpression(StringExpression subtitleExpression)
subtitleExpression - the subtitle expressionpublic Byte getLineStyle()
public void setLineStyle(byte lineStyle)
lineStyle - one of the line style constants in this classpublic Float getLineWidth()
public void setLineWidth(Float lineWidth)
lineWidth - the line widthpublic Color getLineColor()
public void setLineColor(Color lineColor)
lineColor - the line colorpublic Integer getPadding()
public void setPadding(Integer padding)
padding - the paddingpublic void setCustomizerClass(String customizerClass)
JRChartCustomizerpublic String getCustomizerClass()
JRChartCustomizerpublic void transform(DynamicJasperDesign design, String name, net.sf.jasperreports.engine.design.JRDesignChart chart, int width)
Copyright © 2006–2015 FDV Solutions. All rights reserved.