Package com.inet.html

Enum Class InetHtmlEditorKit.RENDER_MODE

java.lang.Object
java.lang.Enum<InetHtmlEditorKit.RENDER_MODE>
com.inet.html.InetHtmlEditorKit.RENDER_MODE
All Implemented Interfaces:
Serializable, Comparable<InetHtmlEditorKit.RENDER_MODE>, Constable
Enclosing class:
InetHtmlEditorKit

public static enum InetHtmlEditorKit.RENDER_MODE extends Enum<InetHtmlEditorKit.RENDER_MODE>
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
  • Enum Constant Details

    • java_custom

      public static final InetHtmlEditorKit.RENDER_MODE 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

      public static final InetHtmlEditorKit.RENDER_MODE 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

      public static final InetHtmlEditorKit.RENDER_MODE 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

      public static InetHtmlEditorKit.RENDER_MODE[] 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

      public static InetHtmlEditorKit.RENDER_MODE valueOf(String name)
      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 name
      NullPointerException - if the argument is null