public class

PiscesTileGenerator

extends Object
implements AATileGenerator
java.lang.Object
   ↳ sun.java2d.pisces.PiscesTileGenerator

Summary

Constants
int TILE_SIZE
Public Constructors
PiscesTileGenerator(PiscesCache cache, int maxalpha)
Public Methods
void dispose()
Disposes this tile generator.
void getAlpha(byte[] tile, int offset, int rowstride)
Gets the alpha coverage values for the current tile.
synchronized static byte[] getAlphaMap(int maxalpha)
void getBbox(int[] bbox)
int getTileHeight()
Gets the height of the tiles that the generator batches output into.
int getTileWidth()
Gets the width of the tiles that the generator batches output into.
int getTypicalAlpha()
Gets the typical alpha value that will characterize the current tile.
void nextTile()
Skips the current tile and moves on to the next tile.
[Expand]
Inherited Methods
From class java.lang.Object
From interface sun.java2d.pipe.AATileGenerator

Constants

public static final int TILE_SIZE

Constant Value: 32 (0x00000020)

Public Constructors

public PiscesTileGenerator (PiscesCache cache, int maxalpha)

Public Methods

public void dispose ()

Disposes this tile generator. No further calls will be made on this instance.

public void getAlpha (byte[] tile, int offset, int rowstride)

Gets the alpha coverage values for the current tile. Either this method, or the nextTile() method should be called once per tile, but not both.

public static synchronized byte[] getAlphaMap (int maxalpha)

public void getBbox (int[] bbox)

public int getTileHeight ()

Gets the height of the tiles that the generator batches output into.

Returns
  • the height of the standard alpha tile

public int getTileWidth ()

Gets the width of the tiles that the generator batches output into.

Returns
  • the width of the standard alpha tile

public int getTypicalAlpha ()

Gets the typical alpha value that will characterize the current tile. The answer may be 0x00 to indicate that the current tile has no coverage in any of its pixels, or it may be 0xff to indicate that the current tile is completely covered by the path, or any other value to indicate non-trivial coverage cases.

Returns
  • 0x00 for no coverage, 0xff for total coverage, or any other value for partial coverage of the tile

public void nextTile ()

Skips the current tile and moves on to the next tile. Either this method, or the getAlpha() method should be called once per tile, but not both.