|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.RenderingHints.Key
org.geotools.factory.Hints.Key
public static class Hints.Key
The type for keys used to control various aspects of the factory creation. Factory creation impacts rendering (which is why extending rendering key is not a complete non-sense), but may impact other aspects of an application as well.
Constructor Summary | |
---|---|
Hints.Key(java.lang.Class<?> classe)
Constructs a new key for values of the given class. |
Method Summary | |
---|---|
java.lang.Class<?> |
getValueClass()
Returns the expected class for values stored under this key. |
boolean |
isCompatibleValue(java.lang.Object value)
Returns true if the specified object is a valid value for
this key. |
java.lang.String |
toString()
Returns a string representation of this key. |
Methods inherited from class java.awt.RenderingHints.Key |
---|
equals, hashCode, intKey |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Hints.Key(java.lang.Class<?> classe)
classe
- The base class for all valid values.Method Detail |
---|
public java.lang.Class<?> getValueClass()
public boolean isCompatibleValue(java.lang.Object value)
true
if the specified object is a valid value for
this key. The default implementation checks if the specified value
is an instance of the value class.
Note that many hint keys defined in the Hints
class relax this rule and accept
Class
object assignable to the expected value class
as well.
isCompatibleValue
in class java.awt.RenderingHints.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)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |