Example usage for javax.media.j3d InputDevice BLOCKING

List of usage examples for javax.media.j3d InputDevice BLOCKING

Introduction

In this page you can find the example usage for javax.media.j3d InputDevice BLOCKING.

Prototype

int BLOCKING

To view the source code for javax.media.j3d InputDevice BLOCKING.

Click Source Link

Document

Signifies that the driver for a device is a blocking driver and that it should be scheduled for regular reads by Java 3D.

Usage

From source file:HelloUniverse.java

public void setProcessingMode(int mode) {

    // A typical driver might implement only one of these modes, and
    // throw an exception when there is an attempt to switch modes.
    // However, this example allows one to use any processing mode.

    switch (mode) {
    case InputDevice.DEMAND_DRIVEN:
    case InputDevice.NON_BLOCKING:
    case InputDevice.BLOCKING:
        processingMode = mode;/*from   w ww .  ja va  2  s .c o  m*/
        break;
    default:
        throw new IllegalArgumentException(
                "Processing mode must " + "be one of DEMAND_DRIVEN, NON_BLOCKING, or BLOCKING");
    }
}