Spec-Zone .ru
спецификации, руководства, описания, API
|
public enum CacheHint extends java.lang.Enum<CacheHint>
Node.cacheHint
Node.cacheHintProperty()
Enum Constant and Description |
---|
DEFAULT
No additional hint.
|
QUALITY
A hint to tell the bitmap caching mechanism that this node should appear
on screen at the highest visual quality.
|
ROTATE
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).
|
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_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).
|
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.
|
Modifier and Type | Method and Description |
---|---|
static CacheHint |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CacheHint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheHint DEFAULT
public static final CacheHint SPEED
public static final CacheHint QUALITY
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.
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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to