|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.vex.css.StyleSheet
Represents a CSS style sheet.
Field Summary | |
static byte |
SOURCE_AUTHOR
Style sheet was provided by the document author. |
static byte |
SOURCE_DEFAULT
Style sheet is the default for the renderer. |
static byte |
SOURCE_USER
Style sheet was provided by the user. |
Constructor Summary | |
StyleSheet(Rule[] rules)
Class constructor. |
Method Summary | |
Element |
getAfterElement(Element element)
Returns a pseudo-element representing content to be displayed after the given element, or null if there is no such content. |
Element |
getBeforeElement(Element element)
Returns a pseudo-element representing content to be displayed before the given element, or null if there is no such content. |
float |
getNumber(LexicalUnit lu)
|
Rule[] |
getRules()
Returns the rules contained within this stylesheet. |
Styles |
getStyles(Element element)
Returns the styles for the given element. |
static boolean |
isBorderStyle(LexicalUnit lu)
Returns true if the given lexical unit represents a border style. |
static boolean |
isBorderWidth(LexicalUnit lu)
Returns true if the given lexical unit represents a border width. |
static boolean |
isColor(LexicalUnit lu)
Returns true if the given lexical unit represents a color. |
static boolean |
isFontSize(LexicalUnit lu)
Returns true if the given lexical unit represents a font size. |
static boolean |
isFontStyle(LexicalUnit lu)
Returns true if the given lexical unit represents a font style. |
static boolean |
isFontVariant(LexicalUnit lu)
Returns true if the given lexical unit represents a font variant. |
static boolean |
isFontWeight(LexicalUnit lu)
Returns true if the given lexical unit represents a font weight. |
static boolean |
isInherit(LexicalUnit lu)
Returns true if the given lexical unit represents the token "inherit". |
static boolean |
isWhiteSpace(LexicalUnit lu)
Returns true if the given lexical unit represents a white space value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte SOURCE_DEFAULT
public static final byte SOURCE_AUTHOR
public static final byte SOURCE_USER
Constructor Detail |
public StyleSheet(Rule[] rules)
rules
- Rules that constitute the style sheet.Method Detail |
public Element getAfterElement(Element element)
element
- Parent element of the pseudo-element.public Element getBeforeElement(Element element)
element
- Parent element of the pseudo-element.public Styles getStyles(Element element)
element
- Element for which to calculate the styles.public Rule[] getRules()
public static boolean isBorderStyle(LexicalUnit lu)
lu
- LexicalUnit to check.public static boolean isBorderWidth(LexicalUnit lu)
lu
- LexicalUnit to check.public static boolean isColor(LexicalUnit lu)
lu
- LexicalUnit to check.public static boolean isFontSize(LexicalUnit lu)
lu
- LexicalUnit to check.public static boolean isFontStyle(LexicalUnit lu)
lu
- LexicalUnit to check.public static boolean isFontVariant(LexicalUnit lu)
lu
- LexicalUnit to check.public static boolean isFontWeight(LexicalUnit lu)
lu
- LexicalUnit to check.public static boolean isInherit(LexicalUnit lu)
public static boolean isWhiteSpace(LexicalUnit lu)
lu
- LexicalUnit to check.public float getNumber(LexicalUnit lu)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |