< prev index next >

jdk/src/java.desktop/share/classes/java/awt/RenderingHints.java

Print this page




 948      * Stroke normalization control hint value -- geometry should
 949      * be left unmodified and rendered with sub-pixel accuracy.
 950      *
 951      * @see #KEY_STROKE_CONTROL
 952      * @since 1.3
 953      */
 954     public static final Object VALUE_STROKE_PURE =
 955         SunHints.VALUE_STROKE_PURE;
 956 
 957     /**
 958      * Image resolution variant hint key.
 959      * The {@code RESOLUTION_VARIANT} hint controls which image resolution
 960      * variant should be chosen for image drawing.
 961      *
 962      * <ul>
 963      * <li>{@link #VALUE_RESOLUTION_VARIANT_DEFAULT}
 964      * <li>{@link #VALUE_RESOLUTION_VARIANT_BASE}
 965      * <li>{@link #VALUE_RESOLUTION_VARIANT_SIZE_FIT}
 966      * <li>{@link #VALUE_RESOLUTION_VARIANT_DPI_FIT}
 967      * </ul>
 968      * @since 1.9
 969      */
 970     public static final Key KEY_RESOLUTION_VARIANT =
 971         SunHints.KEY_RESOLUTION_VARIANT;
 972 
 973     /**
 974      * Image resolution variant hint value -- an image resolution variant is
 975      * chosen based on a default heuristic which may depend on the policies
 976      * of the platform
 977      *
 978      * @see #KEY_RESOLUTION_VARIANT
 979      * @since 1.9
 980      */
 981     public static final Object VALUE_RESOLUTION_VARIANT_DEFAULT =
 982         SunHints.VALUE_RESOLUTION_VARIANT_DEFAULT;
 983 
 984     /**
 985      * Image resolution variant hint value -- the standard resolution of an image
 986      * is always used.
 987      *
 988      * @see #KEY_RESOLUTION_VARIANT
 989      * @since 1.9
 990      */
 991     public static final Object VALUE_RESOLUTION_VARIANT_BASE =
 992         SunHints.VALUE_RESOLUTION_VARIANT_BASE;
 993 
 994     /**
 995      * Image resolution variant hint value -- an image resolution variant is
 996      * chosen based on the DPI of the screen and the transform in the Graphics2D
 997      * context.
 998      *
 999      * @see #KEY_RESOLUTION_VARIANT
1000      * @since 1.9
1001      */
1002     public static final Object VALUE_RESOLUTION_VARIANT_SIZE_FIT =
1003         SunHints.VALUE_RESOLUTION_VARIANT_SIZE_FIT;
1004 
1005     /**
1006      * Image resolution variant hint value -- an image resolution variant is
1007      * chosen based only on the DPI of the screen.
1008      *
1009      * @see #KEY_RESOLUTION_VARIANT
1010      * @since 1.9
1011      */
1012     public static final Object VALUE_RESOLUTION_VARIANT_DPI_FIT =
1013         SunHints.VALUE_RESOLUTION_VARIANT_DPI_FIT;
1014 
1015     /**
1016      * Constructs a new object with keys and values initialized
1017      * from the specified Map object which may be null.
1018      * @param init a map of key/value pairs to initialize the hints
1019      *          or null if the object should be empty
1020      */
1021     public RenderingHints(Map<Key,?> init) {
1022         if (init != null) {
1023             hintmap.putAll(init);
1024         }
1025     }
1026 
1027     /**
1028      * Constructs a new object with the specified key/value pair.
1029      * @param key the key of the particular hint property
1030      * @param value the value of the hint property specified with




 948      * Stroke normalization control hint value -- geometry should
 949      * be left unmodified and rendered with sub-pixel accuracy.
 950      *
 951      * @see #KEY_STROKE_CONTROL
 952      * @since 1.3
 953      */
 954     public static final Object VALUE_STROKE_PURE =
 955         SunHints.VALUE_STROKE_PURE;
 956 
 957     /**
 958      * Image resolution variant hint key.
 959      * The {@code RESOLUTION_VARIANT} hint controls which image resolution
 960      * variant should be chosen for image drawing.
 961      *
 962      * <ul>
 963      * <li>{@link #VALUE_RESOLUTION_VARIANT_DEFAULT}
 964      * <li>{@link #VALUE_RESOLUTION_VARIANT_BASE}
 965      * <li>{@link #VALUE_RESOLUTION_VARIANT_SIZE_FIT}
 966      * <li>{@link #VALUE_RESOLUTION_VARIANT_DPI_FIT}
 967      * </ul>
 968      * @since 9
 969      */
 970     public static final Key KEY_RESOLUTION_VARIANT =
 971         SunHints.KEY_RESOLUTION_VARIANT;
 972 
 973     /**
 974      * Image resolution variant hint value -- an image resolution variant is
 975      * chosen based on a default heuristic which may depend on the policies
 976      * of the platform
 977      *
 978      * @see #KEY_RESOLUTION_VARIANT
 979      * @since 9
 980      */
 981     public static final Object VALUE_RESOLUTION_VARIANT_DEFAULT =
 982         SunHints.VALUE_RESOLUTION_VARIANT_DEFAULT;
 983 
 984     /**
 985      * Image resolution variant hint value -- the standard resolution of an image
 986      * is always used.
 987      *
 988      * @see #KEY_RESOLUTION_VARIANT
 989      * @since 9
 990      */
 991     public static final Object VALUE_RESOLUTION_VARIANT_BASE =
 992         SunHints.VALUE_RESOLUTION_VARIANT_BASE;
 993 
 994     /**
 995      * Image resolution variant hint value -- an image resolution variant is
 996      * chosen based on the DPI of the screen and the transform in the Graphics2D
 997      * context.
 998      *
 999      * @see #KEY_RESOLUTION_VARIANT
1000      * @since 9
1001      */
1002     public static final Object VALUE_RESOLUTION_VARIANT_SIZE_FIT =
1003         SunHints.VALUE_RESOLUTION_VARIANT_SIZE_FIT;
1004 
1005     /**
1006      * Image resolution variant hint value -- an image resolution variant is
1007      * chosen based only on the DPI of the screen.
1008      *
1009      * @see #KEY_RESOLUTION_VARIANT
1010      * @since 9
1011      */
1012     public static final Object VALUE_RESOLUTION_VARIANT_DPI_FIT =
1013         SunHints.VALUE_RESOLUTION_VARIANT_DPI_FIT;
1014 
1015     /**
1016      * Constructs a new object with keys and values initialized
1017      * from the specified Map object which may be null.
1018      * @param init a map of key/value pairs to initialize the hints
1019      *          or null if the object should be empty
1020      */
1021     public RenderingHints(Map<Key,?> init) {
1022         if (init != null) {
1023             hintmap.putAll(init);
1024         }
1025     }
1026 
1027     /**
1028      * Constructs a new object with the specified key/value pair.
1029      * @param key the key of the particular hint property
1030      * @param value the value of the hint property specified with


< prev index next >