org.apache.batik.refimpl.gvt
Class ConcreteRasterImageNode

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

public class ConcreteRasterImageNode
extends AbstractGraphicsNode
implements RasterImageNode

An implementation of the RasterImageNode interface.


Field Summary
static java.awt.geom.AffineTransform IDENTITY
           
protected  Filter image
          The renderable image that represents this image node.
protected  java.awt.geom.Rectangle2D imageBounds
          The Bounds of this image node.
 
Fields inherited from class org.apache.batik.refimpl.gvt.AbstractGraphicsNode
clip, composite, cursor, eventFilter, filter, hints, hitDetector, isVisible, listeners, mask, mememtos, parent, root, transform
 
Fields inherited from interface org.apache.batik.gvt.GraphicsNode
KEY_AREA_OF_INTEREST
 
Constructor Summary
ConcreteRasterImageNode()
          Constructs a new empty raster image node.
 
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.
 boolean hasProgressivePaint()
          Returns true if this node needs a progressive paint, false otherwise.
 void primitivePaint(java.awt.Graphics2D g2d, GraphicsNodeRenderContext rc)
          Paints this node without applying Filter, Mask, Composite and clip.
 void progressivePaint(java.awt.Graphics2D g2d, GraphicsNodeRenderContext rc)
          Paints one step of this node rendering operations.
 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.
 
Methods inherited from class org.apache.batik.refimpl.gvt.AbstractGraphicsNode
acceptEvent, addGraphicsNodeKeyListener, addGraphicsNodeMouseListener, addPropertyChangeListener, addPropertyChangeListener, contains, dispatch, fireGraphicsNodePaintListener, firePropertyChange, firePropertyChange, firePropertyChange, getBounds, getClip, getComposite, getCursor, getFilter, getGlobalBounds, getGlobalTransform, getGraphicsNodeEventFilter, getGraphicsNodeHitDetector, getListeners, getMask, getMemento, getParent, getRenderingHints, getRoot, getTransform, intersects, invalidateGeometryCache, isAntialiasedClip, isOffscreenBufferNeeded, isVisible, nodeHitAt, paint, processChangeEvent, processKeyEvent, processMouseEvent, putMemento, removeGraphicsNodeKeyListener, removeGraphicsNodeMouseListener, removeMemento, removePropertyChangeListener, setClip, setComposite, setCursor, setFilter, setGraphicsNodeEventFilter, setGraphicsNodeHitDetector, setMask, setRenderingHint, setRenderingHints, setRenderingHints, setRoot, setTransform, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.batik.gvt.GraphicsNode
addGraphicsNodeKeyListener, addGraphicsNodeMouseListener, addPropertyChangeListener, addPropertyChangeListener, contains, dispatch, getBounds, getClip, getComposite, getCursor, getFilter, getGlobalTransform, getGraphicsNodeEventFilter, getGraphicsNodeHitDetector, getListeners, getMask, getMemento, getParent, getRenderingHints, getRoot, getTransform, intersects, isVisible, nodeHitAt, paint, processKeyEvent, processMouseEvent, putMemento, removeGraphicsNodeKeyListener, removeGraphicsNodeMouseListener, removeMemento, removePropertyChangeListener, setClip, setComposite, setCursor, setFilter, setGraphicsNodeEventFilter, setGraphicsNodeHitDetector, setMask, setRenderingHint, setRenderingHints, setRenderingHints, setTransform, setVisible
 

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.

IDENTITY

public static java.awt.geom.AffineTransform IDENTITY
Constructor Detail

ConcreteRasterImageNode

public ConcreteRasterImageNode()
Constructs a new empty raster image node.
Method Detail

setImage

public void setImage(Filter newImage)
Description copied from interface: RasterImageNode
Sets the raster image of this raster image node.
Specified by:
setImage in interface RasterImageNode
Following copied from interface: org.apache.batik.gvt.RasterImageNode
Parameters:
newImage - the new raster image of this raster image node

getImage

public Filter getImage()
Description copied from interface: RasterImageNode
Returns the raster image of this raster image node.
Specified by:
getImage in interface RasterImageNode
Following copied from interface: org.apache.batik.gvt.RasterImageNode
Returns:
the raster image of this raster image node

setImageBounds

public void setImageBounds(java.awt.geom.Rectangle2D newImageBounds)
Description copied from interface: RasterImageNode
Sets the bounds of this raster image node.
Specified by:
setImageBounds in interface RasterImageNode
Following copied from interface: org.apache.batik.gvt.RasterImageNode
Parameters:
newBounds - the new bounds of this raster image node

getImageBounds

public java.awt.geom.Rectangle2D getImageBounds()
Description copied from interface: RasterImageNode
Returns the bounds of this raster image node.
Specified by:
getImageBounds in interface RasterImageNode
Following copied from interface: org.apache.batik.gvt.RasterImageNode
Returns:
the bounds of this raster image node

hasProgressivePaint

public boolean hasProgressivePaint()
Description copied from interface: GraphicsNode
Returns true if this node needs a progressive paint, false otherwise.
Specified by:
hasProgressivePaint in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Returns:
true if this node needs a progressive paint

progressivePaint

public void progressivePaint(java.awt.Graphics2D g2d,
                             GraphicsNodeRenderContext rc)
Description copied from interface: GraphicsNode
Paints one step of this node rendering operations.
Specified by:
progressivePaint in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
g2d - the Graphics2D to use
rc - the GraphicsNodeRenderContext to use

primitivePaint

public void primitivePaint(java.awt.Graphics2D g2d,
                           GraphicsNodeRenderContext rc)
Description copied from interface: GraphicsNode
Paints this node without applying Filter, Mask, Composite and clip.
Specified by:
primitivePaint in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
g2d - the Graphics2D to use
rc - the GraphicsNodeRenderContext to use

getPrimitiveBounds

public java.awt.geom.Rectangle2D getPrimitiveBounds()
Description copied from interface: GraphicsNode
Returns the bounds of the area covered by this node's primitive paint.
Specified by:
getPrimitiveBounds in interface GraphicsNode

getGeometryBounds

public java.awt.geom.Rectangle2D getGeometryBounds()
Description copied from interface: GraphicsNode
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.
Specified by:
getGeometryBounds in interface GraphicsNode

getOutline

public java.awt.Shape getOutline()
Description copied from interface: GraphicsNode
Returns the outline of this node.
Specified by:
getOutline in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Returns:
the outline of this node


Copyright © 2000 Apache Software Foundation. All Rights Reserved.