org.apache.batik.gvt

Class RasterImageNode

public class RasterImageNode extends AbstractGraphicsNode

A graphics node that represents a raster image.
Field Summary
protected Filterimage
The renderable image that represents this image node.
Constructor Summary
RasterImageNode()
Constructs a new empty RasterImageNode.
Method Summary
Rectangle2DgetGeometryBounds()
Returns the bounds of the area covered by this node, without taking any of its rendering attribute into account.
FiltergetGraphicsNodeRable()
Returns the RenderableImage for this node.
FiltergetImage()
Returns the raster image of this raster image node.
Rectangle2DgetImageBounds()
Returns the bounds of this raster image node.
ShapegetOutline()
Returns the outline of this node.
Rectangle2DgetPrimitiveBounds()
Returns the bounds of the area covered by this node's primitive paint.
Rectangle2DgetSensitiveBounds()
Returns the bounds of the sensitive area covered by this node, This includes the stroked area but does not include the effects of clipping, masking or filtering.
voidprimitivePaint(Graphics2D g2d)
Paints this node without applying Filter, Mask, Composite and clip.
voidsetImage(Filter newImage)
Sets the raster image of this raster image node.

Field Detail

image

protected Filter image
The renderable image that represents this image node.

Constructor Detail

RasterImageNode

public RasterImageNode()
Constructs a new empty RasterImageNode.

Method Detail

getGeometryBounds

public Rectangle2D getGeometryBounds()
Returns the bounds of the area covered by this node, without taking any of its rendering attribute into account. That is, exclusive of any clipping, masking, filtering or stroking, for example.

getGraphicsNodeRable

public Filter getGraphicsNodeRable()
Returns the RenderableImage for this node. The returned RenderableImage this node before any of the filter operations have been applied.

getImage

public Filter getImage()
Returns the raster image of this raster image node.

Returns: the raster image of this raster image node

getImageBounds

public Rectangle2D getImageBounds()
Returns the bounds of this raster image node.

Returns: the bounds of this raster image node

getOutline

public Shape getOutline()
Returns the outline of this node.

getPrimitiveBounds

public Rectangle2D getPrimitiveBounds()
Returns the bounds of the area covered by this node's primitive paint.

getSensitiveBounds

public Rectangle2D getSensitiveBounds()
Returns the bounds of the sensitive area covered by this node, This includes the stroked area but does not include the effects of clipping, masking or filtering.

primitivePaint

public void primitivePaint(Graphics2D g2d)
Paints this node without applying Filter, Mask, Composite and clip.

Parameters: g2d the Graphics2D to use

setImage

public void setImage(Filter newImage)
Sets the raster image of this raster image node.

Parameters: newImage the new raster image of this raster image node

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.