org.jhotdraw.color
Class SimpleHarmonicRule
java.lang.Object
org.jhotdraw.color.AbstractHarmonicRule
org.jhotdraw.color.SimpleHarmonicRule
- All Implemented Interfaces:
- HarmonicRule
public class SimpleHarmonicRule
- extends AbstractHarmonicRule
SimpleHarmonicRule.
- Version:
- $Id: SimpleHarmonicRule.java 717 2010-11-21 12:30:57Z rawcoder $
- Author:
- Werner Randelshofer
Constructor Summary |
SimpleHarmonicRule(int componentIndex,
float difference,
int baseIndex,
int... derivedIndices)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleHarmonicRule
public SimpleHarmonicRule(int componentIndex,
float difference,
int baseIndex,
int... derivedIndices)
setConstraint
public void setConstraint(float constraint)
getConstraint
public float getConstraint(float constraint)
setComponentIndex
public void setComponentIndex(int newValue)
getComponentIndex
public int getComponentIndex()
apply
public void apply(HarmonicColorModel model)
colorChanged
public void colorChanged(HarmonicColorModel model,
int index,
java.awt.Color oldValue,
java.awt.Color newValue)