Class RasterImageNode

java.lang.Object
org.apache.batik.gvt.AbstractGraphicsNode
org.apache.batik.gvt.RasterImageNode
All Implemented Interfaces:
GraphicsNode

public class RasterImageNode extends AbstractGraphicsNode
A graphics node that represents a raster image.
Version:
$Id: RasterImageNode.java 1733416 2016-03-03 07:07:13Z gadams $
  • Field Details

    • image

      protected Filter image
      The renderable image that represents this image node.
  • Constructor Details

    • RasterImageNode

      public RasterImageNode()
      Constructs a new empty RasterImageNode.
  • Method Details

    • 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
    • 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
    • getGraphicsNodeRable

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

      public void primitivePaint(Graphics2D g2d)
      Paints this node without applying Filter, Mask, Composite and clip.
      Parameters:
      g2d - the Graphics2D to use
    • getPrimitiveBounds

      public Rectangle2D getPrimitiveBounds()
      Returns the bounds of the area covered by this node's primitive paint.
    • 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.
    • 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.
    • getOutline

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