public class NGImageView extends NGNode
NGNode.DirtyFlag, NGNode.RenderRootResult
Modifier and Type | Field and Description |
---|---|
private CompoundCoords |
compoundCoords |
private CachingCompoundImage |
compoundImage |
private Coords |
coords |
private boolean |
coordsOK |
private float |
h |
private Image |
image |
private ViewPort |
imgviewport |
(package private) static int |
MAX_SIZE_OVERRIDE |
private boolean |
renderable |
private ViewPort |
reqviewport |
private float |
w |
private float |
x |
private float |
y |
childDirty, contentBounds, cullingBits, dirty, DIRTY_CHILDREN_ACCUMULATED_THRESHOLD, DIRTY_REGION_CONTAINS_NODE_BOUNDS, DIRTY_REGION_CONTAINS_OR_INTERSECTS_NODE_BOUNDS, DIRTY_REGION_INTERSECTS_NODE_BOUNDS, dirtyBounds, dirtyChildrenAccumulated, TEMP_TRANSFORM, transformedBounds
Constructor and Description |
---|
NGImageView() |
Modifier and Type | Method and Description |
---|---|
private void |
calculatePositionAndClipping() |
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() |
private void |
invalidate() |
private int |
maxSizeWrapper(ResourceFactory factory) |
protected void |
renderContent(Graphics g) |
void |
setImage(java.lang.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, accumulateGroupDirtyRegion, accumulateNodeDirtyRegion, applyClip, applyEffect, applyTransform, checkBoundsInQuad, clearDirty, clearDirtyTree, clearPainted, computeNodeRenderRoot, computePadding, computeRenderRoot, doPreCulling, drawDirtyOpts, effectChanged, geometryChanged, getCacheFilter, getClipNode, getClippedBounds, getCompleteBounds, getContentBounds, getEffect, getEffectBounds, getEffectFilter, getFilterContext, getName, getNodeBlendMode, getOpacity, getOpaqueRegion, getParent, getRenderRoot, getTransform, hasVisuals, invalidateCache, invalidateCacheByTranslation, invalidateOpaqueRegion, isClean, isContentBounds2D, isDepthTest, isOpaqueRegionInvalid, isReadbackSupported, isRectClip, isShape3D, isVisible, markCullRegions, markDirty, markTreeDirty, markTreeDirtyNoIncrement, needsBlending, printDirtyOpts, release, render, renderClip, renderEffect, renderForcedContent, renderForClip, setCachedAsBitmap, setClipNode, setContentBounds, setDepthTest, setEffect, setName, setNodeBlendMode, setOpacity, setParent, setTransformedBounds, setTransformMatrix, setVisible, toString, visualsChanged
private Image image
private CachingCompoundImage compoundImage
private CompoundCoords compoundCoords
private float x
private float y
private float w
private float h
private Coords coords
private ViewPort reqviewport
private ViewPort imgviewport
private boolean renderable
private boolean coordsOK
static final int MAX_SIZE_OVERRIDE
private void invalidate()
public void setViewport(float vx, float vy, float vw, float vh, float cw, float ch)
private void calculatePositionAndClipping()
protected void doRender(Graphics g)
NGNode
private int maxSizeWrapper(ResourceFactory factory)
protected void renderContent(Graphics g)
renderContent
in class NGNode
protected boolean hasOverlappingContents()
hasOverlappingContents
in class NGNode
public void setImage(java.lang.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