JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

expand all

Profile: desktop, common

Overview

Cache hints for use with Node.cacheHint

See Also:
Node.cacheHint

Profile: common

Field Summary

accessnametypedescription
public static finalDEFAULTCacheHint

No additional hint.

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

Profile: common

 
public static finalQUALITYCacheHint

A hint to tell the bitmap caching mechanism that this node should appear on screen at the highest visual 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.

Profile: common

 
public static finalROTATECacheHint

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

public static finalSCALECacheHint

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 finalSCALE_AND_ROTATECacheHint

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 finalSPEEDCacheHint

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.

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.

Profile: common

 

Inherited Variables

Method Summary

public static CacheHint valueOf(java.lang.String name)
Parameters
name
Returns
CacheHint
 
public static CacheHint[] values()
Returns
CacheHint[]
 

Inherited Functions