public final class AppearanceDictionary extends Object implements com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,XForm>
Annotation appearance dictionary specifying how the annotation shall be presented visually on the page.
Modifier and Type | Method and Description |
---|---|
void |
add(Object key,
Object value)
Deprecated.
|
void |
addItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XForm> item)
Adds pair with key and value into the dictionary.
|
void |
addItem(String key,
XForm value)
Add X form for specifed key.
|
void |
clear()
Removes all elements from the dictionary.
|
boolean |
contains(Object key)
Deprecated.
|
boolean |
containsItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XForm> item)
Checks does specified key-value pair is contained in the dictionary.
|
boolean |
containsKey(String key)
Determines does this dictionary contasins specified key.
|
void |
copyTo(XForm[] array,
int index)
Copies the elements of the dictionary to an Array, starting at a particular Array index.
|
void |
copyToTArray(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XForm>[] array,
int arrayIndex)
Copies the elements of the ICollection to an Array, starting at a particular Array index.
|
XForm |
get_Item(String key)
Represents convenient form for getting appearance streams.
|
XForm |
get(Object key)
Deprecated.
|
com.aspose.pdf.engine.data.IPdfDictionary |
getDict()
Gets pdf dictionary
|
List<String> |
getKeys_()
Gets keys of the dictionary.
|
com.aspose.ms.System.Collections.Generic.IGenericCollection<String> |
getKeys()
Gets keys of the dictionary.
|
Object |
getSyncRoot()
Gets an object that can be used to synchronize access to the dictionary.
|
List<XForm> |
getValues_()
Gets the list of the dictionary values.
|
com.aspose.ms.System.Collections.Generic.IGenericCollection<XForm> |
getValues()
Gets the list of the dictionary values.
|
boolean |
isFixedSize()
Gets a value indicating whether dictionary has a fixed size.
|
boolean |
isReadOnly()
Gets a value indicating whether dictionary is read-only.
|
boolean |
isSynchronized()
Gets a value indicating whether access to the dictionary is synchronized (thread safe).
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XForm>> |
iterator__Rename_Namesake()
Enumerator for the collection.
|
com.aspose.ms.System.Collections.IEnumerator |
iterator_Rename_Namesake()
For internal usage only
Enumerator of the key items.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XForm>> |
iterator()
Returns an IDictionaryEnumerator object for the dictionary.
|
boolean |
removeItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XForm> item)
Removes key/value pair from the collection.
|
boolean |
removeItemByKey(String key)
Removes key from the dictionary.
|
void |
removeItemInternal(Object key)
Deprecated.
|
void |
set_Item(String key,
XForm value) |
void |
set(Object key,
XForm value)
Deprecated.
|
int |
size()
Gets the number of elements contained in the dictionary.
|
boolean |
tryGetValue(String key,
Object[] value)
Tries to find key in the dictionary and retreives value if found.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public com.aspose.pdf.engine.data.IPdfDictionary getDict()
Gets pdf dictionary
public boolean isReadOnly()
Gets a value indicating whether dictionary is read-only.
public boolean isFixedSize()
Gets a value indicating whether dictionary has a fixed size.
public com.aspose.ms.System.Collections.Generic.IGenericCollection<String> getKeys()
Gets keys of the dictionary. If appearance dictionary has subditionaries, then Keys
contains (N|R|D).state values, where N - normal appearance, R - rollover appearance, D - down
appearance and state - the name of the state (e.g. On, Off for checkboxes).
public List<String> getKeys_()
Gets keys of the dictionary. If appearance dictionary has subditionaries, then Keys
contains (N|R|D).state values, where N - normal appearance, R - rollover appearance, D - down
appearance and state - the name of the state (e.g. On, Off for checkboxes).
public com.aspose.ms.System.Collections.Generic.IGenericCollection<XForm> getValues()
Gets the list of the dictionary values. Result collection contains the list of XForm objects.
public List<XForm> getValues_()
Gets the list of the dictionary values. Result collection contains the list of XForm objects.
public boolean isSynchronized()
Gets a value indicating whether access to the dictionary is synchronized (thread safe).
public Object getSyncRoot()
Gets an object that can be used to synchronize access to the dictionary.
public int size()
Gets the number of elements contained in the dictionary.
@Deprecated public boolean contains(Object key)
Determines whether dictionary contains an element with the specified key.
key
- Key to test does it belongs to dictionary.@Deprecated public void removeItemInternal(Object key)
Removes the element with the specified key.
key
- Key which should be deleted.public void clear()
Removes all elements from the dictionary.
@Deprecated public void add(Object key, Object value)
Adds an element with the provided key and value.
key
- Element key.value
- Element value.public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XForm>> iterator()
Returns an IDictionaryEnumerator object for the dictionary.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XForm>>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XForm>>
iterator
in interface Iterable<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XForm>>
public void copyTo(XForm[] array, int index)
Copies the elements of the dictionary to an Array, starting at a particular Array index.
array
- Array where items must be copied.index
- Index where items must be copied.public XForm get_Item(String key)
Represents convenient form for getting appearance streams.
get_Item
in interface com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,XForm>
key
- Represents path to appearance stream. If appearance dictionary has subdictionaries, then path
must contain 2 parts (Keys
), else path has only one part.@Deprecated public XForm get(Object key)
Represents convenient form for getting appearance streams.
key
- Represents path to appearance stream. If appearance dictionary has subdictionaries, then path
must contain 2 parts (Keys
), else path has only one part.@Deprecated public void set(Object key, XForm value)
Represents convenient form for setting appearance streams.
key
- Represents path to appearance stream. If appearance dictionary has subdictionaries, then path
must contain 2 parts (Keys
), else path has only one part.value
- XForm object (appearance stream) which corresponds to the given key.public com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()
Enumerator of the key items.
public boolean containsKey(String key)
Determines does this dictionary contasins specified key.
public boolean removeItemByKey(String key)
Removes key from the dictionary.
public boolean tryGetValue(String key, Object[] value)
Tries to find key in the dictionary and retreives value if found.
public void addItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XForm> item)
Adds pair with key and value into the dictionary.
public boolean containsItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XForm> item)
Checks does specified key-value pair is contained in the dictionary.
public void copyToTArray(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XForm>[] array, int arrayIndex)
Copies the elements of the ICollection to an Array, starting at a particular Array index.
copyToTArray
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XForm>>
array
- The one-dimensional Array that is the destination of the elements copied from ICollection.
The Array must have zero-based indexing.arrayIndex
- The zero-based index in array at which copying begins.public boolean removeItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XForm> item)
Removes key/value pair from the collection.