Top Fields Constructors Methods
sun.java2d.marlin

pack-priv final Class PathSimplifier

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

Field Summary

Modifier and TypeField and Description
private double
private double
private DPathConsumer2D
private static final double
private boolean
private static final double
private double
private double

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
_lineTo(final double xe, final double ye)

public void
public void
curveTo(final double x1, final double y1, final double x2, final double y2, final double xe, final double ye)

Implements sun.java2d.marlin.DPathConsumer2D.curveTo.

private void
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 PathSimplifier
init(final DPathConsumer2D delegate)

public void
lineTo(final double xe, final double ye)

Implements sun.java2d.marlin.DPathConsumer2D.lineTo.

public void
moveTo(final double xe, final double ye)

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(final double x1, final double y1, final double xe, final double ye)

Implements sun.java2d.marlin.DPathConsumer2D.quadTo.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cxback to summary
private double cx
cyback to summary
private double cy
delegateback to summary
private DPathConsumer2D delegate
PIX_THRESHOLDback to summary
private static final double PIX_THRESHOLD
skippedback to summary
private boolean skipped
SQUARE_TOLERANCEback to summary
private static final double SQUARE_TOLERANCE
sxback to summary
private double sx
syback to summary
private double sy

Constructor Detail

PathSimplifierback to summary
pack-priv PathSimplifier()

Method Detail

_lineToback to summary
private void _lineTo(final double xe, final double ye)
closePathback to summary
public void closePath()

Implements sun.java2d.marlin.DPathConsumer2D.closePath.

Annotations
@Override
curveToback to summary
public void curveTo(final double x1, final double y1, final double x2, final double y2, final double xe, final double ye)

Implements sun.java2d.marlin.DPathConsumer2D.curveTo.

Annotations
@Override
finishPathback to summary
private void finishPath()
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

Returns:long

a native pointer to a PathConsumerVec structure.

Annotations
@Override
initback to summary
pack-priv PathSimplifier init(final DPathConsumer2D delegate)
lineToback to summary
public void lineTo(final double xe, final double ye)

Implements sun.java2d.marlin.DPathConsumer2D.lineTo.

Annotations
@Override
moveToback to summary
public void moveTo(final double xe, final double ye)

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(final double x1, final double y1, final double xe, final double ye)

Implements sun.java2d.marlin.DPathConsumer2D.quadTo.

Annotations
@Override