public class DefaultHarmonicColorModel extends javax.swing.AbstractListModel implements HarmonicColorModel, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected java.beans.PropertyChangeSupport |
propertySupport |
COLOR_SPACE_PROPERTY
Constructor and Description |
---|
DefaultHarmonicColorModel() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.awt.Color c) |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener) |
void |
addRule(HarmonicRule newValue) |
void |
applyRules() |
DefaultHarmonicColorModel |
clone() |
int |
componentToRGB(float h,
float s,
float b) |
protected void |
firePropertyChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue) |
protected void |
firePropertyChange(java.lang.String propertyName,
int oldValue,
int newValue) |
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue) |
java.awt.Color |
get(int index) |
int |
getBase() |
java.awt.color.ColorSpace |
getColorSpace() |
java.lang.Object |
getElementAt(int index) |
int |
getSize() |
boolean |
isAdjusting() |
void |
removeAllRules() |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener) |
float[] |
RGBtoComponent(int rgb,
float[] hsb) |
void |
set(int index,
java.awt.Color newValue) |
void |
setBase(int newValue) |
void |
setColorSpace(java.awt.color.ColorSpace newValue) |
void |
setSize(int newValue) |
int |
size() |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
public void setSize(int newValue)
setSize
in interface HarmonicColorModel
public int size()
size
in interface HarmonicColorModel
public boolean isAdjusting()
isAdjusting
in interface HarmonicColorModel
public void set(int index, java.awt.Color newValue)
set
in interface HarmonicColorModel
public void applyRules()
applyRules
in interface HarmonicColorModel
public java.awt.Color get(int index)
get
in interface HarmonicColorModel
public boolean add(java.awt.Color c)
add
in interface HarmonicColorModel
public void setBase(int newValue)
setBase
in interface HarmonicColorModel
public int getBase()
getBase
in interface HarmonicColorModel
public float[] RGBtoComponent(int rgb, float[] hsb)
RGBtoComponent
in interface HarmonicColorModel
public int componentToRGB(float h, float s, float b)
componentToRGB
in interface HarmonicColorModel
public int getSize()
getSize
in interface javax.swing.ListModel
public java.lang.Object getElementAt(int index)
getElementAt
in interface javax.swing.ListModel
public java.awt.color.ColorSpace getColorSpace()
getColorSpace
in interface HarmonicColorModel
public void addRule(HarmonicRule newValue)
addRule
in interface HarmonicColorModel
public void removeAllRules()
removeAllRules
in interface HarmonicColorModel
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface HarmonicColorModel
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface HarmonicColorModel
public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
protected void firePropertyChange(java.lang.String propertyName, boolean oldValue, boolean newValue)
protected void firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
public DefaultHarmonicColorModel clone()
clone
in class java.lang.Object
public void setColorSpace(java.awt.color.ColorSpace newValue)
setColorSpace
in interface HarmonicColorModel