Fields Summary |
---|
public static final Key | KEY_ALPHA_INTERPOLATIONThe Constant KEY_ALPHA_INTERPOLATION - alpha interpolation rendering hint
key. |
public static final Object | VALUE_ALPHA_INTERPOLATION_DEFAULTThe Constant VALUE_ALPHA_INTERPOLATION_DEFAULT - alpha interpolation
rendering hint value. |
public static final Object | VALUE_ALPHA_INTERPOLATION_SPEEDThe Constant VALUE_ALPHA_INTERPOLATION_SPEED - alpha interpolation
rendering hint value. |
public static final Object | VALUE_ALPHA_INTERPOLATION_QUALITYThe Constant VALUE_ALPHA_INTERPOLATION_QUALITY - alpha interpolation
rendering hint value. |
public static final Key | KEY_ANTIALIASINGThe Constant KEY_ANTIALIASING - antialiasing rendering hint key. |
public static final Object | VALUE_ANTIALIAS_DEFAULTThe Constant VALUE_ANTIALIAS_DEFAULT - antialiasing rendering hint value. |
public static final Object | VALUE_ANTIALIAS_ONThe Constant VALUE_ANTIALIAS_ON - antialiasing rendering hint value. |
public static final Object | VALUE_ANTIALIAS_OFFThe Constant VALUE_ANTIALIAS_OFF - antialiasing rendering hint value. |
public static final Key | KEY_COLOR_RENDERINGThe Constant KEY_COLOR_RENDERING - color rendering hint key. |
public static final Object | VALUE_COLOR_RENDER_DEFAULTThe Constant VALUE_COLOR_RENDER_DEFAULT - color rendering hint value. |
public static final Object | VALUE_COLOR_RENDER_SPEEDThe Constant VALUE_COLOR_RENDER_SPEED - color rendering hint value. |
public static final Object | VALUE_COLOR_RENDER_QUALITYThe Constant VALUE_COLOR_RENDER_QUALITY - color rendering hint value. |
public static final Key | KEY_DITHERINGThe Constant KEY_DITHERING - dithering rendering hint key. |
public static final Object | VALUE_DITHER_DEFAULTThe Constant VALUE_DITHER_DEFAULT - dithering rendering hint value. |
public static final Object | VALUE_DITHER_DISABLEThe Constant VALUE_DITHER_DISABLE - dithering rendering hint value. |
public static final Object | VALUE_DITHER_ENABLEThe Constant VALUE_DITHER_DISABLE - dithering rendering hint value. |
public static final Key | KEY_FRACTIONALMETRICSThe Constant KEY_FRACTIONALMETRICS - fractional metrics rendering hint
key. |
public static final Object | VALUE_FRACTIONALMETRICS_DEFAULTThe Constant VALUE_FRACTIONALMETRICS_DEFAULT - fractional metrics
rendering hint value. |
public static final Object | VALUE_FRACTIONALMETRICS_ONThe Constant VALUE_FRACTIONALMETRICS_ON - fractional metrics rendering
hint value. |
public static final Object | VALUE_FRACTIONALMETRICS_OFFThe Constant VALUE_FRACTIONALMETRICS_OFF - fractional metrics rendering
hint value. |
public static final Key | KEY_INTERPOLATIONThe Constant KEY_INTERPOLATION - interpolation rendering hint key. |
public static final Object | VALUE_INTERPOLATION_BICUBICThe Constant VALUE_INTERPOLATION_BICUBIC - interpolation rendering hint
value. |
public static final Object | VALUE_INTERPOLATION_BILINEARThe Constant VALUE_INTERPOLATION_BILINEAR - interpolation rendering hint
value. |
public static final Object | VALUE_INTERPOLATION_NEAREST_NEIGHBORThe Constant VALUE_INTERPOLATION_NEAREST_NEIGHBOR - interpolation
rendering hint value. |
public static final Key | KEY_RENDERINGThe Constant KEY_RENDERING - rendering hint key. |
public static final Object | VALUE_RENDER_DEFAULTThe Constant VALUE_RENDER_DEFAULT - rendering hint value. |
public static final Object | VALUE_RENDER_SPEEDThe Constant VALUE_RENDER_SPEED - rendering hint value. |
public static final Object | VALUE_RENDER_QUALITYThe Constant VALUE_RENDER_QUALITY - rendering hint value. |
public static final Key | KEY_STROKE_CONTROLThe Constant KEY_STROKE_CONTROL - stroke control hint key. |
public static final Object | VALUE_STROKE_DEFAULTThe Constant VALUE_STROKE_DEFAULT - stroke hint value. |
public static final Object | VALUE_STROKE_NORMALIZEThe Constant VALUE_STROKE_NORMALIZE - stroke hint value. |
public static final Object | VALUE_STROKE_PUREThe Constant VALUE_STROKE_PURE - stroke hint value. |
public static final Key | KEY_TEXT_ANTIALIASINGThe Constant KEY_TEXT_ANTIALIASING - text antialiasing hint key. |
public static final Object | VALUE_TEXT_ANTIALIAS_DEFAULTThe Constant VALUE_TEXT_ANTIALIAS_DEFAULT - text antialiasing hint key. |
public static final Object | VALUE_TEXT_ANTIALIAS_ONThe Constant VALUE_TEXT_ANTIALIAS_ON - text antialiasing hint key. |
public static final Object | VALUE_TEXT_ANTIALIAS_OFFThe Constant VALUE_TEXT_ANTIALIAS_OFF - text antialiasing hint key. |
private HashMap | mapThe map. |
Methods Summary |
---|
public void | add(java.awt.RenderingHints hints)Adds the properties represented by key/value pairs from the specified
RenderingHints object to current object.
map.putAll(hints.map);
|
public void | clear()Clears the RenderingHints of all key/value pairs.
map.clear();
|
public java.lang.Object | clone()Returns the clone of the RenderingHints object with the same contents.
RenderingHints clone = new RenderingHints(null);
clone.map = (HashMap<Object, Object>)this.map.clone();
return clone;
|
public boolean | containsKey(java.lang.Object key)Checks whether or not current RenderingHints object contains the key
which is equal to the specified Object.
if (key == null) {
throw new NullPointerException();
}
return map.containsKey(key);
|
public boolean | containsValue(java.lang.Object value)Checks whether or not current RenderingHints object contains at least one
the value which is equal to the specified Object.
return map.containsValue(value);
|
public java.util.Set | entrySet()Returns a set of Map.Entry objects which contain current RenderingHint
key/value pairs.
return map.entrySet();
|
public boolean | equals(java.lang.Object o)Compares the RenderingHints object with the specified object.
if (!(o instanceof Map)) {
return false;
}
Map<?, ?> m = (Map<?, ?>)o;
Set<?> keys = keySet();
if (!keys.equals(m.keySet())) {
return false;
}
Iterator<?> it = keys.iterator();
while (it.hasNext()) {
Key key = (Key)it.next();
Object v1 = get(key);
Object v2 = m.get(key);
if (!(v1 == null ? v2 == null : v1.equals(v2))) {
return false;
}
}
return true;
|
public java.lang.Object | get(java.lang.Object key)Gets the value assigned to the specified key.
return map.get(key);
|
public int | hashCode()Returns the hash code for this RenderingHints object.
return map.hashCode();
|
public boolean | isEmpty()Checks whether or not the RenderingHints object contains any key/value
pairs.
return map.isEmpty();
|
public java.util.Set | keySet()Returns a set of rendering hints keys for current RenderingHints object.
return map.keySet();
|
public java.lang.Object | put(java.lang.Object key, java.lang.Object value)Puts the specified value to the specified key. Neither the key nor the
value can be null.
if (!((Key)key).isCompatibleValue(value)) {
throw new IllegalArgumentException();
}
return map.put(key, value);
|
public void | putAll(java.util.Map m)Puts all of the preferences from the specified Map into the current
RenderingHints object. These mappings replace all existing preferences.
if (m instanceof RenderingHints) {
map.putAll(((RenderingHints)m).map);
} else {
Set<?> entries = m.entrySet();
if (entries != null) {
Iterator<?> it = entries.iterator();
while (it.hasNext()) {
Map.Entry<?, ?> entry = (Map.Entry<?, ?>)it.next();
Key key = (Key)entry.getKey();
Object val = entry.getValue();
put(key, val);
}
}
}
|
public java.lang.Object | remove(java.lang.Object key)Removes the specified key and corresponding value from the RenderingHints
object.
return map.remove(key);
|
public int | size()Returns the number of key/value pairs in the RenderingHints.
return map.size();
|
public java.lang.String | toString()Returns the string representation of the RenderingHints object.
return "RenderingHints[" + map.toString() + "]"; //$NON-NLS-1$ //$NON-NLS-2$
|
public java.util.Collection | values()Returns a Collection of values contained in current RenderingHints
object.
return map.values();
|