Java Doc for AttributeMap.java in  » Internationalization-Localization » icu4j » com » ibm » richtext » textlayout » attributes » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Internationalization Localization » icu4j » com.ibm.richtext.textlayout.attributes 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ibm.richtext.textlayout.attributes.AttributeMap

AttributeMap
final public class AttributeMap implements java.util.Map,com.ibm.richtext.textlayout.attributes.Map,Externalizable(Code)
AttributeMap is an immutable Map. Additionally, there are several methods for common operations (union, remove, intersect); these methods return new AttributeMap instances.

Although any non-null Object can be a key or value in an AttributeMap, typically the keys are fields of TextAttribute.
See Also:   TextAttribute



Field Summary
final static  StringCOPYRIGHT
    
final public static  AttributeMapEMPTY_ATTRIBUTE_MAP
     An empty AttributeMap.

Constructor Summary
public  AttributeMap()
     Create a new, empty AttributeMap.
public  AttributeMap(java.util.Map map)
     Create an AttributeMap with the same key-value entries as the given Map.
Parameters:
  map - a Map whose key-value entries willbecome the entries for this AttributeMap.
public  AttributeMap(Hashtable hashtable)
     Create an AttributeMap with the same key-value entries as the given Hashtable.
Parameters:
  hashtable - a Hashtable whose key-value entries willbecome the entries for this AttributeMap.
public  AttributeMap(Object key, Object value)
     Create an AttributeMap with a single entry of {attribute, value}.

Method Summary
public  AttributeMapaddAttribute(Object key, Object value)
     Return a AttributeMap which contains entries in this AttributeMap, along with an entry for .
public  AttributeMapaddAttributes(AttributeMap rhs)
     Return a AttributeMap which contains entries in this AttributeMap and in rhs.
public  AttributeMapaddAttributes(java.util.Map rhs)
     Return a AttributeMap which contains entries in this AttributeMap and in rhs.
public  voidclear()
     Throws UnsupportedOperationException.
public  booleancontainsKey(Object key)
     Return true if the given key is in this AttributeMap.
public  booleancontainsValue(Object value)
     Return true if the given value is in this AttributeMap.
public  SetentrySet()
     Return a Set containing all entries in this AttributeMap.
public  booleanequals(Object rhs)
    
public  Objectget(Object key)
     Return the value associated with the given key.
public  AttributeSetgetKeySet()
     Return an AttributeSet containing every key in this AttributeMap.
public  inthashCode()
    
public  AttributeMapintersectWith(AttributeSet attributes)
     Return a AttributeMap with the keys of this AttributeMap which are also in the Set.
public  AttributeMapintersectWith(Set attributes)
     Return a AttributeMap with the keys of this AttributeMap which are also in the Set.
public  booleanisEmpty()
     Return true if the number of entries in the AttributeMap is 0.
public  SetkeySet()
     Return an AttributeSet containing every key in this AttributeMap.
public  Objectput(Object key, Object value)
     Throws UnsupportedOperationException.
public  voidputAll(java.util.Map t)
     Throws UnsupportedOperationException.
public  voidputAllInto(java.util.Map rhs)
     Put all entries in this AttributeMap into the given Map.
public  voidreadExternal(ObjectInput in)
    
public  Objectremove(Object key)
     Throws UnsupportedOperationException.
public  AttributeMapremoveAttribute(Object attribute)
     Return a AttributeMap with the entries in this AttributeMap, but without attribute as a key.
public  AttributeMapremoveAttributes(AttributeSet attributes)
     Return a AttributeMap with the entries of this AttributeMap whose attributes are not in the Set.
public  AttributeMapremoveAttributes(Set attributes)
     Return a AttributeMap with the entries of this AttributeMap whose attributes are not in the Set.
public  intsize()
     Return the number of entries in the AttributeMap.
public  StringtoString()
    
public  Collectionvalues()
     Return a Collection containing every value in this AttributeMap.
public  voidwriteExternal(ObjectOutput out)
    

Field Detail
COPYRIGHT
final static String COPYRIGHT(Code)



EMPTY_ATTRIBUTE_MAP
final public static AttributeMap EMPTY_ATTRIBUTE_MAP(Code)
An empty AttributeMap.




Constructor Detail
AttributeMap
public AttributeMap()(Code)
Create a new, empty AttributeMap. EMPTY_STYLE_SET can be used in place of an AttributeMap produced by this constructor.



AttributeMap
public AttributeMap(java.util.Map map)(Code)
Create an AttributeMap with the same key-value entries as the given Map.
Parameters:
  map - a Map whose key-value entries willbecome the entries for this AttributeMap. mapis not modified, and must not contain null keys or values.



AttributeMap
public AttributeMap(Hashtable hashtable)(Code)
Create an AttributeMap with the same key-value entries as the given Hashtable.
Parameters:
  hashtable - a Hashtable whose key-value entries willbecome the entries for this AttributeMap. tableis not modified.



AttributeMap
public AttributeMap(Object key, Object value)(Code)
Create an AttributeMap with a single entry of {attribute, value}.
Parameters:
  key - the key in this AttributeMap's single entry
Parameters:
  value - the value in this AttributeMap's single entry




Method Detail
addAttribute
public AttributeMap addAttribute(Object key, Object value)(Code)
Return a AttributeMap which contains entries in this AttributeMap, along with an entry for . If attribute is already present in this AttributeMap its value becomes value.



addAttributes
public AttributeMap addAttributes(AttributeMap rhs)(Code)
Return a AttributeMap which contains entries in this AttributeMap and in rhs. If an attribute appears in both StyleSets the value from rhs is used.



addAttributes
public AttributeMap addAttributes(java.util.Map rhs)(Code)
Return a AttributeMap which contains entries in this AttributeMap and in rhs. If an attribute appears in both StyleSets the value from rhs is used. The Map's keys and values must be non-null.



clear
public void clear()(Code)
Throws UnsupportedOperationException.
See Also:   AttributeMap.EMPTY_ATTRIBUTE_MAP
throws:
  UnsupportedOperationException -



containsKey
public boolean containsKey(Object key)(Code)
Return true if the given key is in this AttributeMap.
Parameters:
  key - the key to test true if key is in this AttributeMap



containsValue
public boolean containsValue(Object value)(Code)
Return true if the given value is in this AttributeMap.
Parameters:
  value - the value to test true if value is in this AttributeMap



entrySet
public Set entrySet()(Code)
Return a Set containing all entries in this AttributeMap.



equals
public boolean equals(Object rhs)(Code)



get
public Object get(Object key)(Code)
Return the value associated with the given key. If the key is not in this AttributeMap null is returned.
Parameters:
  key - the key to look up the value associated with key, ornull if key is not in this AttributeMap



getKeySet
public AttributeSet getKeySet()(Code)
Return an AttributeSet containing every key in this AttributeMap. an AttributeSet containing every key in this AttributeMap



hashCode
public int hashCode()(Code)



intersectWith
public AttributeMap intersectWith(AttributeSet attributes)(Code)
Return a AttributeMap with the keys of this AttributeMap which are also in the Set. The set must not contain null.



intersectWith
public AttributeMap intersectWith(Set attributes)(Code)
Return a AttributeMap with the keys of this AttributeMap which are also in the Set. The set must not contain null.



isEmpty
public boolean isEmpty()(Code)
Return true if the number of entries in the AttributeMap is 0. true if the number of entries in the AttributeMapis 0



keySet
public Set keySet()(Code)
Return an AttributeSet containing every key in this AttributeMap. an AttributeSet containing every key in this AttributeMap



put
public Object put(Object key, Object value)(Code)
Throws UnsupportedOperationException.
See Also:   AttributeMap.addAttribute
throws:
  UnsupportedOperationException -



putAll
public void putAll(java.util.Map t)(Code)
Throws UnsupportedOperationException.
See Also:   AttributeMap.addAttributes
throws:
  UnsupportedOperationException -



putAllInto
public void putAllInto(java.util.Map rhs)(Code)
Put all entries in this AttributeMap into the given Map.
Parameters:
  rhs - the Map into which entries are placed



readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)



remove
public Object remove(Object key)(Code)
Throws UnsupportedOperationException.
See Also:   AttributeMap.removeAttributes
throws:
  UnsupportedOperationException -



removeAttribute
public AttributeMap removeAttribute(Object attribute)(Code)
Return a AttributeMap with the entries in this AttributeMap, but without attribute as a key.



removeAttributes
public AttributeMap removeAttributes(AttributeSet attributes)(Code)
Return a AttributeMap with the entries of this AttributeMap whose attributes are not in the Set.



removeAttributes
public AttributeMap removeAttributes(Set attributes)(Code)
Return a AttributeMap with the entries of this AttributeMap whose attributes are not in the Set.



size
public int size()(Code)
Return the number of entries in the AttributeMap. the number of entries in the AttributeMap



toString
public String toString()(Code)



values
public Collection values()(Code)
Return a Collection containing every value in this AttributeMap. a Collection containing every value in this AttributeMap



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.