JHotDraw 7.2

org.jhotdraw.color
Class SimpleHarmonicRule

java.lang.Object
  extended by org.jhotdraw.color.AbstractHarmonicRule
      extended by org.jhotdraw.color.SimpleHarmonicRule
All Implemented Interfaces:
HarmonicRule

public class SimpleHarmonicRule
extends AbstractHarmonicRule

SimpleHarmonicRule.

Author:
Werner Randelshofer  @version 1.0 Apr 27, 2008 Created.

Field Summary
 
Fields inherited from class org.jhotdraw.color.AbstractHarmonicRule
baseIndex, derivedIndices
 
Constructor Summary
SimpleHarmonicRule(int componentIndex, float difference, int baseIndex, int... derivedIndices)
           
 
Method Summary
 void apply(HarmonicColorModel model)
           
 void colorChanged(HarmonicColorModel model, int index, CompositeColor oldValue, CompositeColor newValue)
           
 int getComponentIndex()
           
 float getConstraint(float constraint)
           
 void setComponentIndex(int newValue)
           
 void setConstraint(float constraint)
           
 
Methods inherited from class org.jhotdraw.color.AbstractHarmonicRule
getBaseIndex, getDerivedIndices, setBaseIndex, setDerivedIndices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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,
                         CompositeColor oldValue,
                         CompositeColor newValue)

Copyright 1996-2009 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.