Class Optimizations


  • public class Optimizations
    extends java.lang.Object
    A container for any potential optimizations that the renderer can enable based on the data and rendering settings it has been fed.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean alphalessRendering
      We can do alphaless rendering
      boolean primaryColorEnabled
      The channel bindings are only "primary" colors.
    • Constructor Summary

      Constructors 
      Constructor Description
      Optimizations()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isAlphalessRendering()
      Returns true if the alphaless rendering optimization is enabled, and false if it is not.
      boolean isPrimaryColorEnabled()
      Returns true if the primary color optimization is enabled, and false if it is not.
      void setAlphalessRendering​(boolean enabled)
      Enable or disable the alphaless rendering optimization.
      void setPrimaryColorEnabled​(boolean enabled)
      Enable or disable the primary color optimization.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • primaryColorEnabled

        public boolean primaryColorEnabled
        The channel bindings are only "primary" colors. (Red, Green or Blue)
      • alphalessRendering

        public boolean alphalessRendering
        We can do alphaless rendering
    • Constructor Detail

      • Optimizations

        public Optimizations()
    • Method Detail

      • setPrimaryColorEnabled

        public void setPrimaryColorEnabled​(boolean enabled)
        Enable or disable the primary color optimization.
        Parameters:
        enabled - whether or not to enable the primary color optimization.
      • isPrimaryColorEnabled

        public boolean isPrimaryColorEnabled()
        Returns true if the primary color optimization is enabled, and false if it is not.
        Returns:
        See above.
      • setAlphalessRendering

        public void setAlphalessRendering​(boolean enabled)
        Enable or disable the alphaless rendering optimization. If enabled is false it will also disable primary color rendering.
        Parameters:
        enabled - whether or not to enable the alphaless rendering optimization.
      • isAlphalessRendering

        public boolean isAlphalessRendering()
        Returns true if the alphaless rendering optimization is enabled, and false if it is not.
        Returns:
        See above.