java.lang.Object
java.awt.image.MemoryImageSource
org.pushingpixels.radiance.theming.internal.contrib.randelshofer.quaqua.colorchooser.ColorWheelImageProducer
All Implemented Interfaces:
ImageProducer

public class ColorWheelImageProducer extends MemoryImageSource
Produces the image of a ColorWheel.
Version:
1.0 August 27, 2005 Created.
See Also:
  • Field Details

    • pixels

      private int[] pixels
    • w

      private int w
    • h

      private int h
    • brightness

      private float brightness
    • isDirty

      private boolean isDirty
    • hues

      private float[] hues
      Lookup table for hues.
    • saturations

      private float[] saturations
      Lookup table for saturations.
    • alphas

      private int[] alphas
      Lookup table for alphas. The alpha value is used for antialiasing the color wheel.
  • Constructor Details

    • ColorWheelImageProducer

      public ColorWheelImageProducer(int w, int h)
      Creates a new instance.
  • Method Details

    • getRadius

      public int getRadius()
    • generateLookupTables

      private void generateLookupTables()
    • setBrightness

      public void setBrightness(float newValue)
    • needsGeneration

      public boolean needsGeneration()
    • regenerateColorWheel

      public void regenerateColorWheel()
    • generateColorWheel

      public void generateColorWheel()