lt.monarch.chart.chart2D.axis
Class TitleSettings

java.lang.Object
  extended by lt.monarch.chart.style.AbstractStyle<AxisTextPaintTags>
      extended by lt.monarch.chart.chart2D.axis.TitleSettings
All Implemented Interfaces:
java.io.Serializable

public class TitleSettings
extends AbstractStyle<AxisTextPaintTags>

Title settings for the axis

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.style.AbstractStyle
dirty
 
Constructor Summary
Modifier Constructor and Description
protected TitleSettings(Style style)
          Title setting constructor
 
Method Summary
Modifier and Type Method and Description
 Alignment getHorizontalAlignment()
          Returns the axis title horizontal alignment type.
 int getOffset()
          Gets title offset from the labels
 TitlePosition getPosition()
          Gets the title label position
 double getRotationAngle()
          Gets the title rotation value in radians
 TextPaintMode getTextPaintMode()
          Gets axis title painting mode
 int getTitleOffset()
          Deprecated. use getOffset
 TitlePosition getTitlePosition()
          Deprecated. use getPosition instead
 Alignment getVerticalAlignment()
          Returns the axis title vertical alignment type.
 void setHorizontalAlignment(Alignment align)
          Sets the axis title horizontal alignment type.
 void setOffset(int offset)
          Sets the title offset from the labels
 void setPosition(TitlePosition pos)
          Sets the title label position flag in the local stylesheet
 void setRotationAngle(double titleRotation)
          Sets the title rotation value in radians
 void setTextPaintMode(TextPaintMode mode)
          Sets axis labels painting mode.
 void setTitleOffset(int offset)
          Deprecated. use setOffset
 void setTitlePosition(TitlePosition pos)
          Deprecated. use setPosition instead
 void setVerticalAlignment(Alignment align)
          Sets the axis title vertical alignment type.
 
Methods inherited from class lt.monarch.chart.style.AbstractStyle
dispose, finalize
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TitleSettings

protected TitleSettings(Style style)
Title setting constructor

Parameters:
style - stylesheet object
Method Detail

setTitleOffset

@Deprecated
public void setTitleOffset(int offset)
Deprecated. use setOffset

Sets the title offset from the labels

Parameters:
offset - title offset from the labels

getTitleOffset

@Deprecated
public int getTitleOffset()
Deprecated. use getOffset

Gets title offset from the labels

Returns:
title offset from the labels

setOffset

public void setOffset(int offset)
Sets the title offset from the labels

Parameters:
offset - title offset from the labels

getOffset

public int getOffset()
Gets title offset from the labels

Returns:
title offset from the labels

setHorizontalAlignment

public void setHorizontalAlignment(Alignment align)
Sets the axis title horizontal alignment type.

Parameters:
align - axis title horizontal alignment type

getHorizontalAlignment

public Alignment getHorizontalAlignment()
Returns the axis title horizontal alignment type.

Returns:
the axis title horizontal alignment type

setVerticalAlignment

public void setVerticalAlignment(Alignment align)
Sets the axis title vertical alignment type.

Parameters:
align - the axis title vertical alignment type

getVerticalAlignment

public Alignment getVerticalAlignment()
Returns the axis title vertical alignment type.

Returns:
the axis title vertical alignment type

setTitlePosition

@Deprecated
public void setTitlePosition(TitlePosition pos)
Deprecated. use setPosition instead

Sets the title label position flag in the local stylesheet

Parameters:
pos - title label position

setPosition

public void setPosition(TitlePosition pos)
Sets the title label position flag in the local stylesheet

Parameters:
pos - title label position

getTitlePosition

@Deprecated
public TitlePosition getTitlePosition()
Deprecated. use getPosition instead

Gets the title label position

Returns:
title label position

getPosition

public TitlePosition getPosition()
Gets the title label position

Returns:
title label position

setTextPaintMode

public void setTextPaintMode(TextPaintMode mode)
Sets axis labels painting mode.

Parameters:
mode - labels painting mode.

getTextPaintMode

public TextPaintMode getTextPaintMode()
Gets axis title painting mode

Returns:
axis title painting mode.

getRotationAngle

public double getRotationAngle()
Gets the title rotation value in radians

Returns:
the title rotation value in radians

setRotationAngle

public void setRotationAngle(double titleRotation)
Sets the title rotation value in radians

Parameters:
titleRotation - value in radians