|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectRenderingHints.Key
Hints.Key
Hints.IntegerKey
public static final class Hints.IntegerKey
A hint used to capture a configuration setting as an integer.
A default value is provided and may be checked with getDefault().
| Constructor Summary | |
|---|---|
Hints.IntegerKey(int number)
Creates a new key with the specified default value. |
|
| Method Summary | |
|---|---|
int |
getDefault()
Returns the default value. |
boolean |
isCompatibleValue(Object value)
Returns true if the specified object is a valid integer. |
int |
toValue(Hints hints)
Returns the value from the specified hints as an integer. |
| 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.IntegerKey(int number)
number - The default value.| Method Detail |
|---|
public int getDefault()
public int 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.Keyvalue - 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),
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 | |||||||||