Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

alignment: number
color: number
isBold: boolean
isCursive: boolean
isUnderlined: boolean
shadow: number
size: number
ALIGN_CENTER: number

Aligns text to the start of the element (left for English locale)

ALIGN_CENTER_HORIZONTAL: number

Aligns text to the center of the element horizontally

ALIGN_DEFAULT: number

Aligns text to the center of the element

ALIGN_END: number

Aligns text to the end of the element (right for English locale)

Methods

  • clone(): any
  • drawText(canvas: Canvas, x: number, y: number, text: string, scale: number): void
  • Draws text on the canvas using created font

    Parameters

    • canvas: Canvas

      [[android.graphics.Canvas]] instance to draw the text on

    • x: number

      x coordinate of the text in pixels

    • y: number

      x coordinate of the text in pixels

    • text: string

      text string to draw

    • scale: number

      additional scale to apply to the text

    Returns void

  • equals(param0: any): boolean
  • Parameters

    • param0: any

    Returns boolean

  • finalize(): void
  • getBounds(text: string, x: number, y: number, scale: number): Rect
  • Calculates bounds of the text given text position, text string and additional scale

    Parameters

    • text: string
    • x: number
    • y: number
    • scale: number

    Returns Rect

    [[android.graphics.Rect]] object containing calculated bounds of the text

  • getClass(): Class<any>
  • getTextHeight(text: string, x: number, y: number, scale: number): number
  • Calculates text height given text string and additional scale

    Parameters

    • text: string
    • x: number
    • y: number
    • scale: number

    Returns number

    height of the specified string when painted with specified scale

  • getTextWidth(text: string, scale: number): number
  • Calculates text width given text string and additional scale

    Parameters

    • text: string
    • scale: number

    Returns number

    width of the specified string when painted with specified scale

  • hashCode(): number
  • notify(): void
  • notifyAll(): void
  • toString(): string
  • wait(): void
  • wait(param0: number): void
  • wait(param0: number, param1: number): void
  • Returns void

  • Parameters

    • param0: number

    Returns void

  • Parameters

    • param0: number
    • param1: number

    Returns void

Generated using TypeDoc