Class TitleSettings
java.lang.Object
net.sf.jasperreports.chartthemes.simple.TitleSettings
- All Implemented Interfaces:
Serializable,JRChangeEventsSupport
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the property change support object for this instance.getFont()org.jfree.chart.ui.HorizontalAlignmentorg.jfree.chart.ui.RectangleInsetspublic SimpleTitleSettings(SimpleChartSettings chartSettings) { this.chartSettings = chartSettings; font = new JRBaseFont(chartSettings.getFont(), null); } /**org.jfree.chart.ui.VerticalAlignmentvoidsetBackgroundPaint(PaintProvider backgroundPaint) voidvoidsetForegroundPaint(PaintProvider foregroundPaint) voidsetHorizontalAlignment(org.jfree.chart.ui.HorizontalAlignment horizontalAlignment) voidsetPadding(org.jfree.chart.ui.RectangleInsets padding) voidsetPosition(EdgeEnum position) voidsetShowTitle(Boolean showTitle) voidsetVerticalAlignment(org.jfree.chart.ui.VerticalAlignment verticalAlignment)
-
Field Details
-
PROPERTY_showTitle
- See Also:
-
PROPERTY_position
- See Also:
-
PROPERTY_foregroundPaint
- See Also:
-
PROPERTY_backgroundPaint
- See Also:
-
PROPERTY_font
- See Also:
-
PROPERTY_horizontalAlignment
- See Also:
-
PROPERTY_verticalAlignment
- See Also:
-
PROPERTY_padding
- See Also:
-
-
Constructor Details
-
TitleSettings
public TitleSettings()
-
-
Method Details
-
getShowTitle
public SimpleTitleSettings(SimpleChartSettings chartSettings) { this.chartSettings = chartSettings; font = new JRBaseFont(chartSettings.getFont(), null); } /** -
setShowTitle
-
getPosition
- Returns:
- the position
-
setPosition
- Parameters:
position- the position to set
-
getBackgroundPaint
- Returns:
- the backgroundPaint
-
setBackgroundPaint
- Parameters:
backgroundPaint- the backgroundPaint to set
-
getFont
- Returns:
- the font
-
setFont
- Parameters:
font- the font to set
-
getForegroundPaint
- Returns:
- the foregroundPaint
-
setForegroundPaint
- Parameters:
foregroundPaint- the foregroundPaint to set
-
getHorizontalAlignment
public org.jfree.chart.ui.HorizontalAlignment getHorizontalAlignment()- Returns:
- the horizontalAlignment
-
setHorizontalAlignment
public void setHorizontalAlignment(org.jfree.chart.ui.HorizontalAlignment horizontalAlignment) - Parameters:
horizontalAlignment- the horizontalAlignment to set
-
getEventSupport
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-
getVerticalAlignment
public org.jfree.chart.ui.VerticalAlignment getVerticalAlignment()- Returns:
- the verticalAlignment
-
setVerticalAlignment
public void setVerticalAlignment(org.jfree.chart.ui.VerticalAlignment verticalAlignment) - Parameters:
verticalAlignment- the verticalAlignment to set
-
getPadding
public org.jfree.chart.ui.RectangleInsets getPadding()- Returns:
- the padding
-
setPadding
public void setPadding(org.jfree.chart.ui.RectangleInsets padding) - Parameters:
padding- the padding to set
-