ar.com.fdvs.dj.domain.chart
Class DJChartOptions

java.lang.Object
  extended by ar.com.fdvs.dj.domain.DJBaseElement
      extended by ar.com.fdvs.dj.domain.chart.DJChartOptions
All Implemented Interfaces:
Entity, java.io.Serializable

public class DJChartOptions
extends DJBaseElement

See Also:
Serialized Form

Field Summary
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
           
 
Fields inherited from interface ar.com.fdvs.dj.domain.entities.Entity
SERIAL_VERSION_UID
 
Constructor Summary
DJChartOptions()
           
 
Method Summary
 java.awt.Color getBackColor()
          Returns the background color.
 java.lang.String getCustomizerClass()
          Returns a user specified chart customizer class name.
 int getHeight()
          Returns the chart height.
 java.awt.Color getLegendBackgroundColor()
          Returns the legend background color.
 java.awt.Color getLegendColor()
          Returns the legend color.
 Font getLegendFont()
          Returns the legend font.
 java.lang.Byte getLegendPosition()
          Returns the legend position (EDGE_TOP, EDGE_BOTTOM, EDGE_LEFT, EDGE_RIGHT).
 java.awt.Color getLineColor()
          Returns the line color.
 java.lang.Byte getLineStyle()
          Gets the line style (LINE_STYLE_SOLID, LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_DOUBLE).
 java.lang.Float getLineWidth()
          Returns the line width.
 java.lang.Integer getPadding()
          Returns the padding.
 byte getPosition()
          Returns the position (DJChartOptions.POSITION_FOOTER or DJChartOptions.POSITION_HEADER).
 java.lang.Boolean getShowLegend()
          Returns the legend visibility.
 java.awt.Color getSubtitleColor()
          Returns the subtitle color.
 StringExpression getSubtitleExpression()
          Returns the subtitle expression.
 Font getSubtitleFont()
          Returns the subtitle font.
 java.lang.String getTheme()
          Returns the theme.
 java.awt.Color getTitleColor()
          Returns the title color.
 StringExpression getTitleExpression()
          Returns the title expression.
 Font getTitleFont()
          Returns the title font.
 java.lang.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(java.awt.Color backColor)
          Sets the background color.
 void setCentered(boolean centered)
          Sets the centered.
 void setCustomizerClass(java.lang.String customizerClass)
          Sets a user specified chart customizer class name.
 void setHeight(int height)
          Sets the chart height.
 void setLegendBackgroundColor(java.awt.Color legendBackgroundColor)
          Sets the legend background color.
 void setLegendColor(java.awt.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(java.awt.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(java.lang.Float lineWidth)
          Sets the line width.
 void setPadding(java.lang.Integer padding)
          Sets the padding.
 void setPosition(byte position)
          Sets the position (DJChartOptions.POSITION_FOOTER or DJChartOptions.POSITION_HEADER).
 void setShowLegend(java.lang.Boolean showLegend)
          Sets the legend visibility.
 void setSubtitleColor(java.awt.Color subtitleColor)
          Sets the subtitle color.
 void setSubtitleExpression(StringExpression subtitleExpression)
          Sets the subtitle expression.
 void setSubtitleFont(Font subtitleFont)
          Sets the subtitle font.
 void setTheme(java.lang.String theme)
          Sets the theme.
 void setTitleColor(java.awt.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, java.lang.String name, net.sf.jasperreports.engine.design.JRDesignChart chart, int width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POSITION_FOOTER

public static final byte POSITION_FOOTER
See Also:
Constant Field Values

POSITION_HEADER

public static final byte POSITION_HEADER
See Also:
Constant Field Values

EDGE_TOP

public static final byte EDGE_TOP
See Also:
Constant Field Values

EDGE_BOTTOM

public static final byte EDGE_BOTTOM
See Also:
Constant Field Values

EDGE_LEFT

public static final byte EDGE_LEFT
See Also:
Constant Field Values

EDGE_RIGHT

public static final byte EDGE_RIGHT
See Also:
Constant Field Values

LINE_STYLE_SOLID

public static final byte LINE_STYLE_SOLID
Constant useful for specifying solid line style.

See Also:
Constant Field Values

LINE_STYLE_DASHED

public static final byte LINE_STYLE_DASHED
Constant useful for specifying dashed line style.

See Also:
Constant Field Values

LINE_STYLE_DOTTED

public static final byte LINE_STYLE_DOTTED
Constant useful for specifying dotted line style.

See Also:
Constant Field Values

LINE_STYLE_DOUBLE

public static final byte LINE_STYLE_DOUBLE
Constant useful for specifying double line style.

See Also:
Constant Field Values
Constructor Detail

DJChartOptions

public DJChartOptions()
Method Detail

getBackColor

public java.awt.Color getBackColor()
Returns the background color.

Returns:
the background color

setBackColor

public void setBackColor(java.awt.Color backColor)
Sets the background color.

Parameters:
backColor - the background color

getHeight

public int getHeight()
Returns the chart height.

Returns:
the chart height

setHeight

public void setHeight(int height)
Sets the chart height.

Parameters:
height - the chart height

getWidth

public int getWidth()
Returns the chart width.

Returns:
the chart width

setWidth

public void setWidth(int width)
Sets the chart width.

Parameters:
width - the chart width

isCentered

public boolean isCentered()
Returns the true if the chart is centered.

Returns:
the true if the chart is centered

setCentered

public void setCentered(boolean centered)
Sets the centered.

Parameters:
centered - the centered

getPosition

public byte getPosition()
Returns the position (DJChartOptions.POSITION_FOOTER or DJChartOptions.POSITION_HEADER).

Returns:
the position

setPosition

public void setPosition(byte position)
Sets the position (DJChartOptions.POSITION_FOOTER or DJChartOptions.POSITION_HEADER).

Parameters:
position - the position

getY

public int getY()
Returns the y position.

Returns:
the y position

setY

public void setY(int y)
Sets the y position.

Parameters:
y - the y position

getX

public int getX()
Returns the x position.

Returns:
the x position

setX

public void setX(int x)
Sets the x position.

Parameters:
y - the x position

getShowLegend

public java.lang.Boolean getShowLegend()
Returns the legend visibility.

Returns:
the legend visibility

setShowLegend

public void setShowLegend(java.lang.Boolean showLegend)
Sets the legend visibility.

Parameters:
showLegend - the legend visibility

getTitleColor

public java.awt.Color getTitleColor()
Returns the title color.

Returns:
the title color

setTitleColor

public void setTitleColor(java.awt.Color titleColor)
Sets the title color.

Parameters:
titleColor - the title color

getSubtitleColor

public java.awt.Color getSubtitleColor()
Returns the subtitle color.

Returns:
the subtitle color

setSubtitleColor

public void setSubtitleColor(java.awt.Color subtitleColor)
Sets the subtitle color.

Parameters:
subtitleColor - the subtitle color

getLegendColor

public java.awt.Color getLegendColor()
Returns the legend color.

Returns:
the legend color

setLegendColor

public void setLegendColor(java.awt.Color legendColor)
Sets the legend color.

Parameters:
legendColor - the legend color

getLegendBackgroundColor

public java.awt.Color getLegendBackgroundColor()
Returns the legend background color.

Returns:
the legend background color

setLegendBackgroundColor

public void setLegendBackgroundColor(java.awt.Color legendBackgroundColor)
Sets the legend background color.

Parameters:
legendBackgroundColor - the legend background color

getTheme

public java.lang.String getTheme()
Returns the theme. Chart themes support to allow changing the overall appearance of charts generated with the build-in chart element

Returns:
the theme

setTheme

public void setTheme(java.lang.String theme)
Sets the theme. Chart themes support to allow changing the overall appearance of charts generated with the build-in chart element

Parameters:
theme - the theme

getTitleFont

public Font getTitleFont()
Returns the title font.

Returns:
the title font

setTitleFont

public void setTitleFont(Font titleFont)
Sets the title font.

Parameters:
titleFont - the title font

getSubtitleFont

public Font getSubtitleFont()
Returns the subtitle font.

Returns:
the subtitle font

setSubtitleFont

public void setSubtitleFont(Font subtitleFont)
Sets the subtitle font.

Parameters:
subtitleFont - the subtitle font

getLegendFont

public Font getLegendFont()
Returns the legend font.

Returns:
the legend font

setLegendFont

public void setLegendFont(Font legendFont)
Sets the legend font.

Parameters:
legendFont - the legend font

getLegendPosition

public java.lang.Byte getLegendPosition()
Returns the legend position (EDGE_TOP, EDGE_BOTTOM, EDGE_LEFT, EDGE_RIGHT).

Returns:
the legend position

setLegendPosition

public void setLegendPosition(byte legendPosition)
Sets the legend position (EDGE_TOP, EDGE_BOTTOM, EDGE_LEFT, EDGE_RIGHT).

Parameters:
legendPosition - the legend position

getTitlePosition

public java.lang.Byte getTitlePosition()
Returns the title position (EDGE_TOP, EDGE_BOTTOM, EDGE_LEFT, EDGE_RIGHT).

Returns:
the title position

setTitlePosition

public void setTitlePosition(byte titlePosition)
Sets the title position (EDGE_TOP, EDGE_BOTTOM, EDGE_LEFT, EDGE_RIGHT).

Parameters:
titlePosition - the title position

getTitleExpression

public StringExpression getTitleExpression()
Returns the title expression.

Returns:
the title expression

setTitleExpression

public void setTitleExpression(StringExpression titleExpression)
Sets the title expression.

Parameters:
titleExpression - the title expression

getSubtitleExpression

public StringExpression getSubtitleExpression()
Returns the subtitle expression.

Returns:
the subtitle expression

setSubtitleExpression

public void setSubtitleExpression(StringExpression subtitleExpression)
Sets the subtitle expression.

Parameters:
subtitleExpression - the subtitle expression

getLineStyle

public java.lang.Byte getLineStyle()
Gets the line style (LINE_STYLE_SOLID, LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_DOUBLE).

Returns:
one of the line style constants in this class

setLineStyle

public void setLineStyle(byte lineStyle)
Sets the line style (LINE_STYLE_SOLID, LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_DOUBLE).

Parameters:
lineStyle - one of the line style constants in this class

getLineWidth

public java.lang.Float getLineWidth()
Returns the line width.

Returns:
the line width

setLineWidth

public void setLineWidth(java.lang.Float lineWidth)
Sets the line width.

Parameters:
lineWidth - the line width

getLineColor

public java.awt.Color getLineColor()
Returns the line color.

Returns:
the line color

setLineColor

public void setLineColor(java.awt.Color lineColor)
Sets the line color.

Parameters:
lineColor - the line color

getPadding

public java.lang.Integer getPadding()
Returns the padding.

Returns:
the padding

setPadding

public void setPadding(java.lang.Integer padding)
Sets the padding.

Parameters:
padding - the padding

setCustomizerClass

public void setCustomizerClass(java.lang.String customizerClass)
Sets a user specified chart customizer class name.

See Also:
JRChartCustomizer

getCustomizerClass

public java.lang.String getCustomizerClass()
Returns a user specified chart customizer class name.

Returns:
user specified chart customizer class name
See Also:
JRChartCustomizer

transform

public void transform(DynamicJasperDesign design,
                      java.lang.String name,
                      net.sf.jasperreports.engine.design.JRDesignChart chart,
                      int width)


Copyright © 2006-2011 FDV Solutions. All Rights Reserved.