FileDocCategorySizeDatePackage
AbstractShapeNodeProxy.javaAPI DocphoneME MR2 API (J2ME)4722Wed May 02 18:00:36 BST 2007com.sun.perseus.model

AbstractShapeNodeProxy

public class AbstractShapeNodeProxy extends AbstractRenderingNodeProxy
An AbstractShapeNodeProxy delegates its rendering to a proxied AbstractShapeNode and has the same policy for handling computed value changes.
version
$Id: AbstractShapeNodeProxy.java,v 1.3 2006/06/29 10:47:29 ln156897 Exp $

Fields Summary
Constructors Summary
protected AbstractShapeNodeProxy(AbstractShapeNode proxiedNode)

param
proxiedNode AbstractShapeNode to proxy

        super(proxiedNode);
    
Methods Summary
public voidsetFill(com.sun.perseus.j2d.PaintServer newFill)

param
newFill the new computed fill property.

        this.fill = newFill;
        renderingDirty();
    
public voidsetFillOpacity(float newFillOpacity)

param
newFillOpacity the new computed value for the fill opacity property.

                
        super.setFillOpacity(newFillOpacity);
        
        if (fill != null) {
            renderingDirty();
        }
    
public voidsetStroke(com.sun.perseus.j2d.PaintServer newStroke)

param
newStroke the new computed stroke property.

        this.stroke = newStroke;
        renderingDirty();
    
public voidsetStrokeDashArray(float[] newStrokeDashArray)

param
newStrokeDashArray the new computed stroke-dasharray property value.

        strokeDashArray = newStrokeDashArray;

        if (stroke != null) {
            renderingDirty();
        }
    
public voidsetStrokeDashOffset(float newStrokeDashOffset)

param
newStrokeDashOffset the new stroke-dashoffset computed property value.

        strokeDashOffset = newStrokeDashOffset;

        if (stroke != null && strokeDashArray != null) {
            renderingDirty();
        }
    
public voidsetStrokeLineCap(int newStrokeLineCap)

param
newStrokeLineCap the new value for the stroke-linecap property.

        super.setStrokeLineCap(newStrokeLineCap);

        if (stroke != null) {
            renderingDirty();
        }
    
public voidsetStrokeLineJoin(int newStrokeLineJoin)

param
newStrokeLineJoin the new computed value for stroke-line-join

        super.setStrokeLineJoin(newStrokeLineJoin);

        if (stroke != null) {
            renderingDirty();
        }
    
public voidsetStrokeMiterLimit(float newStrokeMiterLimit)

param
newStrokeMiterLimit the new computed stroke-miterlimit property.

        strokeMiterLimit = newStrokeMiterLimit; 

        if (stroke != null && getStrokeLineJoin() == JOIN_MITER) {
            renderingDirty();
        }
    
public voidsetStrokeOpacity(float newStrokeOpacity)

param
newStrokeOpacity the new computed stroke-opacity property.

        super.setStrokeOpacity(newStrokeOpacity);
        
        if (stroke != null) {
            renderingDirty();
        }
    
public voidsetStrokeWidth(float newStrokeWidth)

param
newStrokeWidth the new computed stroke-width property value.

        strokeWidth = newStrokeWidth;

        // Only dirty rendering if the object is actually stroked.
        if (stroke != null) {
            renderingDirty();
        }