public abstract class

TitleStyle

extends Object
java.lang.Object
   ↳ com.shinobicontrols.charts.TitleStyle
Known Direct Subclasses

Class Overview

Visual style properties for a title. If you make any styling changes after the chart has been displayed, you should call chart.redrawChart().

Summary

Public Constructors
TitleStyle()
Public Methods
int getBackgroundColor()
Gets the background color of the title label.
float getMargin()
Gets the margin value of the title label.
float getPadding()
Gets the padding value of the title label.
Title.Position getPosition()
Where the title will appear, relative to the chart or axis.
int getTextColor()
Gets the color for the text of the chart title.
float getTextSize()
Gets the text size for the title text, in scaled pixels.
Typeface getTypeface()
Gets the type face for the title text.
void setBackgroundColor(int backgroundColor)
Sets the background color of the title label.
void setMargin(float margin)
Sets the margin value of the title label.
void setPadding(float padding)
Sets the padding value of the title label.
void setPosition(Title.Position position)
Sets where the title will appear, relative to the chart or axis.
void setTextColor(int textColor)
Sets the color for the text of the chart title.
void setTextSize(float textSize)
Sets the text size for the title text, in scaled pixels.
void setTypeface(Typeface typeface)
Sets the type face for the title text.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TitleStyle ()

Public Methods

public int getBackgroundColor ()

Gets the background color of the title label.

Returns
  • The int representation of the background color of the title label

public float getMargin ()

Gets the margin value of the title label.

Returns
  • The value of the margin of the title label, in scaled pixels.
See Also

public float getPadding ()

Gets the padding value of the title label.

Returns
  • The value of the padding of the title label, in scaled pixels.

public Title.Position getPosition ()

Where the title will appear, relative to the chart or axis.

Returns
  • The position of the title relative to the chart or axis

public int getTextColor ()

Gets the color for the text of the chart title.

Returns
  • The int representation of the color of the text in the title label

public float getTextSize ()

Gets the text size for the title text, in scaled pixels.

Returns
  • The size of the text in the title label, in scaled pixels.

public Typeface getTypeface ()

Gets the type face for the title text.

Returns
  • The type face used for the text in the title label

public void setBackgroundColor (int backgroundColor)

Sets the background color of the title label.

Parameters
backgroundColor The int representation of the background color for the title label

public void setMargin (float margin)

Sets the margin value of the title label.

Parameters
margin The value of the margin of the title label, in scaled pixels.
See Also

public void setPadding (float padding)

Sets the padding value of the title label.

Parameters
padding The value of the padding of the title label, in scaled pixels.
See Also

public void setPosition (Title.Position position)

Sets where the title will appear, relative to the chart or axis.

Parameters
position The position of the title relative to the chart or axis
See Also

public void setTextColor (int textColor)

Sets the color for the text of the chart title.

Parameters
textColor The int representation of the color of the text in the title label
See Also

public void setTextSize (float textSize)

Sets the text size for the title text, in scaled pixels.

Parameters
textSize The size to use for the text in the title label, in scaled pixels.
See Also

public void setTypeface (Typeface typeface)

Sets the type face for the title text.

Parameters
typeface The type face to use for the text in the title label
See Also