| Modifier and Type | Field and Description |
|---|---|
| pack-priv static int | |
| public final int | |
| public final int | |
| public final int | |
| public final int | |
| private static final boolean | |
| public boolean | flipVertical
Default for OpenGL: True |
| private Graphics2D | |
| public boolean | originBottomLeft
Default for OpenGL: True |
| pack-priv final GLEventListener | |
| pack-priv final GLEventListener | |
| public final TileRenderer | |
| private AffineTransform | |
| private int | |
| public final double | |
| public final double | |
| private AWTGLPixelBuffer | |
| public final boolean | |
| private BufferedImage |
| Access | Constructor and Description |
|---|---|
| public | AWTTilePainter(final TileRenderer renderer, final int componentCount, final double
Graphics2D scaling factor, i.e. rendering 1/scaleMatX * width pixelsGraphics2D scaling factor, i.e. rendering 1/scaleMatY * height pixelscustom multisampling value: < 0 turns off, == 0 leaves as-is, > 0 enables using given num samples numSamples, final int custom tile width for tileWidth, final int tile renderer, pass -1 for default.custom tile height for tileHeight, final boolean verbose)tile renderer, pass -1 for default.Assumes a configured |
| Modifier and Type | Method and Description |
|---|---|
| private static Rectangle2D | |
| public void | |
| public static void | |
| private static Rectangle2D | |
| public int | Returns: resulting number of samples by comparing w/customNumSamples and the caps-config, 0 if disabled
|
| public void | |
| public void | setGLOrientation(final boolean
if flipVertical, final boolean true, the image will be flipped vertically (Default for OpenGL).if originBottomLeft)true, the image's origin is on the bottom left (Default for OpenGL).
|
| public void | setupGraphics2DAndClipBounds(final Graphics2D
Graphics2D instance used for transform and clipping g2d, final int width of the AWT component in case clipping is null width, final int height of the AWT component in case clipping is null height)Caches the |
| public String |
| _counter | back to summary |
|---|---|
| pack-priv static int _counter | |
| componentCount | back to summary |
|---|---|
| public final int componentCount | |
| customNumSamples | back to summary |
|---|---|
| public final int customNumSamples | |
| customTileHeight | back to summary |
|---|---|
| public final int customTileHeight | |
| customTileWidth | back to summary |
|---|---|
| public final int customTileWidth | |
| DEBUG_TILES | back to summary |
|---|---|
| private static final boolean DEBUG_TILES | |
| flipVertical | back to summary |
|---|---|
| public boolean flipVertical Default for OpenGL: True | |
| g2d | back to summary |
|---|---|
| private Graphics2D g2d | |
| originBottomLeft | back to summary |
|---|---|
| public boolean originBottomLeft Default for OpenGL: True | |
| postTileGLEL | back to summary |
|---|---|
| pack-priv final GLEventListener postTileGLEL | |
| preTileGLEL | back to summary |
|---|---|
| pack-priv final GLEventListener preTileGLEL | |
| renderer | back to summary |
|---|---|
| public final TileRenderer renderer | |
| saveAT | back to summary |
|---|---|
| private AffineTransform saveAT | |
| scaledYOffset | back to summary |
|---|---|
| private int scaledYOffset | |
| scaleMatX | back to summary |
|---|---|
| public final double scaleMatX | |
| scaleMatY | back to summary |
|---|---|
| public final double scaleMatY | |
| tBuffer | back to summary |
|---|---|
| private AWTGLPixelBuffer tBuffer | |
| verbose | back to summary |
|---|---|
| public final boolean verbose | |
| vFlipImage | back to summary |
|---|---|
| private BufferedImage vFlipImage | |
| AWTTilePainter | back to summary |
|---|---|
| public AWTTilePainter(final TileRenderer renderer, final int componentCount, final double scaleMatX, final double scaleMatY, final int numSamples, final int tileWidth, final int tileHeight, final boolean verbose) Assumes a configured
Sets the renderer to
| |
| clipNegative | back to summary |
|---|---|
| private static Rectangle2D clipNegative(final Rectangle2D in) | |
| dispose | back to summary |
|---|---|
| public void dispose() Disposes resources and | |
| dumpHintsAndScale | back to summary |
|---|---|
| public static void dumpHintsAndScale(final Graphics2D g2d) | |
| getClipBounds2D | back to summary |
|---|---|
| private static Rectangle2D getClipBounds2D(final Graphics2D g) | |
| getNumSamples | back to summary |
|---|---|
public int getNumSamples(final GLCapabilitiesImmutable caps)
| |
| resetGraphics2D | back to summary |
|---|---|
| public void resetGraphics2D() See {@ #setupGraphics2DAndClipBounds(Graphics2D)}. | |
| setGLOrientation | back to summary |
|---|---|
public void setGLOrientation(final boolean flipVertical, final boolean originBottomLeft)
| |
| setupGraphics2DAndClipBounds | back to summary |
|---|---|
| public void setupGraphics2DAndClipBounds(final Graphics2D g2d, final int width, final int height) throws NoninvertibleTransformException Caches the
Copies the current
Sets the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |