Class AdaptiveRenderingPolicy

java.lang.Object
org.jzy3d.chart.controllers.mouse.camera.AdaptiveRenderingPolicy

public class AdaptiveRenderingPolicy extends Object
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 Details

    • DEFAULT

      protected static final boolean DEFAULT
      See Also:
    • optimizeByPerformanceKnowledge

      public boolean optimizeByPerformanceKnowledge
      If true, the drawable settings will be the best good looking according to performace evaluation. Defaults to false
    • renderingRateLimiter

      public RateLimiter 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 using RateLimiterAdaptsToRenderTime. 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 optimizeForRenderingTimeLargerThan
      The 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 optimizeByDroppingWireframeOnly
      If true, the polygon wireframe will be desactivated between mouse pressed and mouse release. Defaults to false
    • optimizeByDroppingFaceAndKeepingWireframeWithColor

      public boolean optimizeByDroppingFaceAndKeepingWireframeWithColor
      If 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 optimizeByDroppingFaceAndKeepingWireframe
      If true, the polygon face will be desactivated between mouse pressed and mouse release. Defaults to false
    • optimizeByDroppingHiDPI

      public boolean optimizeByDroppingHiDPI
      If true, HiDPI will be desactivated between mouse pressed and mouse release. Defaults to false
    • optimizeByDroppingSmoothColor

      public boolean optimizeByDroppingSmoothColor
      If 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 optimizeByDrawingBoundingBoxOnly
      If true, the drawable will be replaced by its bounding box for rendering. Defaults to false
  • Constructor Details

    • AdaptiveRenderingPolicy

      public AdaptiveRenderingPolicy()