Top Fields Constructors Methods
com.sun.javafx.sg.prism

public Class NGImageView

extends NGNode
Class Inheritance
Imports
com.sun.javafx.geom.RectBounds, com.sun.prism.Graphics, .Image, .ResourceFactory, .Texture, com.sun.prism.image.CachingCompoundImage, .CompoundCoords, .Coords, .ViewPort

Field Summary

Modifier and TypeField and Description
private CompoundCoords
private CachingCompoundImage
private Coords
private boolean
private float
h

private Image
private ViewPort
pack-priv static final int
private boolean
private ViewPort
private float
w

private float
x

private float
y

Inherited from com.sun.javafx.sg.prism.NGNode:
childDirtycontentBoundscullingBitsdirtyDIRTY_CHILDREN_ACCUMULATED_THRESHOLDDIRTY_REGION_CONTAINS_NODE_BOUNDSDIRTY_REGION_CONTAINS_OR_INTERSECTS_NODE_BOUNDSDIRTY_REGION_INTERSECTS_NODE_BOUNDSdirtyBoundsdirtyChildrenAccumulatedTEMP_TRANSFORMtransformedBounds

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
protected RectBounds
computeOpaqueRegion(RectBounds opaqueRegion)

Overrides com.sun.javafx.sg.prism.NGNode.computeOpaqueRegion.

Computes and returns the opaque region for this node.

protected void
doRender(Graphics g)

Overrides com.sun.javafx.sg.prism.NGNode.doRender.

Invoked only by the final render method.

protected boolean
hasOpaqueRegion()

Overrides com.sun.javafx.sg.prism.NGNode.hasOpaqueRegion.

Called only on NGNode subclasses which override 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
private void
private int
protected void
public void
public void
setSmooth(boolean s)

public void
setViewport(float vx, float vy, float vw, float vh, float cw, float ch)

public void
setX(float x)

public void
setY(float y)

protected boolean
supportsOpaqueRegions()

Overrides com.sun.javafx.sg.prism.NGNode.supportsOpaqueRegions.

Gets whether this NGNode supports opaque regions at all.

Inherited from com.sun.javafx.sg.prism.NGNode:
accumulateDirtyRegionsaccumulateGroupDirtyRegionaccumulateNodeDirtyRegionapplyClipapplyEffectapplyTransformcheckBoundsInQuadclearDirtyclearPaintedcomputeNodeRenderRootcomputePaddingcomputeRenderRootdoPreCullingdrawDirtyOptseffectChangedgeometryChangedgetCacheFiltergetClipNodegetClippedBoundsgetCompleteBoundsgetContentBoundsgetEffectgetEffectBoundsgetEffectFiltergetFilterContextgetNamegetNodeBlendModegetOpacitygetOpaqueRegiongetParentgetRenderRootgetTransformhasVisualsinvalidateCacheinvalidateCacheByTranslationinvalidateOpaqueRegionisCleanisContentBounds2DisDepthTestisOpaqueRegionInvalidisReadbackSupportedisRectClipisShape3DisVisiblemarkCullRegionsmarkDirtymarkTreeDirtymarkTreeDirtyNoIncrementneedsBlendingprintDirtyOptsreleaserenderrenderCliprenderEffectrenderForcedContentrenderForClipsetCachedAsBitmapsetClipNodesetContentBoundssetDepthTestsetEffectsetNamesetNodeBlendModesetOpacitysetParentsetTransformedBoundssetTransformMatrixsetViewOrdersetVisibletoStringvisualsChanged

Field Detail

compoundCoordsback to summary
private CompoundCoords compoundCoords
compoundImageback to summary
private CachingCompoundImage compoundImage
coordsback to summary
private Coords coords
coordsOKback to summary
private boolean coordsOK
hback to summary
private float h
imageback to summary
private Image image
imgviewportback to summary
private ViewPort imgviewport
MAX_SIZE_OVERRIDEback to summary
pack-priv static final int MAX_SIZE_OVERRIDE
renderableback to summary
private boolean renderable
reqviewportback to summary
private ViewPort reqviewport
wback to summary
private float w
xback to summary
private float x
yback to summary
private float y

Constructor Detail

NGImageViewback to summary
public NGImageView()

Method Detail

calculatePositionAndClippingback to summary
private void calculatePositionAndClipping()
computeOpaqueRegionback to summary
protected RectBounds computeOpaqueRegion(RectBounds opaqueRegion)

Overrides com.sun.javafx.sg.prism.NGNode.computeOpaqueRegion.

Doc from com.sun.javafx.sg.prism.NGNode.computeOpaqueRegion.

Computes and returns the opaque region for this node. This method

Annotations
@Override
doRenderback to summary
protected void doRender(Graphics g)

Overrides com.sun.javafx.sg.prism.NGNode.doRender.

Doc from com.sun.javafx.sg.prism.NGNode.doRender.

Invoked only by the final render method. Implementations of this method should make sure to save & restore the transform state.

Annotations
@Override
hasOpaqueRegionback to summary
protected boolean hasOpaqueRegion()

Overrides com.sun.javafx.sg.prism.NGNode.hasOpaqueRegion.

Doc from com.sun.javafx.sg.prism.NGNode.hasOpaqueRegion.

Called only on NGNode subclasses which override 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 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 invalidateOpaqueRegion().

Annotations
@Override
hasOverlappingContentsback to summary
protected boolean hasOverlappingContents()

Implements abstract com.sun.javafx.sg.prism.NGNode.hasOverlappingContents.

Annotations
@Override
invalidateback to summary
private void invalidate()
maxSizeWrapperback to summary
private int maxSizeWrapper(ResourceFactory factory)
renderContentback to summary
protected void renderContent(Graphics g)

Implements abstract com.sun.javafx.sg.prism.NGNode.renderContent.

Annotations
@Override
setImageback to summary
public void setImage(Object img)
setSmoothback to summary
public void setSmooth(boolean s)
setViewportback to summary
public void setViewport(float vx, float vy, float vw, float vh, float cw, float ch)
setXback to summary
public void setX(float x)
setYback to summary
public void setY(float y)
supportsOpaqueRegionsback to summary
protected boolean supportsOpaqueRegions()

Overrides com.sun.javafx.sg.prism.NGNode.supportsOpaqueRegions.

Doc from com.sun.javafx.sg.prism.NGNode.supportsOpaqueRegions.

Gets whether this NGNode supports opaque regions at all. Most node types do not, but some do. If an NGNode subclass is written to support opaque regions, it must override this method to return true. The subclass must then also override the computeDirtyRegion method to return the dirty region, or null if the node in its current state doesn't have one. This method is intended to be immutable.

Annotations
@Override