org.apache.batik.gvt
Class RasterImageNode

java.lang.Object
  |
  +--org.apache.batik.gvt.AbstractGraphicsNode
        |
        +--org.apache.batik.gvt.RasterImageNode
All Implemented Interfaces:
java.lang.Cloneable, GraphicsNode

public class RasterImageNode
extends AbstractGraphicsNode

A graphics node that represents a raster image.


Field Summary
protected  boolean calcAffine
           
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
           
protected  java.awt.geom.AffineTransform usr2img
           
 
Fields inherited from class org.apache.batik.gvt.AbstractGraphicsNode
clip, composite, filter, gnr, 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(GraphicsNodeRenderContext rc)
          Returns the geometric bounds in user space of this text node.
 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(GraphicsNodeRenderContext rc)
          Returns a shape which matches the text's geometry.
 java.awt.geom.Rectangle2D getPrimitiveBounds(GraphicsNodeRenderContext rc)
          Returns the primitive bounds in user space of this text node.
 void primitivePaint(java.awt.Graphics2D g2d, GraphicsNodeRenderContext rc)
          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()
           
 
Methods inherited from class org.apache.batik.gvt.AbstractGraphicsNode
acceptEvent, addGraphicsNodeKeyListener, addGraphicsNodeMouseListener, contains, dispatchEvent, getBounds, getClip, getComposite, getFilter, getGlobalTransform, getGraphicsNodeHitDetector, getInverseTransform, getListeners, getMask, getParent, getRenderingHints, getRoot, getTransform, getTransformedBounds, getTransformedGeometryBounds, getTransformedPrimitiveBounds, intersects, invalidateGeometryCache, isAntialiasedClip, isOffscreenBufferNeeded, isVisible, nodeHitAt, paint, processKeyEvent, processMouseEvent, removeGraphicsNodeKeyListener, removeGraphicsNodeMouseListener, renderingClone, 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

usr2img

protected java.awt.geom.AffineTransform usr2img

calcAffine

protected boolean calcAffine
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()

primitivePaint

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

getPrimitiveBounds

public java.awt.geom.Rectangle2D getPrimitiveBounds(GraphicsNodeRenderContext rc)
Returns the primitive bounds in user space of this text node.
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
rc - the GraphicsNodeRenderContext for which this dimension applies

getGeometryBounds

public java.awt.geom.Rectangle2D getGeometryBounds(GraphicsNodeRenderContext rc)
Returns the geometric bounds in user space of this text node.
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
rc - the GraphicsNodeRenderContext for which this dimension applies

getOutline

public java.awt.Shape getOutline(GraphicsNodeRenderContext rc)
Returns a shape which matches the text's geometry.
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
rc - the GraphicsNodeRenderContext for which this dimension applies
Returns:
the outline of this node


Copyright © 2001 Apache Software Foundation. All Rights Reserved.