@Immutable @Utility public final class JRendererFactory extends java.lang.Object
Active rendering is used if the org.jdesktop.renderer.active property is defined. For example with the following passed to the Java interpreter.
-Dorg.jdesktop.renderer.active=true
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY |
Modifier and Type | Method and Description |
---|---|
static JRenderer |
getDefaultRenderer(JRendererPanel on,
JRendererTarget<java.awt.GraphicsConfiguration,java.awt.Graphics2D> target,
boolean hasChildren)
Gets a renderer based upon the users preference for active or passive
rendering.
|
static boolean |
useActiveRenderer()
Gets if active rendering is desired.
|
public static final java.lang.String PROPERTY
public static JRenderer getDefaultRenderer(JRendererPanel on, JRendererTarget<java.awt.GraphicsConfiguration,java.awt.Graphics2D> target, boolean hasChildren)
Active rendering is used if the org.jdesktop.renderer.active property is defined. For example with the following passed to the Java interpreter.
-Dorg.jdesktop.renderer.active=trueThis method constructs and starts an
SwingTimerTimingSource
or a
ManualTimingSource
and sets it as the default for all animations. A
handle to this timing source can be obtained by invoking
JRenderer.getTimingSource()
, for example, if it needs to be
disposed.on
- the panel to render on.target
- the rendering implementation to callback to.hasChildren
- if on manages child Swing components. true
if it
does. false
if it does not. This helps the renderer
improve performance if no child components are ever used.public static boolean useActiveRenderer()
true
if active rendering is desired, false
otherwise.