| java.lang.Object de.intarsys.pdf.pd.AbstractBitFlags
All known Subclasses: de.intarsys.pdf.pd.AnnotationFlags, de.intarsys.pdf.pd.OutlineItemFlags, de.intarsys.pdf.crypt.AbstractAccessPermissions, de.intarsys.pdf.pd.AcroFormSigFlags, de.intarsys.pdf.pd.AcroFormFieldFlags, de.intarsys.pdf.font.FontDescriptorFlags, de.intarsys.pdf.pd.SubmitFormFlags,
AbstractBitFlags | abstract public class AbstractBitFlags (Code) | | AbstractBitFlags provides access to an integer containing bit wise flags. The
concrete value is provided by an assoiated PDF object along with access
method to the value within the object.
|
Method Summary | |
protected void | clear(int bitMask) | abstract protected int | getValue() By implementing this method the subclass provides the integer which
contains the bit flags. | public boolean | isSetAnd(int bitMask) Checks if all the bits set in the bit mask are also set in the underlying
integer. | public boolean | isSetOr(int bitMask) Checks if one of the bits set in the bit mask are also set in the
underlying integer. | protected void | set(int bitMask, boolean flag) All bits in the underlying integer masked by the bit mask are set
acording to the flag. | abstract protected void | setValue(int newValue) This method is used to write back the changes made to the bit flags. | protected void | signal(int bitMask) |
AbstractBitFlags | public AbstractBitFlags()(Code) | | |
clear | protected void clear(int bitMask)(Code) | | |
getValue | abstract protected int getValue()(Code) | | By implementing this method the subclass provides the integer which
contains the bit flags.
the integer containing the bit flags. |
isSetAnd | public boolean isSetAnd(int bitMask)(Code) | | Checks if all the bits set in the bit mask are also set in the underlying
integer. A clear bit == 0 and a set bit == 1.
Parameters: bitMask - a integer containing the bit mask to test true if all bits in the mask are set in the underlying integer |
isSetOr | public boolean isSetOr(int bitMask)(Code) | | Checks if one of the bits set in the bit mask are also set in the
underlying integer. A clear bit == 0 and a set bit == 1.
Parameters: bitMask - a integer containing the bit mask true if one of the bits in the mask are set in the underlyinginteger |
set | protected void set(int bitMask, boolean flag)(Code) | | All bits in the underlying integer masked by the bit mask are set
acording to the flag. If the flag is true, the bits are set to 1
otherwise the bits are set to 0.
Parameters: bitMask - Parameters: flag - |
setValue | abstract protected void setValue(int newValue)(Code) | | This method is used to write back the changes made to the bit flags.
Parameters: newValue - the whole integer containing all bit flags |
signal | protected void signal(int bitMask)(Code) | | |
|
|