|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.transcoder.TranscodingHints
The TranscodingHints class contains transcoding hints that can be used by Transcoder class.
Inner Class Summary | |
static class |
TranscodingHints.Key
Defines the base type of all keys used to control various aspects of the trancoding operations. |
Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
Field Summary | |
static TranscodingHints.Key |
KEY_BACKGROUND
Background color key. |
static TranscodingHints.Key |
KEY_DEFAULT_VIEWPORT
The default viewport. |
static TranscodingHints.Key |
KEY_GVT_BUILDER
The GVTBuilder implementation to use. |
static TranscodingHints.Key |
KEY_XML_PARSER_CLASSNAME
The XML parser classname key. |
Constructor Summary | |
TranscodingHints()
Constructs a new empty object. |
|
TranscodingHints(java.util.Map init)
Constructs a new object with keys and values initialized from the specified Map object (which may be null). |
|
TranscodingHints(TranscodingHints.Key key,
java.lang.Object value)
Constructs a new object with the specified key/value pair. |
Method Summary | |
void |
add(TranscodingHints hints)
Adds all of the keys and corresponding values from the specified TranscodingHints object to this TranscodingHints object. |
void |
clear()
Clears this TranscodingHints object of all key/value pairs. |
java.lang.Object |
clone()
Creates a clone of this TranscodingHints object that has the same contents as this TranscodingHints object. |
boolean |
containsKey(java.lang.Object key)
Returns true if this TranscodingHints contains a mapping for the specified key, false otherwise. |
boolean |
containsValue(java.lang.Object value)
Returns true if this TranscodingHints maps one or more keys to the specified value. |
java.util.Set |
entrySet()
Returns a Set view of the mappings contained in this TranscodingHints. |
boolean |
equals(java.lang.Object o)
Compares the specified Object with this TranscodingHints for equality. |
java.lang.Object |
get(java.lang.Object key)
Returns the value to which the specified key is mapped. |
int |
hashCode()
Returns the hash code value for this TranscodingHints. |
boolean |
isEmpty()
Returns true if this TranscodingHints contains no key-value mappings, false otherwise. |
java.util.Set |
keySet()
Returns a Set view of the Keys contained in this TranscodingHints. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Maps the specified key to the specified value in this TranscodingHints object. |
void |
putAll(java.util.Map m)
Copies all of the mappings from the specified Map to this TranscodingHints. |
java.lang.Object |
remove(java.lang.Object key)
Removes the key and its corresponding value from this TranscodingHints object. |
int |
size()
Returns the number of key-value mappings in this TranscodingHints. |
java.util.Collection |
values()
Returns a Collection view of the values contained in this TranscodingHints. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final TranscodingHints.Key KEY_BACKGROUND
public static final TranscodingHints.Key KEY_XML_PARSER_CLASSNAME
public static final TranscodingHints.Key KEY_DEFAULT_VIEWPORT
public static final TranscodingHints.Key KEY_GVT_BUILDER
Constructor Detail |
public TranscodingHints()
public TranscodingHints(java.util.Map init)
init
- a map of key/value pairs to initialize the hints
or null if the object should be emptypublic TranscodingHints(TranscodingHints.Key key, java.lang.Object value)
key
- the key of the particular hint propertyvalue
- the value of the hint property specified with
keyMethod Detail |
public int size()
size
in interface java.util.Map
public boolean isEmpty()
isEmpty
in interface java.util.Map
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map
key
- key whose present in this TranscodingHints
is to be tested.public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map
value
- value whose presence in this TranscodingHints
is to be tested.public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
key
- a trancoding hint keyjava.lang.ClassCastException
- key is not of type
TranscodingHints.Keypublic java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
key
- the trancoding hint key.value
- the trancoding hint value.IllegalArgumentException
- value is not
appropriate for the specified key.java.lang.ClassCastException
- key is not of type
TranscodingHints.Keypublic void add(TranscodingHints hints)
public void clear()
clear
in interface java.util.Map
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map
key
- the trancoding hints key that needs to be removedjava.lang.ClassCastException
- key is not of type
TranscodingHints.Keypublic void putAll(java.util.Map m)
putAll
in interface java.util.Map
t
- mappings to be stored in this TranscodingHints.java.lang.ClassCastException
- key is not of type
TranscodingHints.Keypublic java.util.Set keySet()
keySet
in interface java.util.Map
public java.util.Collection values()
values
in interface java.util.Map
public java.util.Set entrySet()
entrySet
in interface java.util.Map
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Map
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |