Top Description Inners Fields Constructors Methods
uk.ac.ed.ph.snuggletex.definitions

public final Class ComputedStyle

extends Object
Class Inheritance
Annotations
@ObjectDumperOptions:TO_STRING
Imports
uk.ac.ed.ph.snuggletex.internal.util.DumpMode, .ObjectDumperOptions, uk.ac.ed.ph.snuggletex.tokens.Token

This represents the computed or runtime style of a Token.
Author
David McKain
Version
$Revision$

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
ComputedStyle.FontFamily

TeX "Font Family"

public static enum

Field Summary

Modifier and TypeField and Description
public static final ComputedStyle
DEFAULT_STYLE

Default style

private final ComputedStyle.FontFamily
private final ComputedStyle.FontSize
private final ComputedStyle

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ComputedStyle.FontFamily
public ComputedStyle.FontSize
public ComputedStyle
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

DEFAULT_STYLEback to summary
public static final ComputedStyle DEFAULT_STYLE

Default style

fontFamilyback to summary
private final ComputedStyle.FontFamily fontFamily
fontSizeback to summary
private final ComputedStyle.FontSize fontSize
parentStyleback to summary
private final ComputedStyle parentStyle

Constructor Detail

ComputedStyleback to summary
public ComputedStyle(ComputedStyle parentStyle, ComputedStyle.FontFamily fontFamily, ComputedStyle.FontSize fontSize)

Method Detail

getFontFamilyback to summary
public ComputedStyle.FontFamily getFontFamily()
getFontSizeback to summary
public ComputedStyle.FontSize getFontSize()
getParentStyleback to summary
public ComputedStyle getParentStyle()
isEquivalentToback to summary
public boolean isEquivalentTo(ComputedStyle other)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
uk.ac.ed.ph.snuggletex.definitions back to summary

public final Enum ComputedStyle.FontFamily

extends Enum<ComputedStyle.FontFamily>
Class Inheritance

TeX "Font Family"

Field Summary

Modifier and TypeField and Description
public static final ComputedStyle.FontFamily
public static final ComputedStyle.FontFamily
public static final ComputedStyle.FontFamily
public static final ComputedStyle.FontFamily
public static final ComputedStyle.FontFamily
public static final ComputedStyle.FontFamily
public static final ComputedStyle.FontFamily
public static final ComputedStyle.FontFamily
private final String
targetBlockCSSClassName

Name of resulting CSS class for XHTML block elements

private final String
targetBlockXHTMLElementName

Name of resulting XHTML block element name

private final String
targetInlineCSSClassName

Name of resulting CSS class for XHTML inline elements

private final String
targetInlineXHTMLElementName

Name of resulting XHTML inline element name

private final String
targetMathMLMathVariantName

Name of 'variant' attribute in resulting MathML <mstyle/> element, if supported, or null if this style cannot be used in Math mode.

public static final ComputedStyle.FontFamily

Constructor Summary

AccessConstructor and Description
private
FontFamily(final String targetBlockXHTMLElementName, final String targetBlockCSSClassName, final String targetInlineXHTMLElementName, final String targetInlineCSSClassName, final String targetMathMLMathVariantName)

Method Summary

Modifier and TypeMethod and Description
public String
public String
public String
public String
public String
public static ComputedStyle.FontFamily
public static ComputedStyle.FontFamily[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

BFback to summary
public static final ComputedStyle.FontFamily BF
EMback to summary
public static final ComputedStyle.FontFamily EM
ITback to summary
public static final ComputedStyle.FontFamily IT
NORMALback to summary
public static final ComputedStyle.FontFamily NORMAL
RMback to summary
public static final ComputedStyle.FontFamily RM
SCback to summary
public static final ComputedStyle.FontFamily SC
SFback to summary
public static final ComputedStyle.FontFamily SF
SLback to summary
public static final ComputedStyle.FontFamily SL
targetBlockCSSClassNameback to summary
private final String targetBlockCSSClassName

Name of resulting CSS class for XHTML block elements

targetBlockXHTMLElementNameback to summary
private final String targetBlockXHTMLElementName

Name of resulting XHTML block element name

targetInlineCSSClassNameback to summary
private final String targetInlineCSSClassName

Name of resulting CSS class for XHTML inline elements

targetInlineXHTMLElementNameback to summary
private final String targetInlineXHTMLElementName

Name of resulting XHTML inline element name

targetMathMLMathVariantNameback to summary
private final String targetMathMLMathVariantName

Name of 'variant' attribute in resulting MathML <mstyle/> element, if supported, or null if this style cannot be used in Math mode.

TTback to summary
public static final ComputedStyle.FontFamily TT

Constructor Detail

FontFamilyback to summary
private FontFamily(final String targetBlockXHTMLElementName, final String targetBlockCSSClassName, final String targetInlineXHTMLElementName, final String targetInlineCSSClassName, final String targetMathMLMathVariantName)

Method Detail

getTargetBlockCSSClassNameback to summary
public String getTargetBlockCSSClassName()
getTargetBlockXHTMLElementNameback to summary
public String getTargetBlockXHTMLElementName()
getTargetInlineCSSClassNameback to summary
public String getTargetInlineCSSClassName()
getTargetInlineXHTMLElementNameback to summary
public String getTargetInlineXHTMLElementName()
getTargetMathMLMathVariantNameback to summary
public String getTargetMathMLMathVariantName()
valueOfback to summary
public static ComputedStyle.FontFamily valueOf(String name)
valuesback to summary
public static ComputedStyle.FontFamily[] values()
uk.ac.ed.ph.snuggletex.definitions back to summary

public final Enum ComputedStyle.FontSize

extends Enum<ComputedStyle.FontSize>
Class Inheritance

TeX Font Size

Field Summary

Modifier and TypeField and Description
public static final ComputedStyle.FontSize
public static final ComputedStyle.FontSize
public static final ComputedStyle.FontSize
public static final ComputedStyle.FontSize
public static final ComputedStyle.FontSize
public static final ComputedStyle.FontSize
public static final ComputedStyle.FontSize
public static final ComputedStyle.FontSize
public static final ComputedStyle.FontSize
private final String
public static final ComputedStyle.FontSize

Constructor Summary

AccessConstructor and Description
private
FontSize(final String targetCSSClassName)

Method Summary

Modifier and TypeMethod and Description
public String
public static ComputedStyle.FontSize
public static ComputedStyle.FontSize[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

FOOTNOTESIZEback to summary
public static final ComputedStyle.FontSize FOOTNOTESIZE
HUGEback to summary
public static final ComputedStyle.FontSize HUGE
HUGE_2back to summary
public static final ComputedStyle.FontSize HUGE_2
LARGEback to summary
public static final ComputedStyle.FontSize LARGE
LARGE_2back to summary
public static final ComputedStyle.FontSize LARGE_2
LARGE_3back to summary
public static final ComputedStyle.FontSize LARGE_3
NORMALSIZEback to summary
public static final ComputedStyle.FontSize NORMALSIZE
SCRIPTSIZEback to summary
public static final ComputedStyle.FontSize SCRIPTSIZE
SMALLback to summary
public static final ComputedStyle.FontSize SMALL
targetCSSClassNameback to summary
private final String targetCSSClassName
TINYback to summary
public static final ComputedStyle.FontSize TINY

Constructor Detail

FontSizeback to summary
private FontSize(final String targetCSSClassName)

Method Detail

getTargetCSSClassNameback to summary
public String getTargetCSSClassName()
valueOfback to summary
public static ComputedStyle.FontSize valueOf(String name)
valuesback to summary
public static ComputedStyle.FontSize[] values()