Methods Summary |
---|
com.sun.perseus.j2d.Box | addNodeBBox(com.sun.perseus.j2d.Box bbox, com.sun.perseus.j2d.Transform t)
checkLayout();
return ((Text) proxied).addNodeBBox(bbox, t, firstChunk);
|
void | checkLayout()Checks that the text's layout has been computed and computes it in
case it was not.
if (firstChunk == null) {
firstChunk = ((Text) proxied).layoutText(this);
GlyphLayout cur = firstChunk;
while (cur.nextSibling != null) {
cur = cur.nextSibling;
}
lastChunk = (GlyphLayout) cur;
}
|
public void | clearLayouts()Clears the node's layout cache. For ElementNodeProxy,
we just reset the node so that expanded content be
computed again and we request the proxied node to
also clear its layout cache. This is to ensure that
Font Data Base changes are covered.
modifyingNode();
clearLayoutsQuiet();
super.clearLayouts();
modifiedNode();
|
public void | clearLayoutsQuiet()Clears all cached layout information
but does not generate modification
events for this node.
firstChunk = null;
lastChunk = null;
|
protected void | computeRenderingTile(com.sun.perseus.j2d.Tile tile)This method is overridden for elements which has special renderings,
such as the ShapeNodes.
checkLayout();
((Text) proxied).computeRenderingTile(tile, txf, this, firstChunk);
|
public org.w3c.dom.svg.SVGRect | getBBox()
return addNodeBBox(null, null);
|
public boolean | hasNodeRendering()An TextProxy has something to render
return true;
|
public void | paint(com.sun.perseus.j2d.RenderGraphics rg)Paints this node into the input RenderGraphics .
checkLayout();
if (canRenderState != 0) {
return;
}
if (DirtyAreaManager.ON) {
Tile primitiveTile = getRenderingTile();
if (primitiveTile == null
||
rg.getRenderingTile().isHit(primitiveTile)) {
// rg.setPrimitiveTile(primitiveTile);
((Text) proxied).paintRendered(rg, this, txf, firstChunk);
// nodeRendered is called seperately from paintRendered
// because paintRendered is used in different contexts,
// for example by proxy nodes to render, using their
// proxied node's paintRendered method.
nodeRendered();
}
} else {
((Text) proxied).paintRendered(rg, this, txf, firstChunk);
}
|
final void | renderingDirty()Should be called whenever this node's rendering becomes dirty.
if (DirtyAreaManager.ON) {
renderingManager.dirty();
}
|
public void | setDisplay(boolean newDisplay)
super.setDisplay(newDisplay);
renderingDirty();
|
public void | setFill(com.sun.perseus.j2d.PaintServer newFill)
this.fill = newFill;
renderingDirty();
|
public void | setFillOpacity(float newFillOpacity)
super.setFillOpacity(newFillOpacity);
if (fill != null) {
renderingDirty();
}
|
public void | setFontFamily(java.lang.String[] newFontFamily)
this.fontFamily = newFontFamily;
clearLayoutsQuiet();
if (stroke != null || fill != null) {
renderingDirty();
}
|
public void | setFontSize(float newFontSize)
this.fontSize = newFontSize;
if (stroke != null || fill != null) {
renderingDirty();
}
computeCanRenderFontSizeBit(newFontSize);
|
public void | setFontStyle(int newFontStyle)
super.setFontStyle(newFontStyle);
if (stroke != null || fill != null) {
renderingDirty();
}
clearLayoutsQuiet();
|
public void | setFontWeight(int newFontWeight)
super.setFontWeight(newFontWeight);
if (stroke != null || fill != null) {
renderingDirty();
}
clearLayoutsQuiet();
|
protected void | setProxied(ElementNode newProxied)Disallow proxing of anything else than Text nodes.
if (newProxied != null && !(newProxied instanceof Text)) {
throw new IllegalArgumentException();
}
super.setProxied(newProxied);
clearLayoutsQuiet();
|
public void | setStroke(com.sun.perseus.j2d.PaintServer newStroke)
this.stroke = newStroke;
renderingDirty();
|
public void | setStrokeDashArray(float[] newStrokeDashArray)
strokeDashArray = newStrokeDashArray;
if (stroke != null) {
renderingDirty();
}
|
public void | setStrokeDashOffset(float newStrokeDashOffset)
strokeDashOffset = newStrokeDashOffset;
if (stroke != null && strokeDashArray != null) {
renderingDirty();
}
|
public void | setStrokeLineCap(int newStrokeLineCap)
super.setStrokeLineCap(newStrokeLineCap);
if (stroke != null) {
renderingDirty();
}
|
public void | setStrokeLineJoin(int newStrokeLineJoin)
super.setStrokeLineJoin(newStrokeLineJoin);
if (stroke != null) {
renderingDirty();
}
|
public void | setStrokeMiterLimit(float newStrokeMiterLimit)
strokeMiterLimit = newStrokeMiterLimit;
if (stroke != null && getStrokeLineJoin() == JOIN_MITER) {
renderingDirty();
}
|
public void | setStrokeOpacity(float newStrokeOpacity)
super.setStrokeOpacity(newStrokeOpacity);
if (stroke != null) {
renderingDirty();
}
|
public void | setStrokeWidth(float newStrokeWidth)
strokeWidth = newStrokeWidth;
// Only dirty rendering if the object is actually stroked.
if (stroke != null) {
renderingDirty();
}
|
public void | setTextAnchor(int newTextAnchor)Sets the value of the computed text anchor property.
super.setTextAnchor(newTextAnchor);
if (stroke != null || fill != null) {
renderingDirty();
}
|
public void | setVisibility(boolean newVisibility)
super.setVisibility(newVisibility);
renderingDirty();
|