com.sun.perseus.model.ModelNode ModelNode are rendered into a
RenderGraphics RenderGraphics which extends
the RenderContext class. A RenderContext captures
the current state of the properties used in painting operations. When a
ModelNode tree is rendered, the RenderGraphics
is passed down the tree to children nodes as they are painted. This
provides the solution for computing CSS inherited values: if a
ModelNode inherits one of its properties, it will simply use
the one currently set in the RenderContext.
Initially (i.e., before any painting operation happens), the
RenderContext holds values which correspond to the CSS 2 concept of
initial values.
At any time during a rendering operation, the RenderContext holds
values which correspond to the CSS 2
computed values.
Note that in addition to properties that correspond to CSS2 properties, the
RenderContext also keeps an AffineTransform which is
not a CSS2 property. The transform represents the current user space to
device space transformation.
See Also:com.sun.perseus.model.ModelNode See Also:com.sun.perseus.model.ElementNode.paint version: $Id: RenderContext.java,v 1.5 2006/04/21 06:35:38 st125089 Exp $
Controls the current font family. The font family is
a list, which means that a set of fonts may be used
to render a given text string. The fonts are queried in
order to check which ones can render characters in the
drawn text.
Parameters: newOpacity - the new value for the opacity property. The input value is clamped to the [0, 1] range. Parameters: newOpacity - the new opacity value to set