APIdia Launch Partner
Top Description Fields Constructors Methods
javafx.scene

public final Enum CacheHint

extends Enum<CacheHint>
Class Inheritance

Cache hints for use with Node.cacheHint
Since
JavaFX 2.0
See Also
Node#cacheHintProperty

Field Summary

Modifier and TypeField and Description
public static final CacheHint
DEFAULT

No additional hint.

public static final CacheHint
QUALITY

A hint to tell the bitmap caching mechanism that this node should appear on screen at the highest visual quality.

public static final CacheHint
ROTATE

A hint to tell the bitmap caching mechanism that if the node is rotated, it is acceptable to paint it by rotating the cached bitmap (rather than re-rendering the node).

public static final CacheHint
SCALE

A hint to tell the bitmap caching mechanism that if the node is scaled up or down, it is acceptable to paint it by scaling the cached bitmap (rather than re-rendering the node).

public static final CacheHint
SCALE_AND_ROTATE

A hint to tell the bitmap caching mechanism that if the node is scaled and/or rotated, it is acceptable to paint it by scaling and/or rotating the cached bitmap (rather than re-rendering the node).

public static final CacheHint
SPEED

A hint to tell the bitmap caching mechanism that this node is animating, and should be painted from the bitmap cache whenever possible in order to maintain smooth animation.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static CacheHint
public static CacheHint[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DEFAULTback to summary
public static final CacheHint DEFAULT

No additional hint. The system will determine the best use of the bitmap cache.

QUALITYback to summary
public static final CacheHint QUALITY

A hint to tell the bitmap caching mechanism that this node should appear on screen at the highest visual quality. The cached bitmap will only be used when it will not degrade the node's appearance on screen.

The trade-off is that animations may cause subtle variations in the way that a node would be rendered, and so a node with a cacheHint of QUALITY may be required to re-render a node even when such subtle variations would not be visible in the midst of an animation. As such, a node with a cacheHint of QUALITY will often benefit from having its cacheHint replaced with a more permissive value (such as SPEED) during the period of the animation.

ROTATEback to summary
public static final CacheHint ROTATE

A hint to tell the bitmap caching mechanism that if the node is rotated, it is acceptable to paint it by rotating the cached bitmap (rather than re-rendering the node).

SCALEback to summary
public static final CacheHint SCALE

A hint to tell the bitmap caching mechanism that if the node is scaled up or down, it is acceptable to paint it by scaling the cached bitmap (rather than re-rendering the node).

SCALE_AND_ROTATEback to summary
public static final CacheHint SCALE_AND_ROTATE

A hint to tell the bitmap caching mechanism that if the node is scaled and/or rotated, it is acceptable to paint it by scaling and/or rotating the cached bitmap (rather than re-rendering the node).

SPEEDback to summary
public static final CacheHint SPEED

A hint to tell the bitmap caching mechanism that this node is animating, and should be painted from the bitmap cache whenever possible in order to maintain smooth animation. The trade-off is that this may result in decreased visual quality.

Constructor Detail

CacheHintback to summary
private CacheHint()

Method Detail

valueOfback to summary
public static CacheHint valueOf(String name)
valuesback to summary
public static CacheHint[] values()