| java.lang.Object org.apache.poi.hslf.model.textproperties.TextProp
All known Subclasses: org.apache.poi.hslf.model.textproperties.AlignmentTextProp, org.apache.poi.hslf.model.textproperties.BitMaskTextProp,
TextProp | public class TextProp implements Cloneable(Code) | | Definition of a property of some text, or its paragraph. Defines
how to find out if it's present (via the mask on the paragraph or
character "contains" header field), how long the value of it is,
and how to get and set the value.
As the exact form of these (such as mask value, size of data
block etc) is different for StyleTextProps and
TxMasterTextProps, the definitions of the standard
TextProps is stored in the different record classes
|
Constructor Summary | |
public | TextProp(int sizeOfDataBlock, int maskInHeader, String propName) Generate the definition of a given type of text property. |
Method Summary | |
public Object | clone() Clone, eg when you want to actually make use of one of these. | public int | getMask() Mask in the paragraph or character "contains" header field
that indicates that this text property is present. | public String | getName() | public int | getSize() | public int | getValue() | public int | getWriteMask() Get the mask that's used at write time. | public void | setValue(int val) Set the value of the text property. |
dataValue | protected int dataValue(Code) | | |
maskInHeader | protected int maskInHeader(Code) | | |
sizeOfDataBlock | protected int sizeOfDataBlock(Code) | | |
TextProp | public TextProp(int sizeOfDataBlock, int maskInHeader, String propName)(Code) | | Generate the definition of a given type of text property.
|
clone | public Object clone()(Code) | | Clone, eg when you want to actually make use of one of these.
|
getMask | public int getMask()(Code) | | Mask in the paragraph or character "contains" header field
that indicates that this text property is present.
|
getName | public String getName()(Code) | | Name of the text property
|
getSize | public int getSize()(Code) | | Size of the data section of the text property (2 or 4 bytes)
|
getValue | public int getValue()(Code) | | Fetch the value of the text property (meaning is specific to
each different kind of text property)
|
getWriteMask | public int getWriteMask()(Code) | | Get the mask that's used at write time. Only differs from
the result of getMask() for the mask based properties
|
setValue | public void setValue(int val)(Code) | | Set the value of the text property.
|
|
|