public class NGImageView extends NGNode
NGNode.DirtyFlag, NGNode.RenderRootResult
childDirty, 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, visualsChanged
public void setViewport(float vx, float vy, float vw, float vh, float cw, float ch)
protected void doRender(Graphics g)
NGNode
protected void renderContent(Graphics g)
renderContent
in class NGNode
protected boolean hasOverlappingContents()
hasOverlappingContents
in class NGNode
public void setImage(Object img)
public void setX(float x)
public void setY(float y)
public void setSmooth(boolean s)
protected boolean supportsOpaqueRegions()
NGNode
supportsOpaqueRegions
in class NGNode
protected boolean hasOpaqueRegion()
NGNode
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. 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 NGNode
protected RectBounds computeOpaqueRegion(RectBounds opaqueRegion)
NGNode
computeOpaqueRegion
in class NGNode
Copyright © 2020. All rights reserved.