javax.swing.text.html
Class CSS.ShorthandFontParser

java.lang.Object
  extended byjavax.swing.text.html.CSS.ShorthandFontParser
Enclosing class:
CSS

static class CSS.ShorthandFontParser
extends Object

Class used to parse font property. The font property is shorthand for the other font properties. This expands the properties, placing them in the attributeset.


Constructor Summary
(package private) CSS.ShorthandFontParser()
           
 
Method Summary
private static boolean isFontStyle(String string)
           
private static boolean isFontVariant(String string)
           
private static boolean isFontWeight(String string)
           
(package private) static void parseShorthandFont(CSS css, String value, MutableAttributeSet attr)
          Parses the shorthand font string value, placing the result in attr.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSS.ShorthandFontParser

CSS.ShorthandFontParser()
Method Detail

parseShorthandFont

static void parseShorthandFont(CSS css,
                               String value,
                               MutableAttributeSet attr)
Parses the shorthand font string value, placing the result in attr.


isFontStyle

private static boolean isFontStyle(String string)

isFontVariant

private static boolean isFontVariant(String string)

isFontWeight

private static boolean isFontWeight(String string)