java.lang.Object | +--java.awt.RenderingHints
Safe:
static java.awt.RenderingHints.Key
KEY_ALPHA_INTERPOLATION
static java.awt.RenderingHints.Key
KEY_FRACTIONALMETRICS
static java.awt.RenderingHints.Key
KEY_STROKE_CONTROL
static Object
VALUE_ALPHA_INTERPOLATION_DEFAULT
static Object
VALUE_ALPHA_INTERPOLATION_QUALITY
static Object
VALUE_ALPHA_INTERPOLATION_SPEED
static Object
VALUE_ANTIALIAS_DEFAULT
static Object
VALUE_ANTIALIAS_OFF
static Object
VALUE_ANTIALIAS_ON
static Object
VALUE_COLOR_RENDER_DEFAULT
static Object
VALUE_COLOR_RENDER_QUALITY
static Object
VALUE_COLOR_RENDER_SPEED
static Object
VALUE_DITHER_DEFAULT
static Object
VALUE_DITHER_DISABLE
static Object
VALUE_DITHER_ENABLE
static Object
VALUE_FRACTIONALMETRICS_DEFAULT
static Object
VALUE_FRACTIONALMETRICS_OFF
static Object
VALUE_FRACTIONALMETRICS_ON
static Object
VALUE_INTERPOLATION_BICUBIC
static Object
VALUE_INTERPOLATION_BILINEAR
static Object
VALUE_INTERPOLATION_NEAREST_NEIGHBOR
static Object
VALUE_RENDER_DEFAULT
static Object
VALUE_RENDER_QUALITY
static Object
VALUE_RENDER_SPEED
static Object
VALUE_STROKE_DEFAULT
static Object
VALUE_STROKE_NORMALIZE
static Object
VALUE_TEXT_ANTIALIAS_DEFAULT
static Object
VALUE_TEXT_ANTIALIAS_OFF
static Object
VALUE_TEXT_ANTIALIAS_ON
RenderingHints(Map init)
RenderingHints(java.awt.RenderingHints.Key key,
Object value)
void
add(RenderingHints hints)
RenderingHints object to this
RenderingHints object.
Object
clone()
RenderingHints object
that has the same contents as this RenderingHints
object.
boolean
containsKey(Object key)
true if this RenderingHints
contains a mapping for the specified key.
boolean
containsValue(Object value)
boolean
equals(Object o)
Object with this
RenderingHints for equality.
Object
put(Object key,
Object value)
key to the specified
value in this RenderingHints object.
void
putAll(Map m)
Map
to this RenderingHints.
Object
remove(Object key)
RenderingHints object.
String
toString()
RenderingHints object.
Collection
values()
Collection view of the values
contained in this RenderinHints.
HashMap hintmap
public static final java.awt.RenderingHints.Key KEY_ANTIALIASING
public static final Object VALUE_ANTIALIAS_ON
public static final Object VALUE_ANTIALIAS_OFF
public static final Object VALUE_ANTIALIAS_DEFAULT
public static final java.awt.RenderingHints.Key KEY_RENDERING
public static final Object VALUE_RENDER_SPEED
public static final Object VALUE_RENDER_QUALITY
public static final Object VALUE_RENDER_DEFAULT
public static final java.awt.RenderingHints.Key KEY_DITHERING
public static final Object VALUE_DITHER_DISABLE
public static final Object VALUE_DITHER_ENABLE
public static final Object VALUE_DITHER_DEFAULT
public static final java.awt.RenderingHints.Key KEY_TEXT_ANTIALIASING
public static final Object VALUE_TEXT_ANTIALIAS_ON
public static final Object VALUE_TEXT_ANTIALIAS_OFF
public static final Object VALUE_TEXT_ANTIALIAS_DEFAULT
public static final java.awt.RenderingHints.Key KEY_FRACTIONALMETRICS
public static final Object VALUE_FRACTIONALMETRICS_OFF
public static final Object VALUE_FRACTIONALMETRICS_ON
public static final Object VALUE_FRACTIONALMETRICS_DEFAULT
public static final java.awt.RenderingHints.Key KEY_INTERPOLATION
public static final Object VALUE_INTERPOLATION_NEAREST_NEIGHBOR
public static final Object VALUE_INTERPOLATION_BILINEAR
public static final Object VALUE_INTERPOLATION_BICUBIC
public static final java.awt.RenderingHints.Key KEY_ALPHA_INTERPOLATION
public static final Object VALUE_ALPHA_INTERPOLATION_SPEED
public static final Object VALUE_ALPHA_INTERPOLATION_QUALITY
public static final Object VALUE_ALPHA_INTERPOLATION_DEFAULT
public static final java.awt.RenderingHints.Key KEY_COLOR_RENDERING
public static final Object VALUE_COLOR_RENDER_SPEED
public static final Object VALUE_COLOR_RENDER_QUALITY
public static final Object VALUE_COLOR_RENDER_DEFAULT
public static final java.awt.RenderingHints.Key KEY_STROKE_CONTROL
public static final Object VALUE_STROKE_DEFAULT
public static final Object VALUE_STROKE_NORMALIZE
public static final Object VALUE_STROKE_PURE
public RenderingHints(Map init)
init - a map of key/value pairs to initialize the hints
or null if the object should be emptypublic RenderingHints(java.awt.RenderingHints.Key key, Object value)
key - the key of the particular hint propertyvalue - the value of the hint property specified with
keypublic int size()
RenderingHints.
RenderingHints.public boolean isEmpty()
true if this
RenderingHints contains no key-value mappings.
true if this
RenderingHints contains no key-value mappings.public boolean containsKey(Object key)
true if this RenderingHints
contains a mapping for the specified key.
containsKey in interface Mapkey - key whose presence in this
RenderingHints is to be tested.
true if this RenderingHints
contains a mapping for the specified key.public boolean containsValue(Object value)
true if and only
if this RenderingHints
contains at least one mapping to a value v such that
(value==null ? v==null : value.equals(v)). This operation will probably require time linear in the
RenderingHints size for most implementations
of RenderingHints.
containsValue in interface Mapvalue - value whose presence in this
RenderingHints is to be tested.
true if this RenderingHints
maps one or more keys to the specified value.public Object get(Object key)
key - a rendering hint key
null if the key is not mapped to any value in
this object.put(Object, Object)public Object put(Object key, Object value)
key to the specified
value in this RenderingHints object.
Neither the key nor the value can be null.
The value can be retrieved by calling the get method
with a key that is equal to the original key.
key - the rendering hint key.value - the rendering hint value.
null if it did not have one.get(Object)public void add(RenderingHints hints)
RenderingHints object to this
RenderingHints object. Keys that are present in
this RenderingHints object, but not in the specified
RenderingHints object are not affected.
hints - the set of key/value pairs to be added to this
RenderingHints objectpublic void clear()
RenderingHints object of all key/value
pairs.
public Object remove(Object key)
RenderingHints object. This method does nothing if the
key is not in this RenderingHints object.
key - the rendering hints key that needs to be removed
RenderingHints object, or null
if the key did not have a mapping.public void putAll(Map m)
Map
to this RenderingHints. These mappings replace
any mappings that this RenderingHints had for any
of the keys currently in the specified Map.
m - the specified Mappublic Set keySet()
Set view of the Keys contained in this
RenderingHints. The Set is backed by the
RenderingHints, so changes to the
RenderingHints are reflected in the Set,
and vice-versa. If the RenderingHints is modified
while an iteration over the Set is in progress,
the results of the iteration are undefined. The Set
supports element removal, which removes the corresponding
mapping from the RenderingHints, via the
Iterator.remove, Set.remove,
removeAll retainAll, and
clear operations. It does not support
the add or addAll operations.
Set view of the keys contained
in this RenderingHints.public Collection values()
Collection view of the values
contained in this RenderinHints.
The Collection is backed by the
RenderingHints, so changes to
the RenderingHints are reflected in
the Collection, and vice-versa.
If the RenderingHints is modified while
an iteration over the Collection is
in progress, the results of the iteration are undefined.
The Collection supports element removal,
which removes the corresponding mapping from the
RenderingHints, via the
Iterator.remove,
Collection.remove, removeAll,
retainAll and clear operations.
It does not support the add or
addAll operations.
Collection view of the values
contained in this RenderingHints.public Set entrySet()
Set view of the mappings contained
in this RenderingHints. Each element in the
returned Set is a Map.Entry.
The Set is backed by the RenderingHints,
so changes to the RenderingHints are reflected
in the Set, and vice-versa. If the
RenderingHints is modified while
while an iteration over the Set is in progress,
the results of the iteration are undefined.
The entrySet returned from a RenderingHints object
is not modifiable.
Set view of the mappings contained in
this RenderingHints.public boolean equals(Object o)
Object with this
RenderingHints for equality.
Returns true if the specified object is also a
Map and the two Map objects represent
the same mappings. More formally, two Map objects
t1 and t2 represent the same mappings
if t1.keySet().equals(t2.keySet()) and for every
key k in t1.keySet(),
(t1.get(k)==null ? t2.get(k)==null : t1.get(k).equals(t2.get(k))). This ensures that the
equals method works properly across
different implementations of the Map interface.
o - Object to be compared for equality with
this RenderingHints.
true if the specified Object
is equal to this RenderingHints.public int hashCode()
RenderingHints.
The hash code of a RenderingHints is defined to be
the sum of the hashCodes of each Entry in the
RenderingHints object's entrySet view. This ensures that
t1.equals(t2) implies that
t1.hashCode()==t2.hashCode() for any two Map
objects t1 and t2, as required by the general
contract of Object.hashCode.
RenderingHints.java.util.Map.Entry#hashCode(),
Object.hashCode(),
Object.equals(Object),
equals(Object)public Object clone()
RenderingHints object
that has the same contents as this RenderingHints
object.
java.lang.Cloneablepublic String toString()
RenderingHints object.