java.lang.Object
io.sf.carte.echosvg.css.engine.StyleDeclaration
This class represents a collection of CSS property values.
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
The number of values in the declaration.protected int[]
The value indexes.protected static final int
protected boolean[]
The value priorities.protected Value[]
The values. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Appends a value to the declaration.int
getIndex
(int idx) Returns the property index of a value.boolean
getPriority
(int idx) Tells whether a value is important.getValue
(int idx) Returns the value at the given index.void
Sets a value within the declaration.void
remove
(int idx) Removes the value at the given index.int
size()
Returns the number of values in the declaration.Returns a printable representation of this style rule.
-
Field Details
-
INITIAL_LENGTH
protected static final int INITIAL_LENGTH- See Also:
-
values
The values. -
indexes
protected int[] indexesThe value indexes. -
priorities
protected boolean[] prioritiesThe value priorities. -
count
protected int countThe number of values in the declaration.
-
-
Constructor Details
-
StyleDeclaration
public StyleDeclaration()
-
-
Method Details
-
size
public int size()Returns the number of values in the declaration. -
getValue
Returns the value at the given index. -
getIndex
public int getIndex(int idx) Returns the property index of a value. -
getPriority
public boolean getPriority(int idx) Tells whether a value is important. -
remove
public void remove(int idx) Removes the value at the given index. -
put
Sets a value within the declaration. -
append
Appends a value to the declaration. -
toString
Returns a printable representation of this style rule.
-