The RenderingHintsRenderPolicy is a StandardRenderPolicy that lets you set RenderingHints on the java.awt.Graphics object before the layer is painted, and then simply paints the current graphic list. No conditions or deviations are considered. This class can be set with properties.
The properties have to look like:
prefix.renderingHints=RENDERINGHINTS_KEY1 RENDERINGHINTS_KEY2 prefix.RENDERINGHINTS_KEY1=RENDERINGHINTS_VALUE1 prefix.RENDERINGHINTS_KEY2=RENDERINGHINTS_VALUE2
For example, for a GraticuleLayer in the properties file with a 'graticule' prefix:
graticule.renderPolicy=textAliasing graticule.textAliasing.class=com.bbn.openmap.layer.policy.RenderingHintsRenderPolicy graticule.textAliasing.renderingHints=KEY_TEXT_ANTIALIASING graticule.textAliasing.KEY_TEXT_ANTIALIASING=VALUE_TEXT_ANTIALIAS_ON
The HintsMapBeanRepaintPolicy uses a RenderingHintsRenderPolicy with properties that look like these, where 'repaintPolicy' is the prefix for the RenderingHintsRenderPolicy:
repaintPolicy.class=com.bbn.openmap.HintsMapBeanRepaintPolicy repaintPolicy.renderingHints=KEY_ANTIALIASING repaintPolicy.KEY_ANTIALIASING=VALUE_ANTIALIAS_ON repaintPolicy.KEY_RENDERING=VALUE_RENDER_SPEED
See the java.awt.RenderingHints javadocs for the key-value pairs that can be used.