com.sun.scenario.scenegraph
Class SGEffect

java.lang.Object
  extended by com.sun.scenario.scenegraph.SGNode
      extended by com.sun.scenario.scenegraph.SGParent
          extended by com.sun.scenario.scenegraph.SGFilter
              extended by com.sun.scenario.scenegraph.SGEffect

public class SGEffect
extends SGFilter


Field Summary
 
Fields inherited from class com.sun.scenario.scenegraph.SGFilter
BOTH, CACHED, NONE, TRANSFORMED, UNTRANSFORMED
 
Constructor Summary
SGEffect()
           
 
Method Summary
 boolean canExpandBounds()
          Returns true if the bounds of this filter node are (potentially) larger than the bounds of its child, false otherwise.
 boolean canSkipRendering()
           
 java.awt.geom.Rectangle2D getBounds(java.awt.geom.AffineTransform xform)
          Returns the bounding box of this node relative to the specified coordinate space.
 Effect getEffect()
           
 int needsSourceContent()
           
 void renderFinalImage(java.awt.Graphics2D g, SGSourceContent srcContent)
           
 void setEffect(Effect effect)
           
 void setupRenderGraphics(java.awt.Graphics2D g)
           
 
Methods inherited from class com.sun.scenario.scenegraph.SGFilter
canSkipChildren, getChild, getChildren, remove, remove, renderFromCache, setChild
 
Methods inherited from class com.sun.scenario.scenegraph.SGNode
addFocusListener, addKeyListener, addMouseListener, addNodeListener, contains, getAttribute, getBounds, getCursor, getID, getPanel, getParent, globalToLocal, isMouseBlocker, isVisible, localToGlobal, pick, putAttribute, removeFocusListener, removeKeyListener, removeMouseListener, removeNodeListener, render, requestFocus, setCursor, setID, setMouseBlocker, setVisible, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SGEffect

public SGEffect()
Method Detail

getEffect

public Effect getEffect()

setEffect

public void setEffect(Effect effect)

getBounds

public java.awt.geom.Rectangle2D getBounds(java.awt.geom.AffineTransform xform)
Description copied from class: SGNode
Returns the bounding box of this node relative to the specified coordinate space.

Overrides:
getBounds in class SGFilter
Parameters:
xform - the transform applied to the geometry

canSkipRendering

public boolean canSkipRendering()
Overrides:
canSkipRendering in class SGFilter

canExpandBounds

public boolean canExpandBounds()
Returns true if the bounds of this filter node are (potentially) larger than the bounds of its child, false otherwise.

Overrides:
canExpandBounds in class SGFilter
Returns:
whether the bounds of this node expand outside the child bounds

needsSourceContent

public int needsSourceContent()
Overrides:
needsSourceContent in class SGFilter

setupRenderGraphics

public void setupRenderGraphics(java.awt.Graphics2D g)
Overrides:
setupRenderGraphics in class SGFilter

renderFinalImage

public void renderFinalImage(java.awt.Graphics2D g,
                             SGSourceContent srcContent)
Overrides:
renderFinalImage in class SGFilter