JHotDraw 7.4.1

org.jhotdraw.color
Class HSVHarmonicColorWheelImageProducer

java.lang.Object
  extended by java.awt.image.MemoryImageSource
      extended by org.jhotdraw.color.ColorWheelImageProducer
          extended by org.jhotdraw.color.HSVHarmonicColorWheelImageProducer
All Implemented Interfaces:
java.awt.image.ImageProducer

public class HSVHarmonicColorWheelImageProducer
extends ColorWheelImageProducer

HarmonicColorWheelImageProducer.

Author:
Werner Randelshofer  @version $Id: HSVHarmonicColorWheelImageProducer.java 527 2009-06-07 14:28:19Z rawcoder $

Field Summary
 
Fields inherited from class org.jhotdraw.color.ColorWheelImageProducer
alphas, angularIndex, angulars, colorSystem, h, isLookupValid, isPixelsValid, pixels, radialIndex, radials, verticalIndex, verticalValue, w
 
Constructor Summary
HSVHarmonicColorWheelImageProducer(int w, int h)
           
 
Method Summary
 void generateColorWheel()
           
protected  void generateContiguousLookupTables()
           
protected  void generateDiscreteLookupTables()
           
protected  void generateLookupTables()
           
protected  float[] getColorAt(int x, int y, int width, int height)
           
protected  java.awt.Point getColorLocation(java.awt.Color c, int width, int height)
           
protected  java.awt.Point getColorLocation(float hue, float saturation, float brightness, int width, int height)
           
 
Methods inherited from class org.jhotdraw.color.ColorWheelImageProducer
getColorLocation, getColorLocation, getRadius, needsGeneration, regenerateColorWheel, setAngularComponentIndex, setRadialComponentIndex, setVerticalComponentIndex, setVerticalValue
 
Methods inherited from class java.awt.image.MemoryImageSource
addConsumer, isConsumer, newPixels, newPixels, newPixels, newPixels, newPixels, removeConsumer, requestTopDownLeftRightResend, setAnimated, setFullBufferUpdates, startProduction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HSVHarmonicColorWheelImageProducer

public HSVHarmonicColorWheelImageProducer(int w,
                                          int h)
Method Detail

generateLookupTables

protected void generateLookupTables()
Overrides:
generateLookupTables in class ColorWheelImageProducer

generateContiguousLookupTables

protected void generateContiguousLookupTables()

generateDiscreteLookupTables

protected void generateDiscreteLookupTables()

generateColorWheel

public void generateColorWheel()
Overrides:
generateColorWheel in class ColorWheelImageProducer

getColorLocation

protected java.awt.Point getColorLocation(java.awt.Color c,
                                          int width,
                                          int height)
Overrides:
getColorLocation in class ColorWheelImageProducer

getColorLocation

protected java.awt.Point getColorLocation(float hue,
                                          float saturation,
                                          float brightness,
                                          int width,
                                          int height)
Overrides:
getColorLocation in class ColorWheelImageProducer

getColorAt

protected float[] getColorAt(int x,
                             int y,
                             int width,
                             int height)
Overrides:
getColorAt in class ColorWheelImageProducer

Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.