Indicates that MapView instance will be initialized as a lightweight (off-screen)
component. In this mode Chromium engine renders web page content off-screen and Java component just
displays rendering results as image using standard Java Graphics API.
In this mode GPU acceleration in Chromium engine isn't used. As result, rendering performance isn't
so good as with enabled GPU acceleration.
It's recommended to configure MapView instance with this type in Java Swing/JavaFX applications
where lightweight is the main requirements. For example, when transparent JPanel should be displayed over
MapViewer component, or when MapView component is embedded into MapView
or layered panels.
Indicates that MapView instance will be initialized as a heavyweight component. Heavyweight
components represents a native window embedded into Java frame.
In this mode Chromium uses GPU acceleration to render web page content directly onto an embedded into
Java frame window. Rendering performance in this case is the same as in Google Chrome.
It's recommended to configure MapView instance with this type in Java applications where rendering
performance is very critical (e.g. displaying video or WebGL content). Since MapView
represents a native heavyweight window embedded into Java application's frame, it's not recommended to
display lightweight Swing/JavaFX components over heavyweight MapView component. The
heavyweight MapView component will be always displayed over lightweight Swing/JavaFX components.
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
name - the name of the enum constant to be returned.
the enum constant with the specified name
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null