public class SimpleHarmonicRule extends AbstractHarmonicRule
baseIndex, derivedIndices
Constructor and Description |
---|
SimpleHarmonicRule(int componentIndex,
float difference,
int baseIndex,
int... derivedIndices) |
Modifier and Type | Method and Description |
---|---|
void |
apply(HarmonicColorModel model) |
void |
colorChanged(HarmonicColorModel model,
int index,
java.awt.Color oldValue,
java.awt.Color newValue) |
int |
getComponentIndex() |
float |
getConstraint(float constraint) |
void |
setComponentIndex(int newValue) |
void |
setConstraint(float constraint) |
getBaseIndex, getDerivedIndices, setBaseIndex, setDerivedIndices
public SimpleHarmonicRule(int componentIndex, float difference, int baseIndex, int... derivedIndices)
public void setConstraint(float constraint)
public float getConstraint(float constraint)
public void setComponentIndex(int newValue)
public int getComponentIndex()
public void apply(HarmonicColorModel model)
public void colorChanged(HarmonicColorModel model, int index, java.awt.Color oldValue, java.awt.Color newValue)