public class RenderingOptimization extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TEXT_ANTIALIAS_ALL
All text is anti-aliased.
|
static int |
TEXT_ANTIALIAS_AUTO
Fonts that are a certain point size or larger are anti-aliased to appear smooth.
|
static int |
TEXT_ANTIALIAS_OFF
No text anti-aliasing is used.
|
Constructor and Description |
---|
RenderingOptimization() |
Modifier and Type | Method and Description |
---|---|
int |
getAntiAliasTextAutoThreshold()
Returns the font point size of the current threshold for the TEXT_ANTIALIAS_AUTO option.
|
int |
getTextAntiAliasing()
Returns the current option used for text anti-aliasing.
This will be equal to TEXT_ANTIALIAS_OFF, TEXT_ANTIALIAS_AUTO or TEXT_ANTIALIAS_ALL. |
boolean |
isAntiAliasing()
Returns whether the anti-aliasing rendering option is set.
|
boolean |
isSmoothPluginScrolling()
Deprecated.
This option has no effect. It exists for API compatibility
with earlier versions of WebRenderer.
|
boolean |
isWindowlessFlashSmoothScrolling()
Deprecated.
This option has no effect. It exists for API compatibility
with earlier versions of WebRenderer.
|
void |
setAntiAliasing(boolean anitAliasing)
Sets the anti-alias option for all webpage rendering.
This is off by default. |
void |
setAntiAliasTextAutoThreshold(int antiAliasTextAutoThreshold)
Set the threshold for font size to anti-alias when TEXT_ANTIALIAS_AUTO is used.
The font point size is that used in java.awt.Font, which is measured in 1/72 inch units. By default this is set to 14 point. |
void |
setSmoothPluginScrolling(boolean smoothPluginScrolling)
Deprecated.
This option has no effect. It exists for API compatibility
with earlier versions of WebRenderer.
|
void |
setTextAntiAliasing(int textAntiAliasing)
Sets if text will be anti-aliased for all webpage rendering.
|
void |
setWindowlessFlashSmoothScrolling(boolean windowlessFlashSmoothScrolling)
Deprecated.
This option has no effect. It exists for API compatibility
with earlier versions of WebRenderer.
|
public static final int TEXT_ANTIALIAS_OFF
public static final int TEXT_ANTIALIAS_AUTO
public static final int TEXT_ANTIALIAS_ALL
public boolean isWindowlessFlashSmoothScrolling()
public boolean isAntiAliasing()
public int getTextAntiAliasing()
public boolean isSmoothPluginScrolling()
public void setWindowlessFlashSmoothScrolling(boolean windowlessFlashSmoothScrolling)
public void setSmoothPluginScrolling(boolean smoothPluginScrolling)
public void setAntiAliasing(boolean anitAliasing)
anitAliasing
- public void setTextAntiAliasing(int textAntiAliasing)
Possible values are TEXT_ANTIALIAS_OFF
,
TEXT_ANTIALIAS_AUTO
or TEXT_ANTIALIAS_ALL
.
The default value is TEXT_ANTIALIAS_ALL
.
textAntiAliasing
- The constant that specifies the type of anti-aliasing.public int getAntiAliasTextAutoThreshold()
public void setAntiAliasTextAutoThreshold(int antiAliasTextAutoThreshold)
antiAliasTextAutoThreshold
- All fonts of this size and above will be anti-aliased.