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

pack-priv final Class Renderer

extends Object
implements DPathConsumer2D, MarlinConst
Class Inheritance
All Implemented Interfaces
sun.java2d.marlin.MarlinConst, sun.java2d.marlin.DPathConsumer2D
Static Imports
sun.java2d.marlin.OffHeapArray.SIZE_INT

Field Summary

Modifier and TypeField and Description
private int
private static final int
private int[]
private final ArrayCacheIntClean.Reference
private int[]
private final ArrayCacheInt.Reference
private int[]
private final ArrayCacheInt.Reference
private int
private int
private int
private int
private int[]
private final ArrayCacheIntClean.Reference
private int
private int
private int
private int
private int
private int
pack-priv final MarlinCache
private int[]
private final ArrayCacheInt.Reference
private static final int
private static final int
private static final int
public static final int
public static final double
private static final double
public static final double
private static final double
private static final double
private static final double
private static final double
private final Curve
pack-priv static final boolean
private int[]
private final ArrayCacheIntClean.Reference
private int[]
private final ArrayCacheIntClean.Reference
private int
private double
private int
private double
private int
private int[]
private final ArrayCacheInt.Reference
private final OffHeapArray
pack-priv static final boolean
pack-priv static final boolean
private boolean
private static final int
pack-priv static final int
pack-priv static final int
public static final long
public static final long
public static final long
public static final long
public static final long
public static final long
private static final double
private boolean
public static final double
private static final double
pack-priv static final double
pack-priv static final double
pack-priv final RendererContext
public static final double
public static final int
pack-priv static final int
pack-priv static final int
pack-priv static final double
pack-priv static final double
private static final int
private double
private double
private int
private double
private double

Constructor Summary

AccessConstructor and Description
pack-priv
Renderer(final RendererContext rdrCtx)

Method Summary

Modifier and TypeMethod and Description
private void
_endRendering(final int ymin, final int ymax)

private void
addLine(double x1, double y1, double x2, double y2)

public void
pack-priv void
copyAARow(final int[] alphaRow, final int pix_y, final int pix_from, final int pix_to, final boolean useBlockFlags)

private void
curveBreakIntoLinesAndAdd(double x0, double y0, final Curve c, final double x3, final double y3)

public void
curveTo(final double pix_x1, final double pix_y1, final double pix_x2, final double pix_y2, final double pix_x3, final double pix_y3)

Implements sun.java2d.marlin.DPathConsumer2D.curveTo.

pack-priv void
dispose()

Disposes this renderer and recycle it clean up before reusing this instance

pack-priv boolean
pack-priv void
endRendering(final int pminY)

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 Renderer
init(final int pix_boundsX, final int pix_boundsY, final int pix_boundsWidth, final int pix_boundsHeight, final int windingRule)

public void
lineTo(final double pix_x1, final double pix_y1)

Implements sun.java2d.marlin.DPathConsumer2D.lineTo.

public void
moveTo(final double pix_x0, final double pix_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.

private void
quadBreakIntoLinesAndAdd(double x0, double y0, final Curve c, final double x2, final double y2)

public void
quadTo(final double pix_x1, final double pix_y1, final double pix_x2, final double pix_y2)

Implements sun.java2d.marlin.DPathConsumer2D.quadTo.

private static double
tosubpixx(final double pix_x)

private static double
tosubpixy(final double pix_y)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

activeEdgeMaxUsedback to summary
private int activeEdgeMaxUsed
ALL_BUT_LSBback to summary
private static final int ALL_BUT_LSB
alphaLineback to summary
private int[] alphaLine
alphaLine_refback to summary
private final ArrayCacheIntClean.Reference alphaLine_ref
aux_crossingsback to summary
private int[] aux_crossings
aux_crossings_refback to summary
private final ArrayCacheInt.Reference aux_crossings_ref
aux_edgePtrsback to summary
private int[] aux_edgePtrs
aux_edgePtrs_refback to summary
private final ArrayCacheInt.Reference aux_edgePtrs_ref
bbox_spmaxXback to summary
private int bbox_spmaxX
bbox_spmaxYback to summary
private int bbox_spmaxY
bbox_spminXback to summary
private int bbox_spminX
bbox_spminYback to summary
private int bbox_spminY
blkFlagsback to summary
private int[] blkFlags
blkFlags_refback to summary
private final ArrayCacheIntClean.Reference blkFlags_ref
boundsMaxXback to summary
private int boundsMaxX
boundsMaxYback to summary
private int boundsMaxY
boundsMinXback to summary
private int boundsMinX
boundsMinYback to summary
private int boundsMinY
buckets_maxYback to summary
private int buckets_maxY
buckets_minYback to summary
private int buckets_minY
cacheback to summary
pack-priv final MarlinCache cache
crossingsback to summary
private int[] crossings
crossings_refback to summary
private final ArrayCacheInt.Reference crossings_ref
CUB_COUNTback to summary
private static final int CUB_COUNT
CUB_COUNT_2back to summary
private static final int CUB_COUNT_2
CUB_COUNT_3back to summary
private static final int CUB_COUNT_3
CUB_COUNT_LGback to summary
public static final int CUB_COUNT_LG
CUB_DEC_BNDback to summary
public static final double CUB_DEC_BND
CUB_DEC_ERR_SUBPIXback to summary
private static final double CUB_DEC_ERR_SUBPIX
CUB_INC_BNDback to summary
public static final double CUB_INC_BND
CUB_INC_ERR_SUBPIXback to summary
private static final double CUB_INC_ERR_SUBPIX
CUB_INV_COUNTback to summary
private static final double CUB_INV_COUNT
CUB_INV_COUNT_2back to summary
private static final double CUB_INV_COUNT_2
CUB_INV_COUNT_3back to summary
private static final double CUB_INV_COUNT_3
curveback to summary
private final Curve curve
DISABLE_RENDERback to summary
pack-priv static final boolean DISABLE_RENDER
edgeBucketCountsback to summary
private int[] edgeBucketCounts
edgeBucketCounts_refback to summary
private final ArrayCacheIntClean.Reference edgeBucketCounts_ref
edgeBucketsback to summary
private int[] edgeBuckets
edgeBuckets_refback to summary
private final ArrayCacheIntClean.Reference edgeBuckets_ref
edgeCountback to summary
private int edgeCount
edgeMaxXback to summary
private double edgeMaxX
edgeMaxYback to summary
private int edgeMaxY
edgeMinXback to summary
private double edgeMinX
edgeMinYback to summary
private int edgeMinY
edgePtrsback to summary
private int[] edgePtrs
edgePtrs_refback to summary
private final ArrayCacheInt.Reference edgePtrs_ref
edgesback to summary
private final OffHeapArray edges
ENABLE_BLOCK_FLAGSback to summary
pack-priv static final boolean ENABLE_BLOCK_FLAGS
ENABLE_BLOCK_FLAGS_HEURISTICSback to summary
pack-priv static final boolean ENABLE_BLOCK_FLAGS_HEURISTICS
enableBlkFlagsback to summary
private boolean enableBlkFlags
ERR_STEP_MAXback to summary
private static final int ERR_STEP_MAX
INITIAL_BUCKET_ARRAYback to summary
pack-priv static final int INITIAL_BUCKET_ARRAY
INITIAL_CROSSING_COUNTback to summary
pack-priv static final int INITIAL_CROSSING_COUNT
OFF_BUMP_ERRback to summary
public static final long OFF_BUMP_ERR
OFF_BUMP_Xback to summary
public static final long OFF_BUMP_X
OFF_CURX_ORback to summary
public static final long OFF_CURX_OR
OFF_ERRORback to summary
public static final long OFF_ERROR
OFF_NEXTback to summary
public static final long OFF_NEXT
OFF_YMAXback to summary
public static final long OFF_YMAX
POWER_2_TO_32back to summary
private static final double POWER_2_TO_32
prevUseBlkFlagsback to summary
private boolean prevUseBlkFlags
QUAD_DEC_BNDback to summary
public static final double QUAD_DEC_BND
QUAD_DEC_ERR_SUBPIXback to summary
private static final double QUAD_DEC_ERR_SUBPIX
RDR_OFFSET_Xback to summary
pack-priv static final double RDR_OFFSET_X
RDR_OFFSET_Yback to summary
pack-priv static final double RDR_OFFSET_Y
rdrCtxback to summary
pack-priv final RendererContext rdrCtx
SCALE_DYback to summary
public static final double SCALE_DY
SIZEOF_EDGE_BYTESback to summary
public static final int SIZEOF_EDGE_BYTES
SUBPIXEL_MASK_Xback to summary
pack-priv static final int SUBPIXEL_MASK_X
SUBPIXEL_MASK_Yback to summary
pack-priv static final int SUBPIXEL_MASK_Y
SUBPIXEL_SCALE_Xback to summary
pack-priv static final double SUBPIXEL_SCALE_X
SUBPIXEL_SCALE_Yback to summary
pack-priv static final double SUBPIXEL_SCALE_Y
SUBPIXEL_TILEback to summary
private static final int SUBPIXEL_TILE
sx0back to summary
private double sx0
sy0back to summary
private double sy0
windingRuleback to summary
private int windingRule
x0back to summary
private double x0
y0back to summary
private double y0

Constructor Detail

Rendererback to summary
pack-priv Renderer(final RendererContext rdrCtx)

Method Detail

_endRenderingback to summary
private void _endRendering(final int ymin, final int ymax)
addLineback to summary
private void addLine(double x1, double y1, double x2, double y2)
closePathback to summary
public void closePath()

Implements sun.java2d.marlin.DPathConsumer2D.closePath.

Annotations
@Override
copyAARowback to summary
pack-priv void copyAARow(final int[] alphaRow, final int pix_y, final int pix_from, final int pix_to, final boolean useBlockFlags)
curveBreakIntoLinesAndAddback to summary
private void curveBreakIntoLinesAndAdd(double x0, double y0, final Curve c, final double x3, final double y3)
curveToback to summary
public void curveTo(final double pix_x1, final double pix_y1, final double pix_x2, final double pix_y2, final double pix_x3, final double pix_y3)

Implements sun.java2d.marlin.DPathConsumer2D.curveTo.

Annotations
@Override
disposeback to summary
pack-priv void dispose()

Disposes this renderer and recycle it clean up before reusing this instance

endRenderingback to summary
pack-priv boolean endRendering()
endRenderingback to summary
pack-priv void endRendering(final int pminY)
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 Renderer init(final int pix_boundsX, final int pix_boundsY, final int pix_boundsWidth, final int pix_boundsHeight, final int windingRule)
lineToback to summary
public void lineTo(final double pix_x1, final double pix_y1)

Implements sun.java2d.marlin.DPathConsumer2D.lineTo.

Annotations
@Override
moveToback to summary
public void moveTo(final double pix_x0, final double pix_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
quadBreakIntoLinesAndAddback to summary
private void quadBreakIntoLinesAndAdd(double x0, double y0, final Curve c, final double x2, final double y2)
quadToback to summary
public void quadTo(final double pix_x1, final double pix_y1, final double pix_x2, final double pix_y2)

Implements sun.java2d.marlin.DPathConsumer2D.quadTo.

Annotations
@Override
tosubpixxback to summary
private static double tosubpixx(final double pix_x)
tosubpixyback to summary
private static double tosubpixy(final double pix_y)