public class NGImageView extends NGNode
NGNode.DirtyFlag, NGNode.RenderRootResultchildDirty, contentBounds, cullingBits, dirty, DIRTY_CHILDREN_ACCUMULATED_THRESHOLD, dirtyChildrenAccumulated, TEMP_TRANSFORM, transformedBounds| Constructor and Description |
|---|
NGImageView() |
| Modifier and Type | Method and Description |
|---|---|
protected RectBounds |
computeOpaqueRegion(RectBounds opaqueRegion)
Computes and returns the opaque region for this node.
|
protected void |
doRender(Graphics g)
Invoked only by the final render method.
|
protected boolean |
hasOpaqueRegion()
Called only on NGNode subclasses which override
NGNode.supportsOpaqueRegions() to return
true, this method will return whether or not this NGNode is in a state where it has
an opaque region to actually return. |
protected boolean |
hasOverlappingContents() |
protected void |
renderContent(Graphics g) |
void |
setImage(Object img) |
void |
setSmooth(boolean s) |
void |
setViewport(float vx,
float vy,
float vw,
float vh,
float cw,
float ch) |
void |
setX(float x) |
void |
setY(float y) |
protected boolean |
supportsOpaqueRegions()
Gets whether this NGNode supports opaque regions at all.
|
accumulateDirtyRegions, applyClip, applyEffect, applyTransform, clearDirty, clearDirtyTree, clearPainted, computePadding, doPreCulling, drawDirtyOpts, effectChanged, geometryChanged, getCacheFilter, getClipNode, getClippedBounds, getCompleteBounds, getContentBounds, getEffect, getEffectBounds, getEffectFilter, getName, getNodeBlendMode, getOpacity, getOpaqueRegion, getParent, getRenderRoot, getTransform, hasVisuals, invalidateCache, invalidateCacheByTranslation, invalidateOpaqueRegion, isClean, isContentBounds2D, isDepthTest, isRectClip, isVisible, markDirty, markTreeDirty, markTreeDirtyNoIncrement, needsBlending, printDirtyOpts, release, render, renderEffect, renderForcedContent, setCachedAsBitmap, setClipNode, setContentBounds, setDepthTest, setEffect, setName, setNodeBlendMode, setOpacity, setParent, setTransformedBounds, setTransformMatrix, setVisible, toString, visualsChangedpublic void setViewport(float vx,
float vy,
float vw,
float vh,
float cw,
float ch)
protected void doRender(Graphics g)
NGNodeprotected void renderContent(Graphics g)
renderContent in class NGNodeprotected boolean hasOverlappingContents()
hasOverlappingContents in class NGNodepublic void setImage(Object img)
public void setX(float x)
public void setY(float y)
public void setSmooth(boolean s)
protected boolean supportsOpaqueRegions()
NGNodesupportsOpaqueRegions in class NGNodeprotected boolean hasOpaqueRegion()
NGNodeNGNode.supportsOpaqueRegions() to return
true, this method will return whether or not this NGNode is in a state where it has
an opaque region to actually return. If this method returns true, a subsequent call to
NGNode.computeOpaqueRegion(com.sun.javafx.geom.RectBounds) must return
a non-null result. Any state used in the computation of this method, when it changes, must
result in a call to NGNode.invalidateOpaqueRegion().hasOpaqueRegion in class NGNodeprotected RectBounds computeOpaqueRegion(RectBounds opaqueRegion)
NGNodecomputeOpaqueRegion in class NGNodeCopyright © 2025. All rights reserved.