org.apache.batik.css.engine
public class StyleSheet extends Object
| Field Summary | |
|---|---|
| protected boolean | alternate
Whether or not this stylesheet is alternate. |
| protected SACMediaList | media
The media to use to cascade properties. |
| protected StyleSheet | parent
The parent sheet, if any. |
| protected Rule[] | rules
The rules. |
| protected int | size
The number of rules. |
| protected String | title
The style sheet title. |
| Method Summary | |
|---|---|
| void | append(Rule r)
Appends a rule to the stylesheet. |
| void | clear()
Clears the content. |
| SACMediaList | getMedia()
Returns the media to use to compute the styles. |
| StyleSheet | getParent()
Returns the parent sheet. |
| Rule | getRule(int i)
Returns the rule at the given index. |
| int | getSize()
Returns the number of rules. |
| String | getTitle()
Returns the title of this style-sheet. |
| boolean | isAlternate()
Tells whether or not this stylesheet is alternate. |
| void | setAlternate(boolean b)
Sets the 'alternate' attribute of this style-sheet. |
| void | setMedia(SACMediaList m)
Sets the media to use to compute the styles. |
| void | setParent(StyleSheet ss)
Sets the parent sheet. |
| void | setTitle(String t)
Sets the 'title' attribute of this style-sheet. |
| String | toString(CSSEngine eng)
Returns a printable representation of this style-sheet. |