Class TitleSettings
- java.lang.Object
-
- net.sf.jasperreports.chartthemes.simple.TitleSettings
-
- All Implemented Interfaces:
Serializable
,JRChangeEventsSupport
public class TitleSettings extends Object implements JRChangeEventsSupport, Serializable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_backgroundPaint
static String
PROPERTY_font
static String
PROPERTY_foregroundPaint
static String
PROPERTY_horizontalAlignment
static String
PROPERTY_padding
static String
PROPERTY_position
static String
PROPERTY_showTitle
static String
PROPERTY_verticalAlignment
-
Constructor Summary
Constructors Constructor Description TitleSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaintProvider
getBackgroundPaint()
JRPropertyChangeSupport
getEventSupport()
Returns the property change support object for this instance.JRFont
getFont()
PaintProvider
getForegroundPaint()
org.jfree.chart.ui.HorizontalAlignment
getHorizontalAlignment()
org.jfree.chart.ui.RectangleInsets
getPadding()
EdgeEnum
getPosition()
Boolean
getShowTitle()
public SimpleTitleSettings(SimpleChartSettings chartSettings) { this.chartSettings = chartSettings; font = new JRBaseFont(chartSettings.getFont(), null); } /**org.jfree.chart.ui.VerticalAlignment
getVerticalAlignment()
void
setBackgroundPaint(PaintProvider backgroundPaint)
void
setFont(JRFont font)
void
setForegroundPaint(PaintProvider foregroundPaint)
void
setHorizontalAlignment(org.jfree.chart.ui.HorizontalAlignment horizontalAlignment)
void
setPadding(org.jfree.chart.ui.RectangleInsets padding)
void
setPosition(EdgeEnum position)
void
setShowTitle(Boolean showTitle)
void
setVerticalAlignment(org.jfree.chart.ui.VerticalAlignment verticalAlignment)
-
-
-
Field Detail
-
PROPERTY_showTitle
public static final String PROPERTY_showTitle
- See Also:
- Constant Field Values
-
PROPERTY_position
public static final String PROPERTY_position
- See Also:
- Constant Field Values
-
PROPERTY_foregroundPaint
public static final String PROPERTY_foregroundPaint
- See Also:
- Constant Field Values
-
PROPERTY_backgroundPaint
public static final String PROPERTY_backgroundPaint
- See Also:
- Constant Field Values
-
PROPERTY_font
public static final String PROPERTY_font
- See Also:
- Constant Field Values
-
PROPERTY_horizontalAlignment
public static final String PROPERTY_horizontalAlignment
- See Also:
- Constant Field Values
-
PROPERTY_verticalAlignment
public static final String PROPERTY_verticalAlignment
- See Also:
- Constant Field Values
-
PROPERTY_padding
public static final String PROPERTY_padding
- See Also:
- Constant Field Values
-
-
Method Detail
-
getShowTitle
public Boolean getShowTitle()
public SimpleTitleSettings(SimpleChartSettings chartSettings) { this.chartSettings = chartSettings; font = new JRBaseFont(chartSettings.getFont(), null); } /**
-
setShowTitle
public void setShowTitle(Boolean showTitle)
-
getPosition
public EdgeEnum getPosition()
- Returns:
- the position
-
setPosition
public void setPosition(EdgeEnum position)
- Parameters:
position
- the position to set
-
getBackgroundPaint
public PaintProvider getBackgroundPaint()
- Returns:
- the backgroundPaint
-
setBackgroundPaint
public void setBackgroundPaint(PaintProvider backgroundPaint)
- Parameters:
backgroundPaint
- the backgroundPaint to set
-
getFont
public JRFont getFont()
- Returns:
- the font
-
setFont
public void setFont(JRFont font)
- Parameters:
font
- the font to set
-
getForegroundPaint
public PaintProvider getForegroundPaint()
- Returns:
- the foregroundPaint
-
setForegroundPaint
public void setForegroundPaint(PaintProvider foregroundPaint)
- 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
public JRPropertyChangeSupport getEventSupport()
Description copied from interface:JRChangeEventsSupport
Returns the property change support object for this instance.- Specified by:
getEventSupport
in 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
-
-