DirectX Media for Animation Java Reference Previous
Previous
Classes
Classes
Index
Index
Next
Next

FontfamilyBvr Class

Methods , Fields

public class FontfamilyBvr extends Behavior {
    // Fields
    public static FontfamilyBvr monospaced;
    public static FontfamilyBvr sansSerifProportional;
    public static FontfamilyBvr serifProportional;
        
    // Methods
    public static FontfamilyBvr newUninitBvr();
}

Creates an object that represents a font behavior. The behavior defines the general attributes of a typeface, such as monospaced or proportional, serif or sans serif. You use this behavior when creating text behaviors with the TextBvr class.


Methods


newUninitBvr

public static FontfamilyBvr newUninitBvr();

This method allows you to refer to an FontfamilyBvr behavior before that behavior has been defined. With this method you can create the behavior and use it in the definition of other behaviors, but not actually define its contents until some later point. (This is accomplished with the init method, which is available on all behaviors.) The system generates a run-time error if you initialize a non-uninitialized behavior, initialize an uninitialized behavior that has already been initialized, or run an initialized behavior that has not yet been initialized.

Return Value:

Returns the FontfamilyBvr object.


Fields

monospaced
Creates font behavior (FontfamilyBvr object) that is always a monospaced font.
sansSerifProportional
Creates font behavior (FontfamilyBvr object) that is always a sans serif proportionally-spaced font (usually Arial).
serifProportional
Creates font behavior (FontfamilyBvr object) that is always a serif proportionally-spaced font (Typically, this is Times New Roman).


Top© 1997 Microsoft Corporation. All rights reserved. Legal Notices.