|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |
public interface irunattrsource
the description here applies to all ixxxattrsource interfaces. in our model, different objects, for example style and paragraph, can both have paragraph formatting and it is exposed as paragraphformat to the public. the problem is that paragraph formatting on style and paragraph is resolved differently. for example, when getting an attribute from a style, it needs to look in the attributes of the style and then navigate through the based-on styles. when getting and attribute from a paragraph, need to look for direct formatting, then get the style of the paragraph and look for the attribute in the style. it is the purpose of ixxxattrsource interfaces to solve this problem and allow single paragraphformat to expose paragraph attributes to the public, yet allow variation in attribute resolution depending on what object paragraphformat is obtained from.
method summary | |
---|---|
void |
clearrunattrs()
clears run attributes. |
java.lang.object |
fetchinheritedrunattr(int key)
gets the attribute from one of the parents or from global defaults. |
java.lang.object |
getdirectrunattr(int key)
gets the attribute specified directly on the source or null by the key. |
void |
getdirectrunattrbyindex(int index,
int[] key,
java.lang.object[] value)
gets the attribute specified directly on the source by the index. |
int |
getdirectrunattrscount()
count of attribute records in direct formatting. |
void |
setrunattr(int key,
java.lang.object value)
sets run attribute. |
method detail |
---|
java.lang.object getdirectrunattr(int key)
key
- key
int getdirectrunattrscount()
void getdirectrunattrbyindex(int index, int[] key, java.lang.object[] value)
index
- intkey
- leysvalue
- objectsjava.lang.object fetchinheritedrunattr(int key)
key
- key
void setrunattr(int key, java.lang.object value)
key
- keyvalue
- objectvoid clearrunattrs()
|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |