JHotDraw 7.5.1

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 $Id: HarmonicColorModel.java 639 2010-01-22 16:35:25Z rawcoder $

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

Field Detail

COLOR_SPACE_PROPERTY

static final java.lang.String COLOR_SPACE_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()

getColorSpace

java.awt.color.ColorSpace getColorSpace()

setColorSpace

void setColorSpace(java.awt.color.ColorSpace newValue)

setSize

void setSize(int newValue)

size

int size()

isAdjusting

boolean isAdjusting()

add

boolean add(java.awt.Color c)

set

void set(int index,
         java.awt.Color color)

get

java.awt.Color 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)

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