org.apache.batik.gvt
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.


Field Summary
protected  boolean calcAffine
          This flag indicates whether or not the affine transforms have been computed.
protected  Filter image
          The renderable image that represents this image node.
protected  java.awt.geom.Rectangle2D imageBounds
          The Bounds of this image node.
protected  java.awt.geom.AffineTransform img2usr
          The transform that go from the image to the user coordinate system.
protected  java.awt.geom.AffineTransform usr2img
          The transform that go from the user to the image coordinate system.
 
Fields inherited from class org.apache.batik.gvt.AbstractGraphicsNode
clip, composite, filter, graphicsNodeRable, hints, hitDetector, inverseTransform, isVisible, listeners, mask, parent, root, transform
 
Fields inherited from interface org.apache.batik.gvt.GraphicsNode
IDENTITY
 
Constructor Summary
RasterImageNode()
          Constructs a new empty RasterImageNode.
 
Method Summary
 java.awt.geom.Rectangle2D getGeometryBounds()
          Returns the bounds of the area covered by this node, without taking any of its rendering attribute into account. i.e., exclusive of any clipping, masking, filtering or stroking, for example.
 Filter getImage()
          Returns the raster image of this raster image node.
 java.awt.geom.Rectangle2D getImageBounds()
          Returns the bounds of this raster image node.
 java.awt.Shape getOutline()
          Returns the outline of this node.
 java.awt.geom.Rectangle2D getPrimitiveBounds()
          Returns the bounds of the area covered by this node's primitive paint.
 void primitivePaint(java.awt.Graphics2D g2d)
          Paints this node without applying Filter, Mask, Composite and clip.
 void setImage(Filter newImage)
          Sets the raster image of this raster image node.
 void setImageBounds(java.awt.geom.Rectangle2D newImageBounds)
          Sets the bounds of this raster image node.
protected  void updateAffine()
          Updates bith the user->image and image->user transform.
 
Methods inherited from class org.apache.batik.gvt.AbstractGraphicsNode
acceptEvent, addGraphicsNodeKeyListener, addGraphicsNodeMouseListener, contains, dispatchEvent, getBounds, getClip, getComposite, getFilter, getGlobalTransform, getGraphicsNodeHitDetector, getGraphicsNodeRable, getInverseTransform, getListeners, getMask, getParent, getRenderingHints, getRoot, getTransform, getTransformedBounds, getTransformedGeometryBounds, getTransformedOutline, getTransformedPrimitiveBounds, intersects, invalidateGeometryCache, isAntialiasedClip, isOffscreenBufferNeeded, isVisible, nodeHitAt, paint, processKeyEvent, processMouseEvent, removeGraphicsNodeKeyListener, removeGraphicsNodeMouseListener, setClip, setComposite, setFilter, setGraphicsNodeHitDetector, setMask, setParent, setRenderingHint, setRenderingHints, setRenderingHints, setRoot, setTransform, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

image

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

imageBounds

protected java.awt.geom.Rectangle2D imageBounds
The Bounds of this image node.

img2usr

protected java.awt.geom.AffineTransform img2usr
The transform that go from the image to the user coordinate system.

usr2img

protected java.awt.geom.AffineTransform usr2img
The transform that go from the user to the image coordinate system.

calcAffine

protected boolean calcAffine
This flag indicates whether or not the affine transforms have been computed.
Constructor Detail

RasterImageNode

public RasterImageNode()
Constructs a new empty RasterImageNode.
Method Detail

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

setImageBounds

public void setImageBounds(java.awt.geom.Rectangle2D newImageBounds)
Sets the bounds of this raster image node.
Parameters:
newBounds - the new bounds of this raster image node

getImageBounds

public java.awt.geom.Rectangle2D getImageBounds()
Returns the bounds of this raster image node.
Returns:
the bounds of this raster image node

updateAffine

protected void updateAffine()
Updates bith the user->image and image->user transform.

primitivePaint

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

getPrimitiveBounds

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

getGeometryBounds

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

getOutline

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


Copyright © 2001 Apache Software Foundation. All Rights Reserved.