APIdia Launch Partner
Top Description Constructors Methods
sun.java2d.pipe

public Class AlphaColorPipe

extends Object
implements CompositePipe, ParallelogramPipe
Class Inheritance
All Implemented Interfaces
sun.java2d.pipe.ParallelogramPipe, sun.java2d.pipe.CompositePipe
Imports
java.awt.Rectangle, .Shape, sun.java2d.SunGraphics2D

This class implements a CompositePipe that renders path alpha tiles into a destination that supports direct alpha compositing of a solid color, according to one of the rules in the AlphaComposite class.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
drawParallelogram(SunGraphics2D sg, double ux1, double uy1, double ux2, double uy2, double x, double y, double dx1, double dy1, double dx2, double dy2, double lw1, double lw2)

Implements sun.java2d.pipe.ParallelogramPipe.drawParallelogram.

Draw a Parallelogram with the indicated line widths assuming a standard BasicStroke with MITER joins.

public void
public void
fillParallelogram(SunGraphics2D sg, double ux1, double uy1, double ux2, double uy2, double x, double y, double dx1, double dy1, double dx2, double dy2)

Implements sun.java2d.pipe.ParallelogramPipe.fillParallelogram.

public boolean
needTile(Object context, int x, int y, int w, int h)

Implements sun.java2d.pipe.CompositePipe.needTile.

public void
renderPathTile(Object context, byte[] atile, int offset, int tilesize, int x, int y, int w, int h)

Implements sun.java2d.pipe.CompositePipe.renderPathTile.

public void
skipTile(Object context, int x, int y)

Implements sun.java2d.pipe.CompositePipe.skipTile.

public Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AlphaColorPipeback to summary
public AlphaColorPipe()

Method Detail

drawParallelogramback to summary
public void drawParallelogram(SunGraphics2D sg, double ux1, double uy1, double ux2, double uy2, double x, double y, double dx1, double dy1, double dx2, double dy2, double lw1, double lw2)

Implements sun.java2d.pipe.ParallelogramPipe.drawParallelogram.

Doc from sun.java2d.pipe.ParallelogramPipe.drawParallelogram.

Draw a Parallelogram with the indicated line widths assuming a standard BasicStroke with MITER joins. lw1 specifies the width of the stroke along the dx1,dy1 vector and lw2 specifies the width of the stroke along the dx2,dy2 vector. This is equivalent to outsetting the indicated parallelogram by lw/2 pixels, then insetting the same parallelogram by lw/2 pixels and filling the difference between the outer and inner parallelograms.

endSequenceback to summary
public void endSequence(Object context)

Implements sun.java2d.pipe.CompositePipe.endSequence.

fillParallelogramback to summary
public void fillParallelogram(SunGraphics2D sg, double ux1, double uy1, double ux2, double uy2, double x, double y, double dx1, double dy1, double dx2, double dy2)

Implements sun.java2d.pipe.ParallelogramPipe.fillParallelogram.

needTileback to summary
public boolean needTile(Object context, int x, int y, int w, int h)

Implements sun.java2d.pipe.CompositePipe.needTile.

renderPathTileback to summary
public void renderPathTile(Object context, byte[] atile, int offset, int tilesize, int x, int y, int w, int h)

Implements sun.java2d.pipe.CompositePipe.renderPathTile.

skipTileback to summary
public void skipTile(Object context, int x, int y)

Implements sun.java2d.pipe.CompositePipe.skipTile.

startSequenceback to summary
public Object startSequence(SunGraphics2D sg, Shape s, Rectangle dev, int[] abox)

Implements sun.java2d.pipe.CompositePipe.startSequence.