Top Description Methods
com.openhtmltopdf.css.style

public Interface FSDerivedValue

Known Direct Implementers
com.openhtmltopdf.css.constants.IdentValue, com.openhtmltopdf.css.style.DerivedValue
Imports
com.openhtmltopdf.css.constants.CSSName, .IdentValue, com.openhtmltopdf.css.parser.FSColor

Marker interface for all derived values. All methods for any possible style are declared here, which doesn't make complete sense, as, for example, a length can't return a value for asColor(). This is done so that CalculatedStyle can just look up an FSDerivedValue, without casting, and call the appropriate function without a cast to the appropriate subtype. The users of CalculatedStyle have to then make sure they don't make meaningless calls like asColor(CSSName.HEIGHT). DerivedValue and IdentValue, the two implementations of this interface, just throw a RuntimeException if they can't handle the call

Note

When resolving proportional property values, implementations of this interface must be prepared to handle calls with different base values.

Method Summary

Modifier and TypeMethod and Description
public FSColor
public float
public IdentValue
public String
public String[]
public float
getFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx)

public boolean
public boolean
public boolean
public boolean

Method Detail

asColorback to summary
public FSColor asColor()
asFloatback to summary
public float asFloat()
asIdentValueback to summary
public IdentValue asIdentValue()
asStringback to summary
public String asString()
asStringArrayback to summary
public String[] asStringArray()
getFloatProportionalToback to summary
public float getFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx)
hasAbsoluteUnitback to summary
public boolean hasAbsoluteUnit()
isDeclaredInheritback to summary
public boolean isDeclaredInherit()
isDependentOnFontSizeback to summary
public boolean isDependentOnFontSize()
isIdentback to summary
public boolean isIdent()