fwpUtil
Class GetHints

public final class GetHints
Title: Get rendering hints for maximum quality or maximum speed.

Description: GetHints packages all of the maximum quality and maximum speed rendering hints into to methods. methods.

Copyright: Copyright (c) 2011

Version:
1.0
Author:
Fred Pospeschil - This file is placed in the public domain and can be used and adapted without restrictions. The user of the code is totally responsible for insuring its suitability in the intended application.
 

NOTE: This JavaDoc file was post processed with Microsoft FrontPage and regenerating the file will cause the graphics and format changes to be lost.

Method Detail

getSpeedRenderingHints

public static java.awt.RenderingHints getSpeedRenderingHints()
Creates a rendering "hints" which has all hint values set for maximum speed.
Returns:
A rendering hint which has all of the hint values set for maximum speed.

To use:
RenderingHints hints = GetHints.getSpeedRenderingHints();

Then load the hints with:
g2D.setRenderingHints(hints); System.out.println("QualityHints="+qualityHints.toString());

Where g2D is a Graphics2D object.


getQualityRenderingHints

public static java.awt.RenderingHints getQualityRenderingHints()
Creates a rendering "hints" which has all hint values set for maximum quality.
Returns:
A rendering hint which has all of the hint values set for maximum quality.

To use:
RenderingHints hints = GetHints.getQualityRenderingHints();

Then load the hints with:
g2D.setRenderingHints(hints); System.out.println("SpeedHints="+speedHints.toString());

Where g2D is a Graphics2D object.


toString

public java.lang.String toString()
Returns the name of the class.
Returns:
The name of the class - GetHints and rendering hints.

For example:

Hints={Alpha blending interpolation method key=Highest quality alpha blending methods, Image interpolation method key=Bicubic image interpolation mode, Global antialiasing enable key=Antialiased rendering mode, Fractional metrics enable key=Fractional text metrics mode, Dithering quality key=Dithered rendering mode, Color rendering quality key=Highest quality rendering methods, Global rendering quality key=Highest quality rendering methods Text-specific antialiasing enable key=Antialiased text mode}