org.jfree.layouting.input.style
Class StyleSheet
java.lang.Object
org.jfree.layouting.input.style.StyleSheet
- Cloneable, Serializable
public class StyleSheet
extends java.lang.Object
implements Cloneable, Serializable
A CSS stylesheet. Unlike the W3C stylesheet classes, this class is a minimal
set of attributes, designed with usablity and performance in mind.
Stylesheets are resolved by looking at the elements. For the sake of
simplicity, stylesheet objects itself do not hold references to their parent
stylesheets.
The W3C media list is omited - this library assumes the visual/print media.
The media would have been specified in the document anyway, so we do not
care.
This class is a union of the W3C CSSStyleSheet and the CSSStyleRuleList. It
makes no sense to separate them in this context.
StyleSheet
public StyleSheet()
addNamespace
public void addNamespace(String prefix,
String uri)
addStyleSheet
public void addStyleSheet(StyleSheet styleSheet)
clone
public Object clone()
throws CloneNotSupportedException
deleteRule
public void deleteRule(int index)
getNamespacePrefixes
public String[] getNamespacePrefixes()
getNamespaceURI
public String getNamespaceURI(String prefix)
getNamespaces
public Map getNamespaces()
getResourceManager
public ResourceManager getResourceManager()
getRuleCount
public int getRuleCount()
getSource
public ResourceKey getSource()
getStyleSheet
public StyleSheet getStyleSheet(int index)
getStyleSheetCount
public int getStyleSheetCount()
insertRule
public void insertRule(int index,
StyleRule rule)
isReadOnly
public boolean isReadOnly()
removeStyleSheet
public void removeStyleSheet(StyleSheet styleSheet)
setReadOnly
protected void setReadOnly(boolean readOnly)
setResourceManager
public void setResourceManager(ResourceManager resourceManager)
setSource
public void setSource(ResourceKey href)