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

public final Class AAShapePipe

extends Object
implements ShapeDrawPipe, ParallelogramPipe
Class Inheritance
All Implemented Interfaces
sun.java2d.pipe.ParallelogramPipe, sun.java2d.pipe.ShapeDrawPipe
Imports
java.awt.BasicStroke, .Rectangle, .Shape, java.awt.geom.Rectangle2D, sun.awt.SunHints, sun.java2d.ReentrantContext, .ReentrantContextProvider, .ReentrantContextProviderTL, .SunGraphics2D

This class is used to convert raw geometry into 8-bit alpha tiles using an AATileGenerator for application by the next stage of the pipeline. This class sets up the Generator and computes the alpha tiles and then passes them on to a CompositePipe object for painting.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static final boolean
pack-priv final CompositePipe
pack-priv static final RenderingEngine
private static final ReentrantContextProvider<AAShapePipe.TileState>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
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 void
public void
renderTiles(SunGraphics2D sg, Shape s, final AATileGenerator aatg, final int[] abox, final AAShapePipe.TileState ts)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DO_RENDERback to summary
private static final boolean DO_RENDER
outpipeback to summary
pack-priv final CompositePipe outpipe
RDR_ENGINEback to summary
pack-priv static final RenderingEngine RDR_ENGINE
TILE_STATE_PROVIDERback to summary
private static final ReentrantContextProvider<AAShapePipe.TileState> TILE_STATE_PROVIDER

Constructor Detail

AAShapePipeback to summary
public AAShapePipe(CompositePipe pipe)

Method Detail

drawback to summary
public void draw(SunGraphics2D sg, Shape s)

Implements sun.java2d.pipe.ShapeDrawPipe.draw.

Annotations
@Override
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.

Annotations
@Override
fillback to summary
public void fill(SunGraphics2D sg, Shape s)

Implements sun.java2d.pipe.ShapeDrawPipe.fill.

Annotations
@Override
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.

Annotations
@Override
renderPathback to summary
public void renderPath(SunGraphics2D sg, Shape s, BasicStroke bs)
renderTilesback to summary
public void renderTiles(SunGraphics2D sg, Shape s, final AATileGenerator aatg, final int[] abox, final AAShapePipe.TileState ts)
sun.java2d.pipe back to summary

pack-priv final Class AAShapePipe.TileState

extends ReentrantContext
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final int[]
private final Rectangle2D.Double
private final Rectangle
private byte[]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv Rectangle2D
computeBBox(double ux1, double uy1, double ux2, double uy2)

pack-priv Rectangle
computeDevBox(final int[] abox)

pack-priv byte[]
getAlphaTile(int len)

Field Detail

aboxback to summary
pack-priv final int[] abox
bbox2Dback to summary
private final Rectangle2D.Double bbox2D
devback to summary
private final Rectangle dev
theTileback to summary
private byte[] theTile

Constructor Detail

TileStateback to summary
pack-priv TileState()

Method Detail

computeBBoxback to summary
pack-priv Rectangle2D computeBBox(double ux1, double uy1, double ux2, double uy2)
computeDevBoxback to summary
pack-priv Rectangle computeDevBox(final int[] abox)
getAlphaTileback to summary
pack-priv byte[] getAlphaTile(int len)