public final class

ChartTitle

extends ChartLayoutElement
com.artfulbits.aiCharts.Base.ChartLayoutElement
   ↳ com.artfulbits.aiCharts.Base.ChartTitle

Class Overview

Represents title text element.

Summary

Public Constructors
ChartTitle()
Initializes a new instance of ChartTile class.
ChartTitle(String text)
Initializes a new instance of ChartTile class with parameter specified.
Public Methods
Drawable getBackground()
Gets object used to draw text element.
Drawable getDrawable()
Gets object used to draw text element.
String getText()
Gets the text represented by this chart element.
Paint getTextPaint()
Gets paint that is used to draw this element.
void layout(Rect inOutBounds)
Sets bounds for this element.
void measure(Point inOutSize)
Measures the element.
void setBackground(Drawable drawable)
Sets object used to draw text element.
void setDock(ChartLayoutElement.Dock dock)
Sets docking mode for the legend.
void setDrawable(Drawable drawable)
Sets object used to draw text element.
void setText(String text)
Sets the test for specified chart element.
[Expand]
Inherited Methods
From class com.artfulbits.aiCharts.Base.ChartLayoutElement
From interface com.artfulbits.aiCharts.Base.ILayout.IElement

Public Constructors

public ChartTitle ()

Initializes a new instance of ChartTile class.

public ChartTitle (String text)

Initializes a new instance of ChartTile class with parameter specified.

Parameters
text String value that represents the text.

Public Methods

public Drawable getBackground ()

Gets object used to draw text element.

Returns

public Drawable getDrawable ()

Gets object used to draw text element.

Returns

public String getText ()

Gets the text represented by this chart element.

Returns
  • text value.

public Paint getTextPaint ()

Gets paint that is used to draw this element.

Returns
  • value of TextPaint.

public void layout (Rect inOutBounds)

Sets bounds for this element.

Parameters
inOutBounds instance of Rect representing bounds for element.

public void measure (Point inOutSize)

Measures the element.

Parameters
inOutSize available size to contains the element. This parameter have to be used to return the desired size of element.

public void setBackground (Drawable drawable)

Sets object used to draw text element.

Parameters
drawable instance of Drawable class.

public void setDock (ChartLayoutElement.Dock dock)

Sets docking mode for the legend.

Parameters
dock instance of Dock enumeration.

public void setDrawable (Drawable drawable)

Sets object used to draw text element.

Parameters
drawable instance of Drawable class.

public void setText (String text)

Sets the test for specified chart element.

Parameters
text text value.