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.
- Author:
- Werner Randelshofer
@version 1.0 Apr 27, 2008 Created.
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,
CompositeColor oldValue,
CompositeColor newValue)