DirectAnimation Animated Header --BooleanBvr Class DirectAnimation Animated Header --BooleanBvr Class* Microsoft DirectAnimation SDK
*Index  *Topic Contents
*Previous Topic: Behavior Class
*Next Topic: BvrCallback Interface

BooleanBvr Class


public class BooleanBvr extends Behavior {
          
    // Methods
    public Object extract();

    public static BooleanBvr newUninitBvr();    
            
   }

A BooleanBvr is an object that represents a boolean behavior. At any given time, the value of the behavior is either true or false.

For more information about behaviors, see the Behavior class.

BooleanBvr Methods

bullet1.gifextract

bullet1.gifnewUninitBvr();


extract

BooleanBvr Class

Extracts the value of the behavior, returning a Java object. This behavior must have a constant value.

public Object extract( );

Return Values

Returns a Java object. For more information about java.lang.Object objects, consult a Java reference.


newUninitBvr();

BooleanBvr Class

Makes it possible to refer to a boolean 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.

public static BooleanBvr newUninitBvr( );

Return Values

Returns the BooleanBvr object.

Relevant Methods from the Statics Class

The following methods are defined in the Statics class and are most relevant to objects of type BooleanBvr:

public static BooleanBvr and(BooleanBvr b1, BooleanBvr b2);

public static BooleanBvr keyState(int keyCode);

public static BooleanBvr not(BooleanBvr b);

public static BooleanBvr or(BooleanBvr b1, BooleanBvr b2);

public static BooleanBvr toBvr(boolean bool);

Relevant Fields from the Statics Class

The following fields are defined in the Statics class and are most relevant to objects of type BooleanBvr:

public final static BooleanBvr falseBvr;

public final static BooleanBvr leftButtonState

public final static BooleanBvr rightButtonState

public final static BooleanBvr trueBvr;

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.

*Top of Page