public enum CacheHint extends Enum<CacheHint>
Node.cacheHint
で使用するキャッシュ・ヒントNode.cacheHintProperty()
列挙型定数と説明 |
---|
DEFAULT
追加のヒントはありません。
|
QUALITY
視覚的に最高品質の画面ではこのノードを表示する必要があることをビットマップ・キャッシング・メカニズムに通知するヒント。
|
ROTATE
ノードが回転した場合に、(ノードの再レンダリングではなく)キャッシュされたビットマップの回転によるペイントが許容されることをビットマップ・キャッシング・メカニズムに通知するヒント。
|
SCALE
ノードがスケール・アップまたはダウンされた場合に、(ノードの再レンダリングではなく)キャッシュされたビットマップのスケーリングによるペイントが許容されることをビットマップ・キャッシング・メカニズムに通知するヒント。
|
SCALE_AND_ROTATE
ノードのスケーリングまたは回転(あるいはその両方)が行われた場合に、(ノードの再レンダリングではなく)キャッシュされたビットマップのスケーリングまたは回転(あるいはその両方)によるペイントが許容されることをビットマップ・キャッシング・メカニズムに通知するヒント。
|
SPEED
このノードがアニメーションで、アニメーションを滑らかに維持するために、可能なかぎりビットマップ・キャッシュからペイントする必要があることをビットマップ・キャッシング・メカニズムに通知するヒント。
|
public static final CacheHint DEFAULT
public static final CacheHint SPEED
public static final CacheHint QUALITY
トレードオフとして、アニメーションの場合は、ノードのレンダリング方法に微妙な変動が発生する可能性があり、このため、cacheHintのQUALITYを使用するノードについては、アニメーションの最中にそのような微妙な変動が見えない場合でも、ノードの再レンダリングが必要になることがあります。そのため、cacheHintのQUALITYを使用するノードは、アニメーション中にそのcacheHintをより許容度の高い値(SPEED
など)と置き換えることによりメリットが得られる場合があります。
public static final CacheHint SCALE
public static final CacheHint ROTATE
public static final CacheHint SCALE_AND_ROTATE
public static CacheHint[] values()
for (CacheHint c : CacheHint.values()) System.out.println(c);
public static CacheHint valueOf(String name)
name
- 返される列挙型定数の名前。IllegalArgumentException
- 指定された名前を持つ定数をこの列挙型が持っていない場合NullPointerException
- 引数がnullの場合Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.