java.awt
Class RenderingHints
- Cloneable, Map
A collection of (key, value) items that provide 'hints' for the
Graphics2D
rendering pipeline. Because these
items are hints only, they may be ignored by a particular
Graphics2D
implementation.
void | add(RenderingHints hints) - Adds all the hints from a collection to this collection.
|
void | clear() - Clears all the hints from this collection.
|
Object | clone() - Creates a clone of this instance.
|
boolean | containsKey(Object key) - Returns
true if the collection of hints contains the
specified key, and false otherwise.
|
boolean | containsValue(Object value) - Returns
true if the collection of hints contains the
specified value, and false otherwise.
|
Set | entrySet() - Returns a set of entries from the collection.
|
boolean | equals(Object o) - Checks this collection for equality with an arbitrary object.
|
Object | get(Object key) - Returns the value associated with the specified key, or
null
if there is no value defined for the key.
|
int | hashCode() - Returns a hash code for the collection of hints.
|
boolean | isEmpty() - Returns
true if there are no hints in the collection,
and false otherwise.
|
Set | keySet() - Returns a set containing the keys from this collection.
|
Object | put(Object key, Object value) - Adds a (key, value) pair to the collection of hints (if the
collection already contains the specified key, then the
value is updated).
|
void | putAll(Map m) - Adds a collection of (key, value) pairs to the collection.
|
Object | remove(Object key) - Removes a hint from the collection.
|
int | size() - Returns the number of hints in the collection.
|
String | toString() - Returns a string representation of this instance.
|
Collection | values() - Returns a collection of the values from this hint collection.
|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
RenderingHints
public RenderingHints(Map init)
Creates a new collection of hints containing all the (key, value) pairs
in the specified map.
init
- a map containing a collection of hints (null
permitted).
add
public void add(RenderingHints hints)
Adds all the hints from a collection to this collection.
hints
- the hint collection.
clear
public void clear()
Clears all the hints from this collection.
- clear in interface Map
containsKey
public boolean containsKey(Object key)
Returns true
if the collection of hints contains the
specified key, and false
otherwise.
- containsKey in interface Map
key
- the key (null
not permitted).
containsValue
public boolean containsValue(Object value)
Returns true
if the collection of hints contains the
specified value, and false
otherwise.
- containsValue in interface Map
equals
public boolean equals(Object o)
Checks this collection for equality with an arbitrary object.
- equals in interface Map
- equals in interface Object
o
- the object (null
permitted)
get
public Object get(Object key)
Returns the value associated with the specified key, or null
if there is no value defined for the key.
- get in interface Map
key
- the key (null
permitted).
- The value (possibly
null
).
isEmpty
public boolean isEmpty()
Returns true
if there are no hints in the collection,
and false
otherwise.
- isEmpty in interface Map
keySet
public Set keySet()
Returns a set containing the keys from this collection.
- keySet in interface Map
put
public Object put(Object key,
Object value)
Adds a (key, value) pair to the collection of hints (if the
collection already contains the specified key, then the
value is updated).
- put in interface Map
key
- the key.value
- the value.
- the previous value of the key or
null
if the key
didn't have a value yet.
putAll
public void putAll(Map m)
Adds a collection of (key, value) pairs to the collection.
- putAll in interface Map
m
- a map containing (key, value) items.
remove
public Object remove(Object key)
Removes a hint from the collection.
- remove in interface Map
- The value that was associated with the key, or
null
if
the key was not part of the collection
size
public int size()
Returns the number of hints in the collection.
- size in interface Map
values
public Collection values()
Returns a collection of the values from this hint collection. The
collection is backed by the RenderingHints
instance,
so updates to one will affect the other.
- values in interface Map
RenderingHints.java --
Copyright (C) 2000, 2001, 2002, 2004, 2005 Free Software Foundation
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version.