|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.scenario.scenegraph.SGNode
com.sun.scenario.scenegraph.SGLeaf
com.sun.scenario.scenegraph.SGImage
public class SGImage
A scene graph node that renders an Image.
| Constructor Summary | |
|---|---|
SGImage()
|
|
| Method Summary | |
|---|---|
java.awt.geom.Rectangle2D |
getBounds(java.awt.geom.AffineTransform transform)
Returns the bounding box of this node relative to the specified coordinate space. |
java.awt.Image |
getImage()
|
java.lang.Object |
getInterpolationHint()
Returns the KEY_INTERPOLATION rendering hint. |
java.awt.geom.Point2D |
getLocation()
This no-arg getter is equivalent to calling getLocation(null)
. |
java.awt.geom.Point2D |
getLocation(java.awt.geom.Point2D rv)
Defines the image's bound's origin. |
boolean |
getSmoothTranslation()
Returns whether the interpolation hint will be honored for non-integral translations. |
boolean |
hasOverlappingContents()
|
void |
paint(java.awt.Graphics2D g)
|
void |
setImage(java.awt.Image image)
|
void |
setInterpolationHint(java.lang.Object hint)
Sets the KEY_INTERPOLATION rendering hint. |
void |
setLocation(java.awt.geom.Point2D location)
|
void |
setSmoothTranslation(boolean smooth)
Sets whether the interpolation hint will be honored for non-integral translations. |
| Methods inherited from class com.sun.scenario.scenegraph.SGLeaf |
|---|
repaint, repaint |
| 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 |
|---|
public SGImage()
| Method Detail |
|---|
public final java.awt.Image getImage()
public void setImage(java.awt.Image image)
public final java.awt.geom.Point2D getLocation(java.awt.geom.Point2D rv)
rv is non-null, it will be set and returned.
Otherwise a new Point will be allocated and returned.
rv - the return value or null
public final java.awt.geom.Point2D getLocation()
getLocation(null)
.
getLocation(Point2D)public void setLocation(java.awt.geom.Point2D location)
public final java.lang.Object getInterpolationHint()
KEY_INTERPOLATION rendering hint.
The hint will be
one of: RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR,
RenderingHints.VALUE_INTERPOLATION_BILINEAR,
RenderingHints.VALUE_INTERPOLATION_BICUBIC.
KEY_INTERPOLATION hintRenderingHintspublic void setInterpolationHint(java.lang.Object hint)
KEY_INTERPOLATION rendering hint. The hint must be
one of: RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR,
RenderingHints.VALUE_INTERPOLATION_BILINEAR,
RenderingHints.VALUE_INTERPOLATION_BICUBIC.
The default is VALUE_INTERPOLATION_BILINEAR.
RenderingHints,
Graphics2Dpublic final boolean getSmoothTranslation()
public void setSmoothTranslation(boolean smooth)
This setting only has an impact if the current interpolation hint
is either
RenderingHints.VALUE_INTERPOLATION_BILINEAR or
RenderingHints.VALUE_INTERPOLATION_BICUBIC.
smooth - if true, the interpolation hint will be honored
for non-integral translationspublic void paint(java.awt.Graphics2D g)
paint in class SGLeafpublic final java.awt.geom.Rectangle2D getBounds(java.awt.geom.AffineTransform transform)
SGNode
getBounds in class SGNodetransform - the transform applied to the geometrypublic boolean hasOverlappingContents()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||