src/share/classes/sun/awt/SunHints.java
Print this page
*** 170,180 ****
public final boolean equals(Object o) {
return this == o;
}
}
! private static final int NUM_KEYS = 9;
private static final int VALS_PER_KEY = 8;
/**
* Rendering hint key and values
*/
--- 170,180 ----
public final boolean equals(Object o) {
return this == o;
}
}
! private static final int NUM_KEYS = 10;
private static final int VALS_PER_KEY = 8;
/**
* Rendering hint key and values
*/
*** 251,260 ****
--- 251,267 ----
@Native public static final int INTVAL_STROKE_DEFAULT = 0;
@Native public static final int INTVAL_STROKE_NORMALIZE = 1;
@Native public static final int INTVAL_STROKE_PURE = 2;
/**
+ * Image scaling hint key and values
+ */
+ @Native public static final int INTKEY_RESOLUTION_VARIANT = 9;
+ @Native public static final int INTVAL_RESOLUTION_VARIANT_DEFAULT = 0;
+ @Native public static final int INTVAL_RESOLUTION_VARIANT_OFF = 1;
+ @Native public static final int INTVAL_RESOLUTION_VARIANT_ON = 2;
+ /**
* 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.
*/
@Native public static final int INTKEY_AATEXT_LCD_CONTRAST = 100;
*** 448,457 ****
--- 455,482 ----
public static final Object VALUE_STROKE_PURE =
new SunHints.Value(KEY_STROKE_CONTROL,
SunHints.INTVAL_STROKE_PURE,
"Pure stroke conversion for accurate paths");
+ /**
+ * Image resolution variant hint key and value objects
+ */
+ public static final Key KEY_RESOLUTION_VARIANT =
+ new SunHints.Key(SunHints.INTKEY_RESOLUTION_VARIANT,
+ "Global image resolution variant key");
+ public static final Object VALUE_RESOLUTION_VARIANT_DEFAULT =
+ new SunHints.Value(KEY_RESOLUTION_VARIANT,
+ SunHints.INTVAL_RESOLUTION_VARIANT_DEFAULT,
+ "Choose image resolutions based on a default heuristic");
+ public static final Object VALUE_RESOLUTION_VARIANT_OFF =
+ new SunHints.Value(KEY_RESOLUTION_VARIANT,
+ SunHints.INTVAL_RESOLUTION_VARIANT_OFF,
+ "Use only the standard resolution of an image");
+ public static final Object VALUE_RESOLUTION_VARIANT_ON =
+ new SunHints.Value(KEY_RESOLUTION_VARIANT,
+ SunHints.INTVAL_RESOLUTION_VARIANT_ON,
+ "Always use resolution-specific variants of images");
public static class LCDContrastKey extends Key {
public LCDContrastKey(int privatekey, String description) {
super(privatekey, description);