| java.lang.Object com.sun.perseus.model.ModelNode com.sun.perseus.model.ElementNodeProxy com.sun.perseus.model.CompositeGraphicsNodeProxy
All known Subclasses: com.sun.perseus.model.StructureNodeProxy, com.sun.perseus.model.AbstractRenderingNodeProxy,
CompositeGraphicsNodeProxy | public class CompositeGraphicsNodeProxy extends ElementNodeProxy implements GraphicsProperties,PaintTarget(Code) | | A CompositeGraphicsNodeProxy delegates its rendering to a
proxied CompositeGraphics object and also keeps a cached
transform and inverse transform.
version: $Id: CompositeGraphicsNodeProxy.java,v 1.4 2006/06/29 10:47:30 ln156897 Exp $ |
Method Summary | |
protected boolean | contributeBBox() A CompositeGraphicsNodeProxy contributes to its parent
bounding box only if its display property is turned on. | public SVGRect | getBBox() | public RGB | getColor() | public boolean | getDisplay() | public PaintServer | getFill() | public float | getFillOpacity() | public int | getFillRule() | protected float | getFloatPropertyState(int propertyIndex) Returns the value of the given float-valued property. | public Transform | getInverseTransformState() this node's cached inverse transform. | public float | getOpacity() | protected int | getPackedPropertyState(int propertyIndex) Returns the value of the given packed property. | protected Object | getPropertyState(int propertyIndex) Returns the value of the given Object-valued property. | public PaintServer | getStroke() | public float[] | getStrokeDashArray() | public float | getStrokeDashOffset() | public int | getStrokeLineCap() | public int | getStrokeLineJoin() | public float | getStrokeMiterLimit() | public float | getStrokeOpacity() | public float | getStrokeWidth() | public Transform | getTransformState() this node's cached transform. | public boolean | getVisibility() | protected boolean | isFloatPropertyState(int propertyIndex, float propertyValue) Checks the state of the float type property value. | protected boolean | isPackedPropertyState(int propertyIndex, int propertyValue) Checks the state of the packed property value. | protected boolean | isPropertyState(int propertyIndex, Object propertyValue) Checks the state of the Object type property value. | public void | onPaintServerUpdate(String paintType, PaintServer paintServer) This method is used to implement the PaintTarget interface which is used
to compute the rendering area. | protected void | propagateFloatPropertyState(int propertyIndex, float parentPropertyValue) Called when the computed value of the given float-valued property
has changed. | protected void | propagatePackedPropertyState(int propertyIndex, int parentPropertyValue) Called when the computed value of the given packed property has changed. | protected void | propagatePropertyState(int propertyIndex, Object parentPropertyValue) Called when the computed value of the given Object-valued property
has changed. | final protected void | proxiedFloatPropertyStateChange(int propertyIndex, float proxiedComputedValue) Called by the proxied node when the given float-valued property's
computed value has changed. | final protected void | proxiedPackedPropertyStateChange(int propertyIndex, int proxiedComputedValue) Called by the proxied node when the given packed property's computed
value has changed. | protected void | proxiedPropertyStateChange(int propertyIndex, Object proxiedComputedValue) Called by the proxied node when the given Object-valued property's
computed value has changed. | protected void | recomputeFloatPropertyState(int propertyIndex, float parentPropertyValue) Recomputes the given float-valued property's state given the new
parent property. | void | recomputeInheritedProperties() Recomputes all inherited properties. | protected void | recomputePackedPropertyState(int propertyIndex, int parentPropertyValue) Recomputes the given packed property's state given the new parent
property. | protected void | recomputePropertyState(int propertyIndex, Object parentPropertyValue) Recomputes the given Object-valued property's state given the new
parent property. | protected void | recomputeTransformState(Transform parentTransform) Recomputes the transform cache, if one exists. | public void | setColor(RGB newColor) | public void | setDisplay(boolean newDisplay) | public void | setFill(PaintServer newFill) | public void | setFillOpacity(float newFillOpacity) | final public void | setFillRule(int newFillRule) | protected void | setFloatPropertyState(int propertyIndex, float propertyValue) Sets the computed value of the given float-valued property. | public void | setOpacity(float newOpacity) | protected void | setPackedPropertyState(int propertyIndex, int propertyValue) Sets the computed value of the given packed property. | protected void | setPropertyState(int propertyIndex, Object propertyValue) Sets the computed value of the given Object-valued property. | public void | setStroke(PaintServer newStroke) | public void | setStrokeDashArray(float[] newStrokeDashArray) | public void | setStrokeDashOffset(float newStrokeDashOffset) | public void | setStrokeLineCap(int newStrokeLineCap) | public void | setStrokeLineJoin(int newStrokeLineJoin) | public void | setStrokeMiterLimit(float newStrokeMiterLimit) | public void | setStrokeOpacity(float newStrokeOpacity) | public void | setStrokeWidth(float newStrokeWidth) | public void | setVisibility(boolean newVisibility) |
color | protected RGB color(Code) | | The current color. The fill and stroke colors may be
relative to the current color
|
fillRule | protected int fillRule(Code) | | The winding rule for this node
|
pack | protected int pack(Code) | | Same structure as the CompositeGraphicsNode pack and pack2 fields.
|
pack2 | protected int pack2(Code) | | |
stroke | protected PaintServer stroke(Code) | | The stroke paint used to stroke the outline of
this ShapeNode
|
strokeDashArray | protected float[] strokeDashArray(Code) | | The stroke dash array
|
strokeDashOffset | protected float strokeDashOffset(Code) | | The stroke dash offset
|
strokeMiterLimit | protected float strokeMiterLimit(Code) | | The stroke miter limit
|
strokeWidth | protected float strokeWidth(Code) | | The stroke width
|
CompositeGraphicsNodeProxy | protected CompositeGraphicsNodeProxy(CompositeGraphicsNode proxiedNode)(Code) | | Parameters: proxiedNode - ElementNode to proxy |
contributeBBox | protected boolean contributeBBox()(Code) | | A CompositeGraphicsNodeProxy contributes to its parent
bounding box only if its display property is turned on.
true if the node's bounding box should be accounted for. |
getColor | public RGB getColor()(Code) | | the context's color property value |
getDisplay | public boolean getDisplay()(Code) | | the context' display property value |
getFillOpacity | public float getFillOpacity()(Code) | | the context's fill opacity property value |
getFillRule | public int getFillRule()(Code) | | the context's fill rule property value |
getFloatPropertyState | protected float getFloatPropertyState(int propertyIndex)(Code) | | Returns the value of the given float-valued property.
the value of the given property. |
getInverseTransformState | public Transform getInverseTransformState()(Code) | | this node's cached inverse transform. |
getOpacity | public float getOpacity()(Code) | | the opacity value |
getPackedPropertyState | protected int getPackedPropertyState(int propertyIndex)(Code) | | Returns the value of the given packed property.
the value of the given property. |
getPropertyState | protected Object getPropertyState(int propertyIndex)(Code) | | Returns the value of the given Object-valued property.
the value of the given property. |
getStrokeDashArray | public float[] getStrokeDashArray()(Code) | | the stroke dash array property |
getStrokeDashOffset | public float getStrokeDashOffset()(Code) | | the stroke dash offset property |
getStrokeLineCap | public int getStrokeLineCap()(Code) | | the context's stroke-linecap. |
getStrokeLineJoin | public int getStrokeLineJoin()(Code) | | the stroke line join property value |
getStrokeMiterLimit | public float getStrokeMiterLimit()(Code) | | the context's stroke miter limit property value |
getStrokeOpacity | public float getStrokeOpacity()(Code) | | the stroke opacity value |
getStrokeWidth | public float getStrokeWidth()(Code) | | the context's stroke-width. |
getTransformState | public Transform getTransformState()(Code) | | this node's cached transform. |
getVisibility | public boolean getVisibility()(Code) | | the visibility property value. |
isFloatPropertyState | protected boolean isFloatPropertyState(int propertyIndex, float propertyValue)(Code) | | Checks the state of the float type property value.
Parameters: propertyIndex - the property index Parameters: propertyValue - the computed value for the property. |
isPackedPropertyState | protected boolean isPackedPropertyState(int propertyIndex, int propertyValue)(Code) | | Checks the state of the packed property value.
Parameters: propertyIndex - the property index Parameters: propertyValue - the computed value for the property. |
isPropertyState | protected boolean isPropertyState(int propertyIndex, Object propertyValue)(Code) | | Checks the state of the Object type property value.
Parameters: propertyIndex - the property index Parameters: propertyValue - the computed value for the property. |
onPaintServerUpdate | public void onPaintServerUpdate(String paintType, PaintServer paintServer)(Code) | | This method is used to implement the PaintTarget interface which is used
to compute the rendering area. However, the paint server updates are
handled by the proxied node, so this should _never_ be called.
Parameters: paintType - the key provided by the PaintTarget when it subscribed to associated PaintServer. Parameters: paintServer - the PaintServer generating the update. |
propagateFloatPropertyState | protected void propagateFloatPropertyState(int propertyIndex, float parentPropertyValue)(Code) | | Called when the computed value of the given float-valued property
has changed.
Parameters: propertyIndex - index of the property whose value has changed. Parameters: parentPropertyValue - the value that children of this node should now inherit. |
propagatePackedPropertyState | protected void propagatePackedPropertyState(int propertyIndex, int parentPropertyValue)(Code) | | Called when the computed value of the given packed property has changed.
Parameters: propertyIndex - index of the property whose value has changed. Parameters: parentPropertyValue - the value that children of this node should now inherit. |
propagatePropertyState | protected void propagatePropertyState(int propertyIndex, Object parentPropertyValue)(Code) | | Called when the computed value of the given Object-valued property
has changed.
Parameters: propertyIndex - index of the property whose value has changed. Parameters: parentPropertyValue - the value that children of this node should now inherit. |
proxiedFloatPropertyStateChange | final protected void proxiedFloatPropertyStateChange(int propertyIndex, float proxiedComputedValue)(Code) | | Called by the proxied node when the given float-valued property's
computed value has changed.
Parameters: propertyIndex - index of the property whose value is changing. Parameters: proxiedComputedValue - computed value for the proxied node. |
proxiedPackedPropertyStateChange | final protected void proxiedPackedPropertyStateChange(int propertyIndex, int proxiedComputedValue)(Code) | | Called by the proxied node when the given packed property's computed
value has changed.
Parameters: propertyIndex - index of the property whose value is changing. Parameters: proxiedComputedValue - computed value for the proxied node. |
proxiedPropertyStateChange | protected void proxiedPropertyStateChange(int propertyIndex, Object proxiedComputedValue)(Code) | | Called by the proxied node when the given Object-valued property's
computed value has changed.
Parameters: propertyIndex - index of the property whose value is changing. Parameters: proxiedComputedValue - computed value for the proxied node. |
recomputeFloatPropertyState | protected void recomputeFloatPropertyState(int propertyIndex, float parentPropertyValue)(Code) | | Recomputes the given float-valued property's state given the new
parent property.
Parameters: propertyIndex - index of the property whose value is changing. Parameters: parentPropertyValue - the value that children of this node should now inherit. |
recomputeInheritedProperties | void recomputeInheritedProperties()(Code) | | Recomputes all inherited properties.
|
recomputePackedPropertyState | protected void recomputePackedPropertyState(int propertyIndex, int parentPropertyValue)(Code) | | Recomputes the given packed property's state given the new parent
property.
Parameters: propertyIndex - index of the property whose value is changing. Parameters: parentPropertyValue - the value that children of this node should now inherit. |
recomputePropertyState | protected void recomputePropertyState(int propertyIndex, Object parentPropertyValue)(Code) | | Recomputes the given Object-valued property's state given the new
parent property.
Parameters: propertyIndex - index of the property whose value is changing. Parameters: parentPropertyValue - the value that children of this node should now inherit. |
recomputeTransformState | protected void recomputeTransformState(Transform parentTransform)(Code) | | Recomputes the transform cache, if one exists. This should recursively
call recomputeTransformState on children node or expanded content, if
any.
By default, because a ModelNode has no transform and no cached transform,
this only does a pass down.
Parameters: parentTransform - the Transform applied to this node's parent. |
setColor | public void setColor(RGB newColor)(Code) | | Parameters: newColor - the new computed color property. |
setDisplay | public void setDisplay(boolean newDisplay)(Code) | | Parameters: newDisplay - the new computed display value |
setFill | public void setFill(PaintServer newFill)(Code) | | Parameters: newFill - the new computed fill property. |
setFillOpacity | public void setFillOpacity(float newFillOpacity)(Code) | | Parameters: newFillOpacity - the new computed value for the fill opacity property. |
setFillRule | final public void setFillRule(int newFillRule)(Code) | | Parameters: newFillRule - the new computed fillRule property value. |
setFloatPropertyState | protected void setFloatPropertyState(int propertyIndex, float propertyValue)(Code) | | Sets the computed value of the given float-valued property.
Parameters: propertyIndex - the property index Parameters: propertyValue - the computed value of the property. |
setOpacity | public void setOpacity(float newOpacity)(Code) | | Parameters: newOpacity - the new computed opacity property. |
setPackedPropertyState | protected void setPackedPropertyState(int propertyIndex, int propertyValue)(Code) | | Sets the computed value of the given packed property.
Parameters: propertyIndex - the property index Parameters: propertyValue - the computed value for the property. |
setPropertyState | protected void setPropertyState(int propertyIndex, Object propertyValue)(Code) | | Sets the computed value of the given Object-valued property.
Parameters: propertyIndex - the property index Parameters: propertyValue - the computed value of the property. |
setStroke | public void setStroke(PaintServer newStroke)(Code) | | Parameters: newStroke - the new computed stroke property. |
setStrokeDashArray | public void setStrokeDashArray(float[] newStrokeDashArray)(Code) | | Parameters: newStrokeDashArray - the new computed stroke-dasharray property value. |
setStrokeDashOffset | public void setStrokeDashOffset(float newStrokeDashOffset)(Code) | | Parameters: newStrokeDashOffset - the new stroke-dashoffset computed property value. |
setStrokeLineCap | public void setStrokeLineCap(int newStrokeLineCap)(Code) | | Parameters: newStrokeLineCap - the new value for the stroke-linecap property. |
setStrokeLineJoin | public void setStrokeLineJoin(int newStrokeLineJoin)(Code) | | Parameters: newStrokeLineJoin - the new computed value for stroke-line-join |
setStrokeMiterLimit | public void setStrokeMiterLimit(float newStrokeMiterLimit)(Code) | | Parameters: newStrokeMiterLimit - the new computed stroke-miterlimit property. |
setStrokeOpacity | public void setStrokeOpacity(float newStrokeOpacity)(Code) | | Parameters: newStrokeOpacity - the new computed stroke-opacity property. |
setStrokeWidth | public void setStrokeWidth(float newStrokeWidth)(Code) | | Parameters: newStrokeWidth - the new computed stroke-width property value. |
setVisibility | public void setVisibility(boolean newVisibility)(Code) | | Parameters: newVisibility - the new computed visibility property. |
Methods inherited from com.sun.perseus.model.ModelNode | Box addBBox(Box bbox, Transform t)(Code)(Java Doc) static Box addBBox(Box bbox, float x, float y, float width, float height)(Code)(Java Doc) public void addEventListener(String type, EventListener listener, boolean useCapture) throws DOMException(Code)(Java Doc) Box addNodeBBox(Box bbox, Transform t)(Code)(Java Doc) static Box addShapeBBox(Box bbox, Path path, Transform t)(Code)(Java Doc) static Box addTransformedBBox(Box bbox, float x, float y, float width, float height, Transform m)(Code)(Java Doc) protected Transform appendTransform(Transform tx, Transform workTx)(Code)(Java Doc) protected void clearLastRenderedTile()(Code)(Java Doc) abstract protected void clearLayouts()(Code)(Java Doc) void clearLayouts(ModelNode node)(Code)(Java Doc) final void computeCanRenderDisplayBit(boolean display)(Code)(Java Doc) final void computeCanRenderEmptyPathBit(Path path)(Code)(Java Doc) final void computeCanRenderEmptyViewBoxBit(float[][] viewBox)(Code)(Java Doc) final void computeCanRenderFontSizeBit(float fontSize)(Code)(Java Doc) final void computeCanRenderHeightBit(float height)(Code)(Java Doc) final void computeCanRenderRequiredExtensionsBit(String[] requiredExtensions)(Code)(Java Doc) final void computeCanRenderRequiredFeaturesBit(String[] requiredFeatures)(Code)(Java Doc) final void computeCanRenderSystemLanguageBit(String[] systemLanguage)(Code)(Java Doc) final void computeCanRenderTransformBit(Transform transform)(Code)(Java Doc) final void computeCanRenderWidthBit(float width)(Code)(Java Doc) protected void computeRenderingTile(Tile tile)(Code)(Java Doc) protected boolean contributeBBox()(Code)(Java Doc) public void dispatchEvent(ModelEvent evt)(Code)(Java Doc) abstract public ModelNode getFirstChildNode()(Code)(Java Doc) abstract ModelNode getFirstComputedExpandedChild()(Code)(Java Doc) abstract ModelNode getFirstExpandedChild()(Code)(Java Doc) protected float getFloatPropertyState(int propertyIndex)(Code)(Java Doc) final protected float getInheritedFloatPropertyState(int propertyIndex)(Code)(Java Doc) final protected int getInheritedPackedPropertyState(int propertyIndex)(Code)(Java Doc) final protected Object getInheritedPropertyState(int propertyIndex)(Code)(Java Doc) Transform getInverseTransformState()(Code)(Java Doc) abstract public ModelNode getLastChildNode()(Code)(Java Doc) abstract ModelNode getLastExpandedChild()(Code)(Java Doc) protected Tile getLastRenderedTile()(Code)(Java Doc) public ModelNode getNextSiblingNode()(Code)(Java Doc) public DocumentNode getOwnerDocument()(Code)(Java Doc) protected int getPackedPropertyState(int propertyIndex)(Code)(Java Doc) boolean getPaintNeedsLoad()(Code)(Java Doc) public ModelNode getParent()(Code)(Java Doc) public ModelNode getPreviousSiblingNode()(Code)(Java Doc) protected Object getPropertyState(int propertyIndex)(Code)(Java Doc) protected Tile getRenderingTile()(Code)(Java Doc) public SVGMatrix getScreenCTM()(Code)(Java Doc) public Transform getTransformState()(Code)(Java Doc) protected String getURIBase()(Code)(Java Doc) protected UpdateListener getUpdateListener()(Code)(Java Doc) public boolean hasDescendants()(Code)(Java Doc) protected boolean hasNodeRendering()(Code)(Java Doc) boolean inDocumentTree()(Code)(Java Doc) protected boolean isFloatPropertyState(int propertyIndex, float propertyValue)(Code)(Java Doc) protected boolean isInDocumentTree()(Code)(Java Doc) final public boolean isLoaded()(Code)(Java Doc) protected boolean isPackedPropertyState(int propertyIndex, int propertyValue)(Code)(Java Doc) protected boolean isPropertyState(int propertyIndex, Object propertyValue)(Code)(Java Doc) protected void modifiedNode()(Code)(Java Doc) protected void modifyingNode()(Code)(Java Doc) protected void modifyingNodeRendering()(Code)(Java Doc) public ModelNode nodeHitAt(float[] pt)(Code)(Java Doc) final protected ModelNode nodeHitAt(ModelNode node, float[] pt)(Code)(Java Doc) protected static void nodeInserted(ModelNode node)(Code)(Java Doc) protected void nodeRendered()(Code)(Java Doc) void onHookedInDocumentTree()(Code)(Java Doc) void onUnhookedFromDocumentTree()(Code)(Java Doc) static void paint(ModelNode node, RenderGraphics rg)(Code)(Java Doc) public void paint(RenderGraphics rg)(Code)(Java Doc) protected void propagateCanRenderState(int oldCanRenderState, int newCanRenderState)(Code)(Java Doc) protected void propagateFloatPropertyState(int propertyIndex, float parentPropertyValue)(Code)(Java Doc) protected void propagatePackedPropertyState(int propertyIndex, int parentPropertyValue)(Code)(Java Doc) protected void propagatePropertyState(int propertyIndex, Object parentPropertyValue)(Code)(Java Doc) protected void recomputeFloatPropertyState(int propertyIndex, float parentPropertyValue)(Code)(Java Doc) void recomputeInheritedProperties()(Code)(Java Doc) protected void recomputePackedPropertyState(int propertyIndex, int parentPropertyValue)(Code)(Java Doc) protected void recomputePropertyState(int propertyIndex, Object parentPropertyValue)(Code)(Java Doc) protected void recomputeTransformState()(Code)(Java Doc) protected void recomputeTransformState(Transform parentTransform)(Code)(Java Doc) void recomputeTransformState(Transform parentTransform, ModelNode node)(Code)(Java Doc) final protected Transform recycleTransform(Transform tx, Transform workTx)(Code)(Java Doc) public void removeEventListener(String type, EventListener listener, boolean useCapture) throws DOMException(Code)(Java Doc) protected void setFloatPropertyState(int propertyIndex, float propertyValue)(Code)(Java Doc) public void setLoaded(boolean isLoaded)(Code)(Java Doc) protected void setPackedPropertyState(int propertyIndex, int propertyValue)(Code)(Java Doc) protected void setParent(ModelNode newParent)(Code)(Java Doc) protected void setParentQuiet(ModelNode newParent)(Code)(Java Doc) protected void setPropertyState(int propertyIndex, Object propertyValue)(Code)(Java Doc) abstract protected void unhookChildrenQuiet()(Code)(Java Doc) abstract protected void unhookExpandedQuiet()(Code)(Java Doc) final protected void unhookQuiet(ModelNode node)(Code)(Java Doc)
|
|
|