com.jme3.system
列挙型 JmeContext.Type

java.lang.Object
  上位を拡張 java.lang.Enum<JmeContext.Type>
      上位を拡張 com.jme3.system.JmeContext.Type
すべての実装されたインタフェース:
java.io.Serializable, java.lang.Comparable<JmeContext.Type>
含まれているインタフェース:
JmeContext

public static enum JmeContext.Type
extends java.lang.Enum<JmeContext.Type>

The type of context.


列挙型定数の概要
Canvas
          A canvas type context makes a rendering surface available as an AWT Canvas object that can be embedded in a Swing/AWT frame.
Display
          A display can represent a windowed or a fullscreen-exclusive display.
Headless
          A Headless context is not visible and does not have any drawable surface.
OffscreenSurface
          An OffscreenSurface is a context that is not visible by the user.
 
メソッドの概要
static JmeContext.Type valueOf(java.lang.String name)
          指定した名前を持つこの型の列挙型定数を返します。
static JmeContext.Type[] values()
          この列挙型の定数を含む配列を宣言されている順序で返します。
 
クラス java.lang.Enum から継承されたメソッド
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
クラス java.lang.Object から継承されたメソッド
getClass, notify, notifyAll, wait, wait, wait
 

列挙型定数の詳細

Display

public static final JmeContext.Type Display
A display can represent a windowed or a fullscreen-exclusive display. If windowed, the graphics are rendered to a new on-screen surface enclosed in a window defined by the operating system. Implementations are encouraged to not use AWT or Swing to create the OpenGL display but rather use native operating system functions to set up a native display with the windowing system.


Canvas

public static final JmeContext.Type Canvas
A canvas type context makes a rendering surface available as an AWT Canvas object that can be embedded in a Swing/AWT frame. To retrieve the Canvas object, you should cast the context to JmeCanvasContext.


OffscreenSurface

public static final JmeContext.Type OffscreenSurface
An OffscreenSurface is a context that is not visible by the user. The application can use the offscreen surface to do General Purpose GPU computations or render a scene into a buffer in order to save it as a screenshot, video or send through a network.


Headless

public static final JmeContext.Type Headless
A Headless context is not visible and does not have any drawable surface. The implementation does not provide any display, input, or sound support.

メソッドの詳細

values

public static JmeContext.Type[] values()
この列挙型の定数を含む配列を宣言されている順序で返します。 このメソッドは次のようにして定数を反復するために使用できます:
for (JmeContext.Type c : JmeContext.Type.values())
    System.out.println(c);

戻り値:
この列挙型の定数を宣言されている順序で含む配列

valueOf

public static JmeContext.Type valueOf(java.lang.String name)
指定した名前を持つこの型の列挙型定数を返します。 文字列は、この型の列挙型定数を宣言するのに使用した識別子と厳密に 一致している必要があります (余分な空白文字を含めることはできません)。

パラメータ:
name - 返される列挙型定数の名前
戻り値:
指定された名前を持つ列挙型定数
例外:
java.lang.IllegalArgumentException - 指定された名前を持つ定数を この列挙型が持っていない場合
java.lang.NullPointerException - 引数が null の場合