|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.css.engine.StyleMap
This class represents objects which contains property/value mappings.
Field Summary | |
static short |
AUTHOR_ORIGIN
|
static short |
BLOCK_HEIGHT_RELATIVE_MASK
|
static short |
BLOCK_WIDTH_RELATIVE_MASK
|
static short |
BOX_RELATIVE_MASK
|
static short |
COLOR_RELATIVE_MASK
|
static short |
COMPUTED_MASK
|
protected boolean |
fixedCascadedValues
Whether the values of this map cannot be re-cascaded. |
static short |
FONT_SIZE_RELATIVE_MASK
|
static short |
IMPORTANT_MASK
|
static short |
INLINE_AUTHOR_ORIGIN
|
static short |
LINE_HEIGHT_RELATIVE_MASK
|
protected short[] |
masks
To store the value masks. |
static short |
NON_CSS_ORIGIN
|
static short |
NULL_CASCADED_MASK
|
static short |
ORIGIN_MASK
|
static short |
PARENT_RELATIVE_MASK
|
static short |
USER_AGENT_ORIGIN
|
static short |
USER_ORIGIN
|
protected Value[] |
values
The values. |
Constructor Summary | |
StyleMap(int size)
Creates a new StyleMap. |
Method Summary | |
short |
getMask(int i)
Returns the mask of the given property value. |
short |
getOrigin(int i)
Returns the origin value. |
Value |
getValue(int i)
Returns the value at the given index, null if unspecified. |
boolean |
hasFixedCascadedValues()
Whether this map has fixed cascaded value. |
boolean |
isBlockHeightRelative(int i)
Tells whether the given property value is relative to the height of the containing block. |
boolean |
isBlockWidthRelative(int i)
Tells whether the given property value is relative to the width of the containing block. |
boolean |
isColorRelative(int i)
Tells whether the given property value is relative to 'color'. |
boolean |
isComputed(int i)
Tells whether the given property value is computed. |
boolean |
isFontSizeRelative(int i)
Tells whether the given property value is relative to 'font-size'. |
boolean |
isImportant(int i)
Tells whether the given property value is important. |
boolean |
isLineHeightRelative(int i)
Tells whether the given property value is relative to 'line-height'. |
boolean |
isNullCascaded(int i)
Tells whether the given cascaded property value is null. |
boolean |
isParentRelative(int i)
Tells whether the given property value is relative to the parent's property value. |
void |
putBlockHeightRelative(int i,
boolean b)
Sets the block-height-relative flag of a property value. |
void |
putBlockWidthRelative(int i,
boolean b)
Sets the block-width-relative flag of a property value. |
void |
putColorRelative(int i,
boolean b)
Sets the color-relative flag of a property value. |
void |
putComputed(int i,
boolean b)
Sets the computed flag of a property value. |
void |
putFontSizeRelative(int i,
boolean b)
Sets the font-size-relative flag of a property value. |
void |
putImportant(int i,
boolean b)
Sets the priority of a property value. |
void |
putLineHeightRelative(int i,
boolean b)
Sets the line-height-relative flag of a property value. |
void |
putMask(int i,
short m)
Puts a property mask, given the property index. |
void |
putNullCascaded(int i,
boolean b)
Sets the null-cascaded flag of a property value. |
void |
putOrigin(int i,
short val)
Sets the origin of the given value. |
void |
putParentRelative(int i,
boolean b)
Sets the parent-relative flag of a property value. |
void |
putValue(int i,
Value v)
Puts a property value, given the property index. |
void |
setFixedCascadedStyle(boolean b)
Sets the fixedCascadedValues property. |
java.lang.String |
toString(CSSEngine eng)
Returns a printable representation of this style map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final short IMPORTANT_MASK
public static final short COMPUTED_MASK
public static final short NULL_CASCADED_MASK
public static final short LINE_HEIGHT_RELATIVE_MASK
public static final short FONT_SIZE_RELATIVE_MASK
public static final short COLOR_RELATIVE_MASK
public static final short PARENT_RELATIVE_MASK
public static final short BLOCK_WIDTH_RELATIVE_MASK
public static final short BLOCK_HEIGHT_RELATIVE_MASK
public static final short BOX_RELATIVE_MASK
public static final short ORIGIN_MASK
public static final short USER_AGENT_ORIGIN
public static final short USER_ORIGIN
public static final short NON_CSS_ORIGIN
public static final short AUTHOR_ORIGIN
public static final short INLINE_AUTHOR_ORIGIN
protected Value[] values
protected short[] masks
protected boolean fixedCascadedValues
Constructor Detail |
public StyleMap(int size)
Method Detail |
public boolean hasFixedCascadedValues()
public void setFixedCascadedStyle(boolean b)
public Value getValue(int i)
public short getMask(int i)
public boolean isImportant(int i)
public boolean isComputed(int i)
public boolean isNullCascaded(int i)
public short getOrigin(int i)
public boolean isColorRelative(int i)
public boolean isParentRelative(int i)
public boolean isLineHeightRelative(int i)
public boolean isFontSizeRelative(int i)
public boolean isBlockWidthRelative(int i)
public boolean isBlockHeightRelative(int i)
public void putValue(int i, Value v)
i
- The property index.v
- The property value.public void putMask(int i, short m)
i
- The property index.m
- The property mask.public void putImportant(int i, boolean b)
public void putOrigin(int i, short val)
public void putComputed(int i, boolean b)
public void putNullCascaded(int i, boolean b)
public void putColorRelative(int i, boolean b)
public void putParentRelative(int i, boolean b)
public void putLineHeightRelative(int i, boolean b)
public void putFontSizeRelative(int i, boolean b)
public void putBlockWidthRelative(int i, boolean b)
public void putBlockHeightRelative(int i, boolean b)
public java.lang.String toString(CSSEngine eng)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |