|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectRenderingHints.Key
Hints.Key
Hints.DoubleKey
public static final class Hints.DoubleKey
A hint used to capture a configuration setting as double.
A default value is provided and may be checked with getDefault()
.
modules/library/metadata (gt-metadata.jar)
Constructor Summary | |
---|---|
Hints.DoubleKey(double number)
Creates a new key with the specified default value. |
Method Summary | |
---|---|
double |
getDefault()
Returns the default value. |
boolean |
isCompatibleValue(Object value)
Returns true if the specified object is a valid integer. |
double |
toValue(Hints hints)
Returns the value from the specified hints as a double. |
Methods inherited from class Hints.Key |
---|
getValueClass, toString |
Methods inherited from class RenderingHints.Key |
---|
equals, hashCode, intKey |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Hints.DoubleKey(double number)
number
- The default value.Method Detail |
---|
public double getDefault()
public double toValue(Hints hints)
hints
- The map where to fetch the hint value, or null
.
public boolean isCompatibleValue(Object value)
true
if the specified object is a valid integer.
isCompatibleValue
in class Hints.Key
value
- The object to test for validity.
true
if the value is valid; false
otherwise.Hints.ClassKey.isCompatibleValue(java.lang.Object)
,
Hints.FileKey.isCompatibleValue(java.lang.Object)
,
Hints.IntegerKey.isCompatibleValue(java.lang.Object)
,
Hints.OptionKey.isCompatibleValue(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |