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.
-
-
Constructor Summary
Constructors Constructor and Description SimpleHarmonicRule(int componentIndex, float difference, int baseIndex, int... derivedIndices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapply(HarmonicColorModel model)voidcolorChanged(HarmonicColorModel model, int index, java.awt.Color oldValue, java.awt.Color newValue)intgetComponentIndex()floatgetConstraint(float constraint)voidsetComponentIndex(int newValue)voidsetConstraint(float constraint)-
Methods inherited from class org.jhotdraw.color.AbstractHarmonicRule
getBaseIndex, getDerivedIndices, setBaseIndex, setDerivedIndices
-
-
-
-
Constructor Detail
-
SimpleHarmonicRule
public SimpleHarmonicRule(int componentIndex, float difference, int baseIndex, int... derivedIndices)
-
-
Method Detail
-
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)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG