Search Results for

    Show / Hide Table of Contents

    Class FontStyle

    Defines a class for specifying of 2D font style used to draw text on the IRenderSurface

    Inheritance
    Object
    Style
    FontStyle
    Inherited Members
    Style.isVisible()
    Object.clone()
    Object.equals(Object)
    Object.finalize()
    Object.getClass()
    Object.hashCode()
    Object.notify()
    Object.notifyAll()
    Object.toString()
    Object.wait()
    Object.wait(long)
    Object.wait(long,int)
    Namespace:
    Assembly: .dll
    Syntax
    public class FontStyle extends Style

    Constructors

    FontStyle(Typeface typeface, float textSize, int textColor, boolean antiAliasing)

    Creates an instance of FontStyle with specified arguments.

    Declaration
    public FontStyle(Typeface typeface, float textSize, int textColor, boolean antiAliasing)
    Parameters
    Type Name Description
    android.graphics.Typeface typeface

    The Typeface value.

    float textSize

    The value which determines the font size.

    int textColor

    The text color.

    boolean antiAliasing

    The value indicating whether the text should use antialiasing or no

    FontStyle(float textSize, int textColor)

    Creates an instance of FontStyle with specified arguments.

    Declaration
    public FontStyle(float textSize, int textColor)
    Parameters
    Type Name Description
    float textSize

    The value which determines the font size.

    int textColor

    The text color.

    Fields

    DEFAULT_FONT_STYLE

    Declaration
    public static final FontStyle DEFAULT_FONT_STYLE
    Field Value
    Type Description

    antiAliasing

    Declaration
    public final boolean antiAliasing
    Field Value
    Type Description
    boolean

    textColor

    Declaration
    public final int textColor
    Field Value
    Type Description
    int

    textSize

    Declaration
    public final float textSize
    Field Value
    Type Description
    float

    typeface

    Declaration
    public final Typeface typeface
    Field Value
    Type Description
    android.graphics.Typeface

    Methods

    equals(Object o)

    Declaration
    public boolean equals(Object o)
    Parameters
    Type Name Description
    Object o
    Returns
    Type Description
    boolean
    Overrides
    Object.equals(Object)

    hashCode()

    Declaration
    public int hashCode()
    Returns
    Type Description
    int
    Overrides
    Object.hashCode()

    initPaint(Paint paint)

    Initialises a Paint with this FontStyle values

    Declaration
    public void initPaint(Paint paint)
    Parameters
    Type Name Description
    android.graphics.Paint paint

    The Paint to init

    initTextView(TextView textView)

    Initialises a TextView with this FontStyle values

    Declaration
    public void initTextView(TextView textView)
    Parameters
    Type Name Description
    android.widget.TextView textView

    The TextView to init

    isVisible()

    Gets whether this style is visible

    Declaration
    public boolean isVisible()
    Returns
    Type Description
    boolean
    Overrides
    Style.isVisible()
    Back to top © 2011-2025 SciChart. All rights reserved. | sitemap.xml