| java.lang.Object com.sun.perseus.model.GlyphLayout
GlyphLayout | class GlyphLayout (Code) | | GlyphLayout is used to represent successing text 'chunks' in
a Text layout of glyphs. The notion of 'chunk' is that of the
SVG specification.
version: $Id: GlyphLayout.java,v 1.4 2006/06/29 10:47:31 ln156897 Exp $ |
advance | protected float advance(Code) | | The overally layout's advance
|
helperDashArray | protected float[] helperDashArray(Code) | | Used to scale dash array values.
|
ownerDocument | protected DocumentNode ownerDocument(Code) | | Owner Document, to get cache objects.
|
x | protected float x(Code) | | The chunk's x-axis position
|
y | protected float y(Code) | | The chunk's y-axis position
|
add | public void add(GlyphProxy proxy)(Code) | | Appends an element at the end of the list
Parameters: proxy - the proxy to add to this GlyphLayout throws: NullPointerException - if the input argument is null. |
addBBox | Box addBBox(Box bbox, Transform t)(Code) | | Parameters: bbox - the bounding box to which this node's bounding box should beappended. That bounding box is in the target coordinate space. It may be null, in which case this node should create a new one. Parameters: t - the transform from the node coordinate system to the coordinatesystem into which the bounds should be computed. the bounding box of this node, in the target coordinate space, |
addRenderingTile | final protected Tile addRenderingTile(Tile tile, TextRenderingProperties trp, Transform t)(Code) | | Add this GlyphLayout rendering tile to the input Tile.
Parameters: tile - the Tile instance whose bounds should be expanded. May benull. Parameters: trp - the TextRenderingProperties describing the nodes rendering characteristics. Parameters: t - the Transform to the requested tile space, from this node's userspace. the expanded tile. |
applyInverseTransform | protected void applyInverseTransform(TextRenderingProperties trp, Transform tx)(Code) | | Applies the inverse of the chunk's position adjustment due to the
text anchor's value.
Parameters: trp - the TextRenderingProperties on which the font-size property is defined. Parameters: tx - the Transform to apply the inverse transformto. |
applyTransform | protected void applyTransform(TextRenderingProperties trp, Transform tx)(Code) | | Applies the chunk's position adjustment due to the text anchor's
value.
Parameters: trp - the TextRenderingProperties on which the font-size property is defined. Parameters: tx - the Transform to apply additional node transforms to. This is guaranteed to no be null. |
drawText | void drawText(RenderGraphics rg, Transform tx)(Code) | | Draws text.
Parameters: rg - the RenderGraphics where the node should paintitself. Parameters: tx - the rendering transform. |
fillText | void fillText(RenderGraphics rg, Transform tx)(Code) | | Fills text.
Parameters: rg - the RenderGraphics where the node should paintitself. Parameters: tx - the rendering transform. |
isHitVP | protected boolean isHitVP(float[] pt, TextRenderingProperties trp, Transform chunkTxf)(Code) | | Returns true if this node is hit by the input point. The input point
is in viewport space. By default, a node is not hit, not
matter what the input coordinate is.
Parameters: pt - the x/y coordinate. Should never be null and be of size two. Ifnot, the behavior is unspecified. The x/y coordinate is in the node'suser space. Parameters: trp - the TextRenderingProperties containing the propertiesapplicable to the hit detection operation. This is used because the samenode may be referenced multiple times by different proxies. true if the node is hit by the input point. See Also: GlyphLayout.nodeHitAt |
toString | public String toString()(Code) | | the string description of this layout. |
|
|