APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.javafx.sg.prism

public Class NGExternalNode

extends NGNode
Class Inheritance
Imports
java.nio.Buffer, java.util.concurrent.atomic.AtomicReference, java.util.concurrent.locks.ReentrantLock, com.sun.javafx.geom.Rectangle, com.sun.prism.Graphics, .PixelFormat, .ResourceFactory, .Texture

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private NGExternalNode.BufferData
private volatile ReentrantLock
private Texture
private NGExternalNode.RenderData
private final AtomicReference<NGExternalNode.RenderData>
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 Texture
protected boolean
public void
protected void
public void
repaintDirtyRegion(final int dirtyX, final int dirtyY, final int dirtyWidth, final int dirtyHeight)

public void
setImageBounds(final int x, final int y, final int width, final int height, final float usrWidth, final float usrHeight)

public void
setImageBuffer(Buffer buffer, int x, int y, int width, int height, float usrWidth, float usrHeight, int linestride, double scaleX, double scaleY)

public void
Inherited from com.sun.javafx.sg.prism.NGNode:
accumulateDirtyRegionsaccumulateGroupDirtyRegionaccumulateNodeDirtyRegionapplyClipapplyEffectapplyTransformcheckBoundsInQuadclearDirtyclearPaintedcomputeNodeRenderRootcomputeOpaqueRegioncomputePaddingcomputeRenderRootdoPreCullingdoRenderdrawDirtyOptseffectChangedgeometryChangedgetCacheFiltergetClipNodegetClippedBoundsgetCompleteBoundsgetContentBoundsgetEffectgetEffectBoundsgetEffectFiltergetFilterContextgetNamegetNodeBlendModegetOpacitygetOpaqueRegiongetParentgetRenderRootgetTransformhasOpaqueRegionhasVisualsinvalidateCacheinvalidateCacheByTranslationinvalidateOpaqueRegionisCleanisContentBounds2DisDepthTestisOpaqueRegionInvalidisReadbackSupportedisRectClipisShape3DisVisiblemarkCullRegionsmarkDirtymarkTreeDirtymarkTreeDirtyNoIncrementneedsBlendingprintDirtyOptsreleaserenderrenderCliprenderEffectrenderForcedContentrenderForClipsetCachedAsBitmapsetClipNodesetContentBoundssetDepthTestsetEffectsetNamesetNodeBlendModesetOpacitysetParentsetTransformedBoundssetTransformMatrixsetViewOrdersetVisiblesupportsOpaqueRegionstoStringvisualsChanged

Field Detail

bufferDataback to summary
private NGExternalNode.BufferData bufferData
bufferLockback to summary
private volatile ReentrantLock bufferLock
dsttextureback to summary
private Texture dsttexture
rdback to summary
private NGExternalNode.RenderData rd
renderDataback to summary
private final AtomicReference<NGExternalNode.RenderData> renderData

Constructor Detail

NGExternalNodeback to summary
public NGExternalNode()

Method Detail

createTextureback to summary
private Texture createTexture(Graphics g, NGExternalNode.RenderData rd)
hasOverlappingContentsback to summary
protected boolean hasOverlappingContents()

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

Annotations
@Override
markContentDirtyback to summary
public void markContentDirty()
renderContentback to summary
protected void renderContent(Graphics g)

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

Annotations
@Override
repaintDirtyRegionback to summary
public void repaintDirtyRegion(final int dirtyX, final int dirtyY, final int dirtyWidth, final int dirtyHeight)
setImageBoundsback to summary
public void setImageBounds(final int x, final int y, final int width, final int height, final float usrWidth, final float usrHeight)
setImageBufferback to summary
public void setImageBuffer(Buffer buffer, int x, int y, int width, int height, float usrWidth, float usrHeight, int linestride, double scaleX, double scaleY)
setLockback to summary
public void setLock(ReentrantLock lock)
com.sun.javafx.sg.prism back to summary

private Class NGExternalNode.BufferData

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final double
pack-priv final double
pack-priv final Rectangle
pack-priv final Buffer
pack-priv final float
pack-priv final float

Constructor Summary

AccessConstructor and Description
pack-priv
BufferData(Buffer srcbuffer, int linestride, int x, int y, int width, int height, float usrWidth, float usrHeight, double scaleX, double scaleY)

Method Summary

Modifier and TypeMethod and Description
pack-priv NGExternalNode.BufferData
copyWithBounds(int x, int y, int width, int height, float usrWidth, float usrHeight)

pack-priv Rectangle
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

linestrideback to summary
pack-priv final int linestride
scaleXback to summary
pack-priv final double scaleX
scaleYback to summary
pack-priv final double scaleY
srcboundsback to summary
pack-priv final Rectangle srcbounds
srcbufferback to summary
pack-priv final Buffer srcbuffer
usrheightback to summary
pack-priv final float usrheight
usrwidthback to summary
pack-priv final float usrwidth

Constructor Detail

BufferDataback to summary
pack-priv BufferData(Buffer srcbuffer, int linestride, int x, int y, int width, int height, float usrWidth, float usrHeight, double scaleX, double scaleY)

Method Detail

copyWithBoundsback to summary
pack-priv NGExternalNode.BufferData copyWithBounds(int x, int y, int width, int height, float usrWidth, float usrHeight)
scaleback to summary
pack-priv Rectangle scale(Rectangle r)
com.sun.javafx.sg.prism back to summary

private Class NGExternalNode.RenderData

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final NGExternalNode.BufferData
pack-priv final boolean
pack-priv final Rectangle

Constructor Summary

AccessConstructor and Description
pack-priv
RenderData(NGExternalNode.BufferData bdata, int dirtyX, int dirtyY, int dirtyWidth, int dirtyHeight, boolean clearTarget)

pack-priv
RenderData(NGExternalNode.BufferData bdata, int dirtyX, int dirtyY, int dirtyWidth, int dirtyHeight, boolean clearTarget, boolean applyScale)

Method Summary

Modifier and TypeMethod and Description
pack-priv NGExternalNode.RenderData
copyAddDirtyRect(int dirtyX, int dirtyY, int dirtyWidth, int dirtyHeight)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bdataback to summary
pack-priv final NGExternalNode.BufferData bdata
clearTargetback to summary
pack-priv final boolean clearTarget
dirtyRectback to summary
pack-priv final Rectangle dirtyRect

Constructor Detail

RenderDataback to summary
pack-priv RenderData(NGExternalNode.BufferData bdata, int dirtyX, int dirtyY, int dirtyWidth, int dirtyHeight, boolean clearTarget)
RenderDataback to summary
pack-priv RenderData(NGExternalNode.BufferData bdata, int dirtyX, int dirtyY, int dirtyWidth, int dirtyHeight, boolean clearTarget, boolean applyScale)

Method Detail

copyAddDirtyRectback to summary
pack-priv NGExternalNode.RenderData copyAddDirtyRect(int dirtyX, int dirtyY, int dirtyWidth, int dirtyHeight)