Class AdaptiveRenderingPolicy
java.lang.Object
org.jzy3d.chart.controllers.mouse.camera.AdaptiveRenderingPolicy
A collection of settings to allow a controller to adapt rendering quality in order to
optimize performances of the chart.
The actual use of these parameter is defined in the controllers such as
AdaptiveMouseController
.- Author:
- Martin Pernollet
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final boolean
boolean
If true, the drawable will be replaced by its bounding box for rendering.boolean
If true, the polygon face will be desactivated between mouse pressed and mouse release.boolean
If true, the polygon face will be desactivated and wireframe will be colored according to face colors between mouse pressed and mouse release.boolean
If true, HiDPI will be desactivated between mouse pressed and mouse release.boolean
If true, the polygon face coloring will be set to flat instead of smooth.boolean
If true, the polygon wireframe will be desactivated between mouse pressed and mouse release.boolean
If true, the drawable settings will be the best good looking according to performace evaluation.double
The canvas rendering time threshold above which the mouse controller will apply the enabled optimization policies.the rate limiter will ensure the canvas do not look frozen when too much mouse events. -
Constructor Summary
-
Method Summary
-
Field Details
-
DEFAULT
protected static final boolean DEFAULT- See Also:
-
optimizeByPerformanceKnowledge
public boolean optimizeByPerformanceKnowledgeIf true, the drawable settings will be the best good looking according to performace evaluation. Defaults to false -
renderingRateLimiter
the rate limiter will ensure the canvas do not look frozen when too much mouse events. It may do it in an adaptive manner (e.g. when usingRateLimiterAdaptsToRenderTime
. It however won't optimize performance while rotating, but mainly prevent the chart from flooding AWT Event thread to ensure display will occur for all intermediate rotation steps. Optimizing performance is done by other parameters. -
optimizeForRenderingTimeLargerThan
public double optimizeForRenderingTimeLargerThanThe canvas rendering time threshold above which the mouse controller will apply the enabled optimization policies. No optimization is applied at all if the rendering time remains below this threshold. -
optimizeByDroppingWireframeOnly
public boolean optimizeByDroppingWireframeOnlyIf true, the polygon wireframe will be desactivated between mouse pressed and mouse release. Defaults to false -
optimizeByDroppingFaceAndKeepingWireframeWithColor
public boolean optimizeByDroppingFaceAndKeepingWireframeWithColorIf true, the polygon face will be desactivated and wireframe will be colored according to face colors between mouse pressed and mouse release. Defaults to false -
optimizeByDroppingFaceAndKeepingWireframe
public boolean optimizeByDroppingFaceAndKeepingWireframeIf true, the polygon face will be desactivated between mouse pressed and mouse release. Defaults to false -
optimizeByDroppingHiDPI
public boolean optimizeByDroppingHiDPIIf true, HiDPI will be desactivated between mouse pressed and mouse release. Defaults to false -
optimizeByDroppingSmoothColor
public boolean optimizeByDroppingSmoothColorIf true, the polygon face coloring will be set to flat instead of smooth. Has no effect if the chart is configured for flat coloring. Defaults to false -
optimizeByDrawingBoundingBoxOnly
public boolean optimizeByDrawingBoundingBoxOnlyIf true, the drawable will be replaced by its bounding box for rendering. Defaults to false
-
-
Constructor Details
-
AdaptiveRenderingPolicy
public AdaptiveRenderingPolicy()
-