org.jhotdraw.color
Interface HarmonicColorModel

All Superinterfaces:
javax.swing.ListModel
All Known Implementing Classes:
DefaultHarmonicColorModel

public interface HarmonicColorModel
extends javax.swing.ListModel

HarmonicColorModel.

Author:
Werner Randelshofer  @version 1.0 Apr 19, 2008 Created.

Field Summary
static java.lang.String COLOR_SYSTEM_PROPERTY
           
 
Method Summary
 boolean add(CompositeColor c)
           
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void addRule(HarmonicRule rule)
           
 void applyRules()
           
 int componentToRGB(float h, float s, float b)
           
 CompositeColor get(int index)
           
 int getBase()
           
 ColorSystem getColorSystem()
           
 boolean isAdjusting()
           
 void removeAllRules()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 float[] RGBtoComponent(int rgb, float[] hsb)
           
 void set(int index, CompositeColor color)
           
 void setBase(int newValue)
           
 void setColorSystem(ColorSystem newValue)
           
 void setSize(int newValue)
           
 int size()
           
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, getElementAt, getSize, removeListDataListener
 

Field Detail

COLOR_SYSTEM_PROPERTY

static final java.lang.String COLOR_SYSTEM_PROPERTY
See Also:
Constant Field Values
Method Detail

setBase

void setBase(int newValue)

getBase

int getBase()

addRule

void addRule(HarmonicRule rule)

removeAllRules

void removeAllRules()

applyRules

void applyRules()

getColorSystem

ColorSystem getColorSystem()

setColorSystem

void setColorSystem(ColorSystem newValue)

setSize

void setSize(int newValue)

size

int size()

isAdjusting

boolean isAdjusting()

add

boolean add(CompositeColor c)

set

void set(int index,
         CompositeColor color)

get

CompositeColor get(int index)

RGBtoComponent

float[] RGBtoComponent(int rgb,
                       float[] hsb)

componentToRGB

int componentToRGB(float h,
                   float s,
                   float b)

addPropertyChangeListener

void addPropertyChangeListener(java.beans.PropertyChangeListener listener)

removePropertyChangeListener

void removePropertyChangeListener(java.beans.PropertyChangeListener listener)