APIdia Launch Partner
Top Fields Constructors Methods
sun.font

public final Class AttributeMap

extends AbstractMap<TextAttribute, Object>
Class Inheritance
Imports
java.awt.Paint, java.awt.font.GraphicAttribute, .NumericShaper, .TextAttribute, .TransformAttribute, java.awt.geom.AffineTransform, java.awt.im.InputMethodHighlight, java.text.AttributedCharacterIterator.Attribute, java.util.AbstractMap, .HashMap, .Map, .Set, .Map.Entry

Field Summary

Modifier and TypeField and Description
private Map<TextAttribute, Object>
private static boolean
private AttributeValues

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private Map<TextAttribute, Object>
public Set<Map.Entry<TextAttribute, Object>>
entrySet()

Implements abstract java.util.AbstractMap.entrySet.

Implements java.util.Map.entrySet.

Returns a Set view of the mappings contained in this map.

public AttributeValues
public Object
put(TextAttribute key, Object value)

Overrides java.util.AbstractMap.put.

Implements java.util.Map.put.

Associates the specified value with the specified key in this map (optional operation).

public String
toString()

Overrides java.util.AbstractMap.toString.

Returns a string representation of this map.

Inherited from java.util.AbstractMap:
clearclonecontainsKeycontainsValueequalsgethashCodeisEmptykeySetputAllremovesizevalues

Field Detail

delegateMapback to summary
private Map<TextAttribute, Object> delegateMap
firstback to summary
private static boolean first
valuesback to summary
private AttributeValues values

Hides java.util.AbstractMap.values.

Constructor Detail

AttributeMapback to summary
public AttributeMap(AttributeValues values)

Method Detail

delegateback to summary
private Map<TextAttribute, Object> delegate()
entrySetback to summary
public Set<Map.Entry<TextAttribute, Object>> entrySet()

Implements abstract java.util.AbstractMap.entrySet.

Implements java.util.Map.entrySet.

Doc from java.util.Map.entrySet.

Returns a Set view of the mappings contained in this map. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. If the map is modified while an iteration over the set is in progress (except through the iterator's own remove operation, or through the setValue operation on a map entry returned by the iterator) the results of the iteration are undefined. The set supports element removal, which removes the corresponding mapping from the map, via the Iterator.remove, Set.remove, removeAll, retainAll and clear operations. It does not support the add or addAll operations.

getValuesback to summary
public AttributeValues getValues()
putback to summary
public Object put(TextAttribute key, Object value)

Overrides java.util.AbstractMap.put.

Implements java.util.Map.put.

Doc from java.util.AbstractMap.put.

Associates the specified value with the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value. (A map m is said to contain a mapping for a key k if and only if m.containsKey(k) would return true.)

toStringback to summary
public String toString()

Overrides java.util.AbstractMap.toString.

Doc from java.util.AbstractMap.toString.

Returns a string representation of this map. The string representation consists of a list of key-value mappings in the order returned by the map's entrySet view's iterator, enclosed in braces ("{}"). Adjacent mappings are separated by the characters ", " (comma and space). Each key-value mapping is rendered as the key followed by an equals sign ("=") followed by the associated value. Keys and values are converted to strings as by String#valueOf(Object).