Class StyleSheet
java.lang.Object
org.apache.batik.css.engine.StyleSheet
- Direct Known Subclasses:
MediaRule
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanWhether or not this stylesheet is alternate.protected org.w3c.css.sac.SACMediaListThe media to use to cascade properties.protected StyleSheetThe parent sheet, if any.protected Rule[]The rules.protected intThe number of rules.protected StringThe style sheet title. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAppends a rule to the stylesheet.voidclear()Clears the content.org.w3c.css.sac.SACMediaListgetMedia()Returns the media to use to compute the styles.Returns the parent sheet.getRule(int i) Returns the rule at the given index.intgetSize()Returns the number of rules.getTitle()Returns the title of this style-sheet.booleanTells whether or not this stylesheet is alternate.voidsetAlternate(boolean b) Sets the 'alternate' attribute of this style-sheet.voidsetMedia(org.w3c.css.sac.SACMediaList m) Sets the media to use to compute the styles.voidsetParent(StyleSheet ss) Sets the parent sheet.voidSets the 'title' attribute of this style-sheet.Returns a printable representation of this style-sheet.
-
Field Details
-
rules
The rules. -
size
protected int sizeThe number of rules. -
parent
The parent sheet, if any. -
alternate
protected boolean alternateWhether or not this stylesheet is alternate. -
media
protected org.w3c.css.sac.SACMediaList mediaThe media to use to cascade properties. -
title
The style sheet title.
-
-
Constructor Details
-
StyleSheet
public StyleSheet()
-
-
Method Details
-
setMedia
public void setMedia(org.w3c.css.sac.SACMediaList m) Sets the media to use to compute the styles. -
getMedia
public org.w3c.css.sac.SACMediaList getMedia()Returns the media to use to compute the styles. -
getParent
Returns the parent sheet. -
setParent
Sets the parent sheet. -
setAlternate
public void setAlternate(boolean b) Sets the 'alternate' attribute of this style-sheet. -
isAlternate
public boolean isAlternate()Tells whether or not this stylesheet is alternate. -
setTitle
Sets the 'title' attribute of this style-sheet. -
getTitle
Returns the title of this style-sheet. -
getSize
public int getSize()Returns the number of rules. -
getRule
Returns the rule at the given index. -
clear
public void clear()Clears the content. -
append
Appends a rule to the stylesheet. -
toString
-