APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.awt

public Class SunHints

extends Object
Class Inheritance
Imports
java.awt.RenderingHints, java.lang.annotation.Native

This class contains rendering hints that can be used by the java.awt.Graphics2D class, and classes that implement java.awt.image.BufferedImageOp and java.awt.image.Raster.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
SunHints.Key

Defines the type of all keys used to control various aspects of the rendering and imaging pipelines.

public static class
public static class
SunHints.Value

Defines the type of all "enumerative" values used to control various aspects of the rendering and imaging pipelines.

Field Summary

Modifier and TypeField and Description
public static final int
INTKEY_AATEXT_LCD_CONTRAST

LCD text contrast control hint key.

public static final int
INTKEY_ALPHA_INTERPOLATION

Alpha interpolation hint key and values

public static final int
INTKEY_ANTIALIASING

Antialiasing hint key and values

public static final int
INTKEY_COLOR_RENDERING

Color rendering hint key and values

public static final int
INTKEY_DITHERING

Dithering hint key and values

public static final int
INTKEY_FRACTIONALMETRICS

Font fractional metrics hint key and values

public static final int
INTKEY_INTERPOLATION

Interpolation hint key and values

public static final int
INTKEY_RENDERING

Rendering hint key and values

public static final int
INTKEY_RESOLUTION_VARIANT

Image scaling hint key and values

public static final int
INTKEY_STROKE_CONTROL

Stroke normalization control hint key and values

public static final int
INTKEY_TEXT_ANTIALIASING

Text antialiasing hint key and values

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final SunHints.Key
KEY_ALPHA_INTERPOLATION

Alpha interpolation hint key and value objects

public static final SunHints.Key
KEY_ANTIALIASING

Antialiasing hint key and value objects

public static final SunHints.Key
KEY_COLOR_RENDERING

Color rendering hint key and value objects

public static final SunHints.Key
KEY_DITHERING

Dithering hint key and value objects

public static final SunHints.Key
KEY_FRACTIONALMETRICS

Font fractional metrics hint key and value objects

public static final SunHints.Key
KEY_INTERPOLATION

Interpolation hint key and value objects

public static final SunHints.Key
KEY_RENDERING

Rendering hint key and value objects

public static final SunHints.Key
KEY_RESOLUTION_VARIANT

Image resolution variant hint key and value objects

public static final SunHints.Key
KEY_STROKE_CONTROL

Stroke normalization control hint key and value objects

public static final RenderingHints.Key
KEY_TEXT_ANTIALIAS_LCD_CONTRAST

LCD text contrast hint key

public static final SunHints.Key
KEY_TEXT_ANTIALIASING

Text antialiasing hint key and value objects

private static final int
private static final int
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object
public static final Object

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INTKEY_AATEXT_LCD_CONTRASTback to summary
public static final int INTKEY_AATEXT_LCD_CONTRAST

LCD text contrast control hint key. Value is "100" to make discontiguous with the others which are all enumerative and are of a different class.

Annotations
@Native
INTKEY_ALPHA_INTERPOLATIONback to summary
public static final int INTKEY_ALPHA_INTERPOLATION

Alpha interpolation hint key and values

Annotations
@Native
INTKEY_ANTIALIASINGback to summary
public static final int INTKEY_ANTIALIASING

Antialiasing hint key and values

Annotations
@Native
INTKEY_COLOR_RENDERINGback to summary
public static final int INTKEY_COLOR_RENDERING

Color rendering hint key and values

Annotations
@Native
INTKEY_DITHERINGback to summary
public static final int INTKEY_DITHERING

Dithering hint key and values

Annotations
@Native
INTKEY_FRACTIONALMETRICSback to summary
public static final int INTKEY_FRACTIONALMETRICS

Font fractional metrics hint key and values

Annotations
@Native
INTKEY_INTERPOLATIONback to summary
public static final int INTKEY_INTERPOLATION

Interpolation hint key and values

Annotations
@Native
INTKEY_RENDERINGback to summary
public static final int INTKEY_RENDERING

Rendering hint key and values

Annotations
@Native
INTKEY_RESOLUTION_VARIANTback to summary
public static final int INTKEY_RESOLUTION_VARIANT

Image scaling hint key and values

Annotations
@Native
INTKEY_STROKE_CONTROLback to summary
public static final int INTKEY_STROKE_CONTROL

Stroke normalization control hint key and values

Annotations
@Native
INTKEY_TEXT_ANTIALIASINGback to summary
public static final int INTKEY_TEXT_ANTIALIASING

Text antialiasing hint key and values

Annotations
@Native
INTVAL_ALPHA_INTERPOLATION_DEFAULTback to summary
public static final int INTVAL_ALPHA_INTERPOLATION_DEFAULT
Annotations
@Native
INTVAL_ALPHA_INTERPOLATION_QUALITYback to summary
public static final int INTVAL_ALPHA_INTERPOLATION_QUALITY
Annotations
@Native
INTVAL_ALPHA_INTERPOLATION_SPEEDback to summary
public static final int INTVAL_ALPHA_INTERPOLATION_SPEED
Annotations
@Native
INTVAL_ANTIALIAS_DEFAULTback to summary
public static final int INTVAL_ANTIALIAS_DEFAULT
Annotations
@Native
INTVAL_ANTIALIAS_OFFback to summary
public static final int INTVAL_ANTIALIAS_OFF
Annotations
@Native
INTVAL_ANTIALIAS_ONback to summary
public static final int INTVAL_ANTIALIAS_ON
Annotations
@Native
INTVAL_COLOR_RENDER_DEFAULTback to summary
public static final int INTVAL_COLOR_RENDER_DEFAULT
Annotations
@Native
INTVAL_COLOR_RENDER_QUALITYback to summary
public static final int INTVAL_COLOR_RENDER_QUALITY
Annotations
@Native
INTVAL_COLOR_RENDER_SPEEDback to summary
public static final int INTVAL_COLOR_RENDER_SPEED
Annotations
@Native
INTVAL_DITHER_DEFAULTback to summary
public static final int INTVAL_DITHER_DEFAULT
Annotations
@Native
INTVAL_DITHER_DISABLEback to summary
public static final int INTVAL_DITHER_DISABLE
Annotations
@Native
INTVAL_DITHER_ENABLEback to summary
public static final int INTVAL_DITHER_ENABLE
Annotations
@Native
INTVAL_FRACTIONALMETRICS_DEFAULTback to summary
public static final int INTVAL_FRACTIONALMETRICS_DEFAULT
Annotations
@Native
INTVAL_FRACTIONALMETRICS_OFFback to summary
public static final int INTVAL_FRACTIONALMETRICS_OFF
Annotations
@Native
INTVAL_FRACTIONALMETRICS_ONback to summary
public static final int INTVAL_FRACTIONALMETRICS_ON
Annotations
@Native
INTVAL_INTERPOLATION_BICUBICback to summary
public static final int INTVAL_INTERPOLATION_BICUBIC
Annotations
@Native
INTVAL_INTERPOLATION_BILINEARback to summary
public static final int INTVAL_INTERPOLATION_BILINEAR
Annotations
@Native
INTVAL_INTERPOLATION_NEAREST_NEIGHBORback to summary
public static final int INTVAL_INTERPOLATION_NEAREST_NEIGHBOR
Annotations
@Native
INTVAL_RENDER_DEFAULTback to summary
public static final int INTVAL_RENDER_DEFAULT
Annotations
@Native
INTVAL_RENDER_QUALITYback to summary
public static final int INTVAL_RENDER_QUALITY
Annotations
@Native
INTVAL_RENDER_SPEEDback to summary
public static final int INTVAL_RENDER_SPEED
Annotations
@Native
INTVAL_RESOLUTION_VARIANT_BASEback to summary
public static final int INTVAL_RESOLUTION_VARIANT_BASE
Annotations
@Native
INTVAL_RESOLUTION_VARIANT_DEFAULTback to summary
public static final int INTVAL_RESOLUTION_VARIANT_DEFAULT
Annotations
@Native
INTVAL_RESOLUTION_VARIANT_DPI_FITback to summary
public static final int INTVAL_RESOLUTION_VARIANT_DPI_FIT
Annotations
@Native
INTVAL_RESOLUTION_VARIANT_SIZE_FITback to summary
public static final int INTVAL_RESOLUTION_VARIANT_SIZE_FIT
Annotations
@Native
INTVAL_STROKE_DEFAULTback to summary
public static final int INTVAL_STROKE_DEFAULT
Annotations
@Native
INTVAL_STROKE_NORMALIZEback to summary
public static final int INTVAL_STROKE_NORMALIZE
Annotations
@Native
INTVAL_STROKE_PUREback to summary
public static final int INTVAL_STROKE_PURE
Annotations
@Native
INTVAL_TEXT_ANTIALIAS_DEFAULTback to summary
public static final int INTVAL_TEXT_ANTIALIAS_DEFAULT
Annotations
@Native
INTVAL_TEXT_ANTIALIAS_GASPback to summary
public static final int INTVAL_TEXT_ANTIALIAS_GASP
Annotations
@Native
INTVAL_TEXT_ANTIALIAS_LCD_HBGRback to summary
public static final int INTVAL_TEXT_ANTIALIAS_LCD_HBGR
Annotations
@Native
INTVAL_TEXT_ANTIALIAS_LCD_HRGBback to summary
public static final int INTVAL_TEXT_ANTIALIAS_LCD_HRGB
Annotations
@Native
INTVAL_TEXT_ANTIALIAS_LCD_VBGRback to summary
public static final int INTVAL_TEXT_ANTIALIAS_LCD_VBGR
Annotations
@Native
INTVAL_TEXT_ANTIALIAS_LCD_VRGBback to summary
public static final int INTVAL_TEXT_ANTIALIAS_LCD_VRGB
Annotations
@Native
INTVAL_TEXT_ANTIALIAS_OFFback to summary
public static final int INTVAL_TEXT_ANTIALIAS_OFF
Annotations
@Native
INTVAL_TEXT_ANTIALIAS_ONback to summary
public static final int INTVAL_TEXT_ANTIALIAS_ON
Annotations
@Native
KEY_ALPHA_INTERPOLATIONback to summary
public static final SunHints.Key KEY_ALPHA_INTERPOLATION

Alpha interpolation hint key and value objects

KEY_ANTIALIASINGback to summary
public static final SunHints.Key KEY_ANTIALIASING

Antialiasing hint key and value objects

KEY_COLOR_RENDERINGback to summary
public static final SunHints.Key KEY_COLOR_RENDERING

Color rendering hint key and value objects

KEY_DITHERINGback to summary
public static final SunHints.Key KEY_DITHERING

Dithering hint key and value objects

KEY_FRACTIONALMETRICSback to summary
public static final SunHints.Key KEY_FRACTIONALMETRICS

Font fractional metrics hint key and value objects

KEY_INTERPOLATIONback to summary
public static final SunHints.Key KEY_INTERPOLATION

Interpolation hint key and value objects

KEY_RENDERINGback to summary
public static final SunHints.Key KEY_RENDERING

Rendering hint key and value objects

KEY_RESOLUTION_VARIANTback to summary
public static final SunHints.Key KEY_RESOLUTION_VARIANT

Image resolution variant hint key and value objects

KEY_STROKE_CONTROLback to summary
public static final SunHints.Key KEY_STROKE_CONTROL

Stroke normalization control hint key and value objects

KEY_TEXT_ANTIALIAS_LCD_CONTRASTback to summary
public static final RenderingHints.Key KEY_TEXT_ANTIALIAS_LCD_CONTRAST

LCD text contrast hint key

KEY_TEXT_ANTIALIASINGback to summary
public static final SunHints.Key KEY_TEXT_ANTIALIASING

Text antialiasing hint key and value objects

NUM_KEYSback to summary
private static final int NUM_KEYS
VALS_PER_KEYback to summary
private static final int VALS_PER_KEY
VALUE_ALPHA_INTERPOLATION_DEFAULTback to summary
public static final Object VALUE_ALPHA_INTERPOLATION_DEFAULT
VALUE_ALPHA_INTERPOLATION_QUALITYback to summary
public static final Object VALUE_ALPHA_INTERPOLATION_QUALITY
VALUE_ALPHA_INTERPOLATION_SPEEDback to summary
public static final Object VALUE_ALPHA_INTERPOLATION_SPEED
VALUE_ANTIALIAS_DEFAULTback to summary
public static final Object VALUE_ANTIALIAS_DEFAULT
VALUE_ANTIALIAS_OFFback to summary
public static final Object VALUE_ANTIALIAS_OFF
VALUE_ANTIALIAS_ONback to summary
public static final Object VALUE_ANTIALIAS_ON
VALUE_COLOR_RENDER_DEFAULTback to summary
public static final Object VALUE_COLOR_RENDER_DEFAULT
VALUE_COLOR_RENDER_QUALITYback to summary
public static final Object VALUE_COLOR_RENDER_QUALITY
VALUE_COLOR_RENDER_SPEEDback to summary
public static final Object VALUE_COLOR_RENDER_SPEED
VALUE_DITHER_DEFAULTback to summary
public static final Object VALUE_DITHER_DEFAULT
VALUE_DITHER_DISABLEback to summary
public static final Object VALUE_DITHER_DISABLE
VALUE_DITHER_ENABLEback to summary
public static final Object VALUE_DITHER_ENABLE
VALUE_FRACTIONALMETRICS_DEFAULTback to summary
public static final Object VALUE_FRACTIONALMETRICS_DEFAULT
VALUE_FRACTIONALMETRICS_OFFback to summary
public static final Object VALUE_FRACTIONALMETRICS_OFF
VALUE_FRACTIONALMETRICS_ONback to summary
public static final Object VALUE_FRACTIONALMETRICS_ON
VALUE_INTERPOLATION_BICUBICback to summary
public static final Object VALUE_INTERPOLATION_BICUBIC
VALUE_INTERPOLATION_BILINEARback to summary
public static final Object VALUE_INTERPOLATION_BILINEAR
VALUE_INTERPOLATION_NEAREST_NEIGHBORback to summary
public static final Object VALUE_INTERPOLATION_NEAREST_NEIGHBOR
VALUE_RENDER_DEFAULTback to summary
public static final Object VALUE_RENDER_DEFAULT
VALUE_RENDER_QUALITYback to summary
public static final Object VALUE_RENDER_QUALITY
VALUE_RENDER_SPEEDback to summary
public static final Object VALUE_RENDER_SPEED
VALUE_RESOLUTION_VARIANT_BASEback to summary
public static final Object VALUE_RESOLUTION_VARIANT_BASE
VALUE_RESOLUTION_VARIANT_DEFAULTback to summary
public static final Object VALUE_RESOLUTION_VARIANT_DEFAULT
VALUE_RESOLUTION_VARIANT_DPI_FITback to summary
public static final Object VALUE_RESOLUTION_VARIANT_DPI_FIT
VALUE_RESOLUTION_VARIANT_SIZE_FITback to summary
public static final Object VALUE_RESOLUTION_VARIANT_SIZE_FIT
VALUE_STROKE_DEFAULTback to summary
public static final Object VALUE_STROKE_DEFAULT
VALUE_STROKE_NORMALIZEback to summary
public static final Object VALUE_STROKE_NORMALIZE
VALUE_STROKE_PUREback to summary
public static final Object VALUE_STROKE_PURE
VALUE_TEXT_ANTIALIAS_DEFAULTback to summary
public static final Object VALUE_TEXT_ANTIALIAS_DEFAULT
VALUE_TEXT_ANTIALIAS_GASPback to summary
public static final Object VALUE_TEXT_ANTIALIAS_GASP
VALUE_TEXT_ANTIALIAS_LCD_HBGRback to summary
public static final Object VALUE_TEXT_ANTIALIAS_LCD_HBGR
VALUE_TEXT_ANTIALIAS_LCD_HRGBback to summary
public static final Object VALUE_TEXT_ANTIALIAS_LCD_HRGB
VALUE_TEXT_ANTIALIAS_LCD_VBGRback to summary
public static final Object VALUE_TEXT_ANTIALIAS_LCD_VBGR
VALUE_TEXT_ANTIALIAS_LCD_VRGBback to summary
public static final Object VALUE_TEXT_ANTIALIAS_LCD_VRGB
VALUE_TEXT_ANTIALIAS_OFFback to summary
public static final Object VALUE_TEXT_ANTIALIAS_OFF
VALUE_TEXT_ANTIALIAS_ONback to summary
public static final Object VALUE_TEXT_ANTIALIAS_ON

Constructor Detail

SunHintsback to summary
public SunHints()
sun.awt back to summary

public Class SunHints.Key

extends Key
Class Inheritance
Known Direct Subclasses
sun.awt.SunHints.LCDContrastKey

Defines the type of all keys used to control various aspects of the rendering and imaging pipelines. Instances of this class are immutable and unique which means that tests for matches can be made using the == operator instead of the more expensive equals() method.

Field Summary

Modifier and TypeField and Description
pack-priv String

Constructor Summary

AccessConstructor and Description
public
Key(int privatekey, String description)

Construct a key using the indicated private key.

Method Summary

Modifier and TypeMethod and Description
public final int
getIndex()

Returns the numeric index associated with this Key.

public boolean
isCompatibleValue(Object val)

Implements abstract java.awt.RenderingHints.Key.isCompatibleValue.

Returns true if the specified object is a valid value for this Key.

public final String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the Key.

Inherited from java.awt.RenderingHints.Key:
equalshashCodeintKey

Field Detail

descriptionback to summary
pack-priv String description

Constructor Detail

Keyback to summary
public Key(int privatekey, String description)

Construct a key using the indicated private key. Each subclass of Key maintains its own unique domain of integer keys. No two objects with the same integer key and of the same specific subclass can be constructed. An exception will be thrown if an attempt is made to construct another object of a given class with the same integer key as a pre-existing instance of that subclass of Key.

Method Detail

getIndexback to summary
public final int getIndex()

Returns the numeric index associated with this Key. This is useful for use in switch statements and quick lookups of the setting of a particular key.

isCompatibleValueback to summary
public boolean isCompatibleValue(Object val)

Implements abstract java.awt.RenderingHints.Key.isCompatibleValue.

Returns true if the specified object is a valid value for this Key.

toStringback to summary
public final String toString()

Overrides java.lang.Object.toString.

Returns a string representation of the Key.

sun.awt back to summary

public Class SunHints.LCDContrastKey

extends Key
Class Inheritance

Field Summary

Inherited from sun.awt.SunHints.Key:
description

Constructor Summary

AccessConstructor and Description
public
LCDContrastKey(int privatekey, String description)

Method Summary

Modifier and TypeMethod and Description
public final boolean
isCompatibleValue(Object val)

Overrides sun.awt.SunHints.Key.isCompatibleValue.

Returns true if the specified object is a valid value for this Key.

Inherited from sun.awt.SunHints.Key:
getIndextoString

Constructor Detail

LCDContrastKeyback to summary
public LCDContrastKey(int privatekey, String description)

Method Detail

isCompatibleValueback to summary
public final boolean isCompatibleValue(Object val)

Overrides sun.awt.SunHints.Key.isCompatibleValue.

Returns true if the specified object is a valid value for this Key. The allowable range is 100 to 250.

sun.awt back to summary

public Class SunHints.Value

extends Object
Class Inheritance

Defines the type of all "enumerative" values used to control various aspects of the rendering and imaging pipelines. Instances of this class are immutable and unique which means that tests for matches can be made using the == operator instead of the more expensive equals() method.

Field Summary

Modifier and TypeField and Description
private String
private int
private SunHints.Key
private static SunHints.Value[][]

Constructor Summary

AccessConstructor and Description
public
Value(SunHints.Key key, int index, String description)

Construct a value using the indicated private index.

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Overrides java.lang.Object.equals.

The equals method for all SunHints.Value objects will return the same result as the equality operator '=='.

public static SunHints.Value
get(int keyindex, int valueindex)

public final int
getIndex()

Returns the numeric index associated with this Key.

public final int
hashCode()

Overrides java.lang.Object.hashCode.

The hash code for all SunHints.Value objects will be the same as the system identity code of the object as defined by the System.identityHashCode() method.

public final boolean
isCompatibleKey(SunHints.Key k)

Returns true if the specified object is a valid Key for this Value.

private static synchronized void
public final String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of this Value.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

descriptionback to summary
private String description
indexback to summary
private int index
myKeyback to summary
private SunHints.Key myKey
ValueObjectsback to summary
private static SunHints.Value[][] ValueObjects

Constructor Detail

Valueback to summary
public Value(SunHints.Key key, int index, String description)

Construct a value using the indicated private index. Each subclass of Value maintains its own unique domain of integer indices. Enforcing the uniqueness of the integer indices is left to the subclass.

Method Detail

equalsback to summary
public final boolean equals(Object o)

Overrides java.lang.Object.equals.

The equals method for all SunHints.Value objects will return the same result as the equality operator '=='.

getback to summary
public static SunHints.Value get(int keyindex, int valueindex)
getIndexback to summary
public final int getIndex()

Returns the numeric index associated with this Key. This is useful for use in switch statements and quick lookups of the setting of a particular key.

hashCodeback to summary
public final int hashCode()

Overrides java.lang.Object.hashCode.

The hash code for all SunHints.Value objects will be the same as the system identity code of the object as defined by the System.identityHashCode() method.

isCompatibleKeyback to summary
public final boolean isCompatibleKey(SunHints.Key k)

Returns true if the specified object is a valid Key for this Value.

registerback to summary
private static synchronized void register(SunHints.Key key, SunHints.Value value)
toStringback to summary
public final String toString()

Overrides java.lang.Object.toString.

Returns a string representation of this Value.