de.muntjak.tinylookandfeel.util
Class HSBReference
java.lang.Object
de.muntjak.tinylookandfeel.util.SBReference
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.
| 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 |
| 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 |
hue
protected int hue
preserveGrey
protected boolean preserveGrey
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 -
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