de.muntjak.tinylookandfeel.util
Class HSBReference

java.lang.Object
  extended by de.muntjak.tinylookandfeel.util.SBReference
      extended by de.muntjak.tinylookandfeel.util.HSBReference

public class HSBReference
extends SBReference

HSBReference describes a (mutable) color, specified by a reference color and values for brightness, hue and saturation.


Field Summary
protected  int hue
           
protected  boolean preserveGrey
           
 
Fields inherited from class de.muntjak.tinylookandfeel.util.SBReference
ABS_COLOR, absoluteIcon, BACK_COLOR, bri, color, DIS_COLOR, FRAME_COLOR, icon, locked, MAIN_COLOR, ref, referenceColor, sat, SUB1_COLOR, SUB2_COLOR, SUB3_COLOR, SUB4_COLOR, SUB5_COLOR, SUB6_COLOR, SUB7_COLOR, SUB8_COLOR
 
Constructor Summary
HSBReference(HSBReference other)
          Copy-constructor.
HSBReference(int hue, int sat, int bri, int ref)
          Constructor for icon colorizers.
 
Method Summary
 int getHue()
           
 boolean isPreserveGrey()
           
 void load(java.io.DataInputStream in)
           
 void save(java.io.DataOutputStream out)
           
 void setHue(int newHue)
           
 void setPreserveGrey(boolean b)
           
 java.lang.String toString()
           
 void update(HSBReference other)
           
 void update(HSBReference other, java.util.Vector referenceColors)
           
 
Methods inherited from class de.muntjak.tinylookandfeel.util.SBReference
copy, getAbsoluteIcon, getBrightness, getColor, getIcon, getNumReferences, getReference, getReferenceColor, getReferencedColor, getReferenceString, getSaturation, isAbsoluteColor, isLocked, isReferenceColor, loadDummyData, printReferences, reset, setBrightness, setColor, setColor, setLocked, setReference, setSaturation, update, update, update, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hue

protected int hue

preserveGrey

protected boolean preserveGrey
Constructor Detail

HSBReference

public HSBReference(int hue,
                    int sat,
                    int bri,
                    int ref)
Constructor for icon colorizers.

Parameters:
hue -
sat -
bri -
ref -

HSBReference

public HSBReference(HSBReference other)
Copy-constructor.

Parameters:
other -
Method Detail

update

public void update(HSBReference other)

update

public void update(HSBReference other,
                   java.util.Vector referenceColors)

getHue

public int getHue()

setHue

public void setHue(int newHue)

load

public void load(java.io.DataInputStream in)
          throws java.io.IOException
Overrides:
load in class SBReference
Throws:
java.io.IOException

save

public void save(java.io.DataOutputStream out)
          throws java.io.IOException
Overrides:
save in class SBReference
Throws:
java.io.IOException

isPreserveGrey

public boolean isPreserveGrey()

setPreserveGrey

public void setPreserveGrey(boolean b)

toString

public java.lang.String toString()
Overrides:
toString in class SBReference