APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.java2d.marlin

pack-priv final Class RendererContext

extends ReentrantContext
implements MarlinConst
Class Inheritance
All Implemented Interfaces
sun.java2d.marlin.MarlinConst
Imports
java.awt.geom.Path2D, java.lang.ref.WeakReference, java.util.concurrent.atomic.AtomicInteger, sun.java2d.ReentrantContext, sun.java2d.marlin.ArrayCacheConst.CacheStats, .DMarlinRenderingEngine.NormalizingPathIterator, .TransformingPathConsumer2D.CurveBasicMonotonizer, .TransformingPathConsumer2D.CurveClipSplitter

This class is a renderer context dedicated to a single thread

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final MarlinCache
private final Object
private final ArrayCacheIntClean
pack-priv double
pack-priv final double[]
pack-priv boolean
private static final AtomicInteger
pack-priv final Curve
pack-priv final TransformingPathConsumer2D.CurveClipSplitter
pack-priv final Dasher
pack-priv boolean
private final ArrayCacheByte
private final ArrayCacheDouble
private final ArrayCacheInt
pack-priv boolean
pack-priv boolean
pack-priv final double[]
pack-priv int
pack-priv final TransformingPathConsumer2D.CurveBasicMonotonizer
pack-priv final DMarlinRenderingEngine.NormalizingPathIterator
pack-priv final DMarlinRenderingEngine.NormalizingPathIterator
pack-priv final RendererContext.PathConsumer2DAdapter
pack-priv final PathSimplifier
pack-priv final MarlinTileGenerator
private WeakReference<Path2D.Double>
pack-priv final Renderer
pack-priv final CollinearSimplifier
pack-priv final DPQSSorterContext
pack-priv final RendererStats
pack-priv final Stroker
pack-priv int
pack-priv final TransformingPathConsumer2D

Constructor Summary

AccessConstructor and Description
pack-priv
RendererContext(final String
context name (debugging)
name
)

Constructor

Method Summary

Modifier and TypeMethod and Description
pack-priv static RendererContext

Returns:

new RendererContext instance
createContext
()

Create a new renderer context

pack-priv void
dispose()

Disposes this renderer context: clean up before reusing this context

pack-priv Path2D.Double
pack-priv ArrayCacheIntClean.Reference
newCleanIntArrayRef(final int initialSize)

pack-priv ArrayCacheByte.Reference
newDirtyByteArrayRef(final int initialSize)

pack-priv ArrayCacheDouble.Reference
newDirtyDoubleArrayRef(final int initialSize)

pack-priv ArrayCacheInt.Reference
newDirtyIntArrayRef(final int initialSize)

pack-priv OffHeapArray
newOffHeapArray(final long initialSize)

pack-priv RendererStats

Field Detail

cacheback to summary
pack-priv final MarlinCache cache
cleanerObjback to summary
private final Object cleanerObj
cleanIntCacheback to summary
private final ArrayCacheIntClean cleanIntCache
clipInvScaleback to summary
pack-priv double clipInvScale
clipRectback to summary
pack-priv final double[] clipRect
closedPathback to summary
pack-priv boolean closedPath
CTX_COUNTback to summary
private static final AtomicInteger CTX_COUNT
curveback to summary
pack-priv final Curve curve
curveClipSplitterback to summary
pack-priv final TransformingPathConsumer2D.CurveClipSplitter curveClipSplitter
dasherback to summary
pack-priv final Dasher dasher
dirtyback to summary
pack-priv boolean dirty
dirtyByteCacheback to summary
private final ArrayCacheByte dirtyByteCache
dirtyDoubleCacheback to summary
private final ArrayCacheDouble dirtyDoubleCache
dirtyIntCacheback to summary
private final ArrayCacheInt dirtyIntCache
doClipback to summary
pack-priv boolean doClip
doRenderback to summary
pack-priv boolean doRender
double6back to summary
pack-priv final double[] double6
firstFlagsback to summary
pack-priv int firstFlags
monotonizerback to summary
pack-priv final TransformingPathConsumer2D.CurveBasicMonotonizer monotonizer
nPCPathIteratorback to summary
pack-priv final DMarlinRenderingEngine.NormalizingPathIterator nPCPathIterator
nPQPathIteratorback to summary
pack-priv final DMarlinRenderingEngine.NormalizingPathIterator nPQPathIterator
p2dAdapterback to summary
pack-priv final RendererContext.PathConsumer2DAdapter p2dAdapter
pathSimplifierback to summary
pack-priv final PathSimplifier pathSimplifier
ptgback to summary
pack-priv final MarlinTileGenerator ptg
refPath2Dback to summary
private WeakReference<Path2D.Double> refPath2D
rendererback to summary
pack-priv final Renderer renderer
simplifierback to summary
pack-priv final CollinearSimplifier simplifier
sorterCtxback to summary
pack-priv final DPQSSorterContext sorterCtx
statsback to summary
pack-priv final RendererStats stats
strokerback to summary
pack-priv final Stroker stroker
strokingback to summary
pack-priv int stroking
transformerPC2Dback to summary
pack-priv final TransformingPathConsumer2D transformerPC2D

Constructor Detail

RendererContextback to summary
pack-priv RendererContext(final String name)

Constructor

Parameters
name:String

context name (debugging)

Method Detail

createContextback to summary
pack-priv static RendererContext createContext()

Create a new renderer context

Returns:RendererContext

new RendererContext instance

disposeback to summary
pack-priv void dispose()

Disposes this renderer context: clean up before reusing this context

getPath2Dback to summary
pack-priv Path2D.Double getPath2D()
newCleanIntArrayRefback to summary
pack-priv ArrayCacheIntClean.Reference newCleanIntArrayRef(final int initialSize)
newDirtyByteArrayRefback to summary
pack-priv ArrayCacheByte.Reference newDirtyByteArrayRef(final int initialSize)
newDirtyDoubleArrayRefback to summary
pack-priv ArrayCacheDouble.Reference newDirtyDoubleArrayRef(final int initialSize)
newDirtyIntArrayRefback to summary
pack-priv ArrayCacheInt.Reference newDirtyIntArrayRef(final int initialSize)
newOffHeapArrayback to summary
pack-priv OffHeapArray newOffHeapArray(final long initialSize)
statsback to summary
pack-priv RendererStats stats()
sun.java2d.marlin back to summary

pack-priv final Class RendererContext.PathConsumer2DAdapter

extends Object
implements DPathConsumer2D
Class Inheritance
All Implemented Interfaces
sun.java2d.marlin.DPathConsumer2D

Field Summary

Modifier and TypeField and Description
private PathConsumer2D

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public void
curveTo(double x1, double y1, double x2, double y2, double x3, double y3)

Implements sun.java2d.marlin.DPathConsumer2D.curveTo.

public long
getNativeConsumer()

Implements sun.java2d.marlin.DPathConsumer2D.getNativeConsumer.

If a given PathConsumer performs all or most of its work natively then it can return a (non-zero) pointer to a native function vector that defines C functions for all of the above methods.

pack-priv RendererContext.PathConsumer2DAdapter
public void
lineTo(double x1, double y1)

Implements sun.java2d.marlin.DPathConsumer2D.lineTo.

public void
moveTo(double x0, double y0)

Implements sun.java2d.marlin.DPathConsumer2D.moveTo.

public void
pathDone()

Implements sun.java2d.marlin.DPathConsumer2D.pathDone.

Called after the last segment of the last subpath when the iteration of the path segments is completely done.

public void
quadTo(double x1, double y1, double x2, double y2)

Implements sun.java2d.marlin.DPathConsumer2D.quadTo.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

outback to summary
private PathConsumer2D out

Constructor Detail

PathConsumer2DAdapterback to summary
pack-priv PathConsumer2DAdapter()

Method Detail

closePathback to summary
public void closePath()

Implements sun.java2d.marlin.DPathConsumer2D.closePath.

Annotations
@Override
curveToback to summary
public void curveTo(double x1, double y1, double x2, double y2, double x3, double y3)

Implements sun.java2d.marlin.DPathConsumer2D.curveTo.

Annotations
@Override
getNativeConsumerback to summary
public long getNativeConsumer()

Implements sun.java2d.marlin.DPathConsumer2D.getNativeConsumer.

Doc from sun.java2d.marlin.DPathConsumer2D.getNativeConsumer.

If a given PathConsumer performs all or most of its work natively then it can return a (non-zero) pointer to a native function vector that defines C functions for all of the above methods. The specific pointer it returns is a pointer to a PathConsumerVec structure as defined in the include file src/share/native/sun/java2d/pipe/PathConsumer2D.h

Annotations
@Override
initback to summary
pack-priv RendererContext.PathConsumer2DAdapter init(PathConsumer2D out)
lineToback to summary
public void lineTo(double x1, double y1)

Implements sun.java2d.marlin.DPathConsumer2D.lineTo.

Annotations
@Override
moveToback to summary
public void moveTo(double x0, double y0)

Implements sun.java2d.marlin.DPathConsumer2D.moveTo.

Annotations
@Override
pathDoneback to summary
public void pathDone()

Implements sun.java2d.marlin.DPathConsumer2D.pathDone.

Doc from sun.java2d.marlin.DPathConsumer2D.pathDone.

Called after the last segment of the last subpath when the iteration of the path segments is completely done. This method serves to trigger the end of path processing in the consumer that would normally be triggered when a PathIterator returns true from its done method.

Annotations
@Override
quadToback to summary
public void quadTo(double x1, double y1, double x2, double y2)

Implements sun.java2d.marlin.DPathConsumer2D.quadTo.

Annotations
@Override