Package com.inet.html
Enum Class InetHtmlEditorKit.RENDER_MODE
- All Implemented Interfaces:
Serializable,Comparable<InetHtmlEditorKit.RENDER_MODE>,Constable
- Enclosing class:
- InetHtmlEditorKit
The rendering mode defines the type of
RenderingHints.KEY_TEXT_ANTIALIASING to be used and
additional optimizations depending of the anti alias type.- Since:
- 1.11
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUses java internal text anti aliasing.Uses the native text anti aliasing like swing components.
This mode should be used in case FRACTIONAL metrics is activated for the targeted graphics instance.
PRO: All fonts are rendered exactly like in OS native applications.
CON: Severe spacing issues with fractional font sizes like 11pt (=14.66px).Uses the native text anti aliasing like swing components and rounds fractional font sizes. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static InetHtmlEditorKit.RENDER_MODE[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
java_custom
Uses java internal text anti aliasing. Backwards compatible to JWebEngine 1.10 and therefore currently the default mode.
PRO: No spacing issues with fractional font sizes like 11pt (=14.66px).
CON: Strange rendering of some fonts like Calibri. Rendering is different to fonts in Swing components. -
os_native
Uses the native text anti aliasing like swing components.
This mode should be used in case FRACTIONAL metrics is activated for the targeted graphics instance.
PRO: All fonts are rendered exactly like in OS native applications.
CON: Severe spacing issues with fractional font sizes like 11pt (=14.66px). -
os_native_rounded
Uses the native text anti aliasing like swing components and rounds fractional font sizes. This mode is recommend for visual editors.
PRO: All fonts are rendered exactly like in OS native applications, no spacing issues.
CON: Slightly different rendering do a variance in the font size of +/- 0.5px.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-