JHotDraw 7.4.1

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 $Id: SimpleHarmonicRule.java 527 2009-06-07 14:28:19Z rawcoder $

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-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.