JHotDraw 7.6

org.jhotdraw.color
Class HSLHarmonicColorWheelImageProducer

java.lang.Object
  extended by java.awt.image.MemoryImageSource
      extended by org.jhotdraw.color.AbstractColorWheelImageProducer
          extended by org.jhotdraw.color.PolarColorWheelImageProducer
              extended by org.jhotdraw.color.HSLHarmonicColorWheelImageProducer
All Implemented Interfaces:
java.awt.image.ImageProducer

public class HSLHarmonicColorWheelImageProducer
extends PolarColorWheelImageProducer

HSLHarmonicColorWheelImageProducer.

Version:
$Id: HSLHarmonicColorWheelImageProducer.java 717 2010-11-21 12:30:57Z rawcoder $
Author:
Werner Randelshofer

Field Summary
 
Fields inherited from class org.jhotdraw.color.PolarColorWheelImageProducer
alphas, angulars, radials
 
Fields inherited from class org.jhotdraw.color.AbstractColorWheelImageProducer
angularIndex, colorSpace, h, isLookupValid, isPixelsValid, pixels, radialIndex, verticalIndex, verticalValue, w
 
Constructor Summary
HSLHarmonicColorWheelImageProducer(java.awt.color.ColorSpace sys, int w, int h)
           
HSLHarmonicColorWheelImageProducer(int w, int h)
           
 
Method Summary
 void generateColorWheel()
           
protected  void generateContiguousLookupTables()
           
protected  void generateDiscreteLookupTables()
           
protected  void generateLookupTables()
           
 float[] getColorAt(int x, int y)
           
 java.awt.Point getColorLocation(java.awt.Color c)
           
 java.awt.Point getColorLocation(float[] hsb)
           
 
Methods inherited from class org.jhotdraw.color.AbstractColorWheelImageProducer
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

HSLHarmonicColorWheelImageProducer

public HSLHarmonicColorWheelImageProducer(int w,
                                          int h)

HSLHarmonicColorWheelImageProducer

public HSLHarmonicColorWheelImageProducer(java.awt.color.ColorSpace sys,
                                          int w,
                                          int h)
Method Detail

generateLookupTables

protected void generateLookupTables()
Overrides:
generateLookupTables in class PolarColorWheelImageProducer

generateContiguousLookupTables

protected void generateContiguousLookupTables()

generateDiscreteLookupTables

protected void generateDiscreteLookupTables()

generateColorWheel

public void generateColorWheel()
Overrides:
generateColorWheel in class PolarColorWheelImageProducer

getColorLocation

public java.awt.Point getColorLocation(java.awt.Color c)
Overrides:
getColorLocation in class PolarColorWheelImageProducer

getColorLocation

public java.awt.Point getColorLocation(float[] hsb)
Overrides:
getColorLocation in class PolarColorWheelImageProducer

getColorAt

public float[] getColorAt(int x,
                          int y)
Overrides:
getColorAt in class PolarColorWheelImageProducer

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