org.jhotdraw.color
Class DefaultHarmonicColorModel
- java.lang.Object
-
- javax.swing.AbstractListModel
-
- org.jhotdraw.color.DefaultHarmonicColorModel
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, javax.swing.ListModel, HarmonicColorModel
public class DefaultHarmonicColorModel extends javax.swing.AbstractListModel implements HarmonicColorModel, java.lang.Cloneable
DefaultHarmonicColorModel.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.jhotdraw.color.HarmonicColorModel
COLOR_SPACE_PROPERTY
-
-
Constructor Summary
Constructors Constructor and Description DefaultHarmonicColorModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanadd(java.awt.Color c)voidaddPropertyChangeListener(java.beans.PropertyChangeListener listener)voidaddPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)voidaddRule(HarmonicRule newValue)voidapplyRules()DefaultHarmonicColorModelclone()intcomponentToRGB(float h, float s, float b)java.awt.Colorget(int index)intgetBase()java.awt.color.ColorSpacegetColorSpace()java.lang.ObjectgetElementAt(int index)intgetSize()booleanisAdjusting()voidremoveAllRules()voidremovePropertyChangeListener(java.beans.PropertyChangeListener listener)voidremovePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)float[]RGBtoComponent(int rgb, float[] hsb)voidset(int index, java.awt.Color newValue)voidsetBase(int newValue)voidsetColorSpace(java.awt.color.ColorSpace newValue)voidsetSize(int newValue)intsize()-
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, getListDataListeners, getListeners, removeListDataListener
-
-
-
-
Method Detail
-
setSize
public void setSize(int newValue)
- Specified by:
setSizein interfaceHarmonicColorModel
-
size
public int size()
- Specified by:
sizein interfaceHarmonicColorModel
-
isAdjusting
public boolean isAdjusting()
- Specified by:
isAdjustingin interfaceHarmonicColorModel
-
set
public void set(int index, java.awt.Color newValue)- Specified by:
setin interfaceHarmonicColorModel
-
applyRules
public void applyRules()
- Specified by:
applyRulesin interfaceHarmonicColorModel
-
get
public java.awt.Color get(int index)
- Specified by:
getin interfaceHarmonicColorModel
-
add
public boolean add(java.awt.Color c)
- Specified by:
addin interfaceHarmonicColorModel
-
setBase
public void setBase(int newValue)
- Specified by:
setBasein interfaceHarmonicColorModel
-
getBase
public int getBase()
- Specified by:
getBasein interfaceHarmonicColorModel
-
RGBtoComponent
public float[] RGBtoComponent(int rgb, float[] hsb)- Specified by:
RGBtoComponentin interfaceHarmonicColorModel
-
componentToRGB
public int componentToRGB(float h, float s, float b)- Specified by:
componentToRGBin interfaceHarmonicColorModel
-
getSize
public int getSize()
- Specified by:
getSizein interfacejavax.swing.ListModel
-
getElementAt
public java.lang.Object getElementAt(int index)
- Specified by:
getElementAtin interfacejavax.swing.ListModel
-
getColorSpace
public java.awt.color.ColorSpace getColorSpace()
- Specified by:
getColorSpacein interfaceHarmonicColorModel
-
addRule
public void addRule(HarmonicRule newValue)
- Specified by:
addRulein interfaceHarmonicColorModel
-
removeAllRules
public void removeAllRules()
- Specified by:
removeAllRulesin interfaceHarmonicColorModel
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
- Specified by:
addPropertyChangeListenerin interfaceHarmonicColorModel
-
addPropertyChangeListener
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
- Specified by:
removePropertyChangeListenerin interfaceHarmonicColorModel
-
removePropertyChangeListener
public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
-
clone
public DefaultHarmonicColorModel clone()
- Overrides:
clonein classjava.lang.Object
-
setColorSpace
public void setColorSpace(java.awt.color.ColorSpace newValue)
- Specified by:
setColorSpacein interfaceHarmonicColorModel
-
-
DataMelt 3.0 © DataMelt by jWork.ORG