com.atlassian.jira.lookandfeel
Class HSBColor

java.lang.Object
  extended by com.atlassian.jira.lookandfeel.HSBColor

public class HSBColor
extends Object


Constructor Summary
HSBColor(Color color)
           
HSBColor(int hue, int saturation, int brightness)
           
HSBColor(String hexString)
           
 
Method Summary
 HSBColor darkenByAmount(int amount)
           
 HSBColor darkenByPercentage(float percentage)
           
 HSBColor desaturateByAmount(int amount)
           
 HSBColor desaturateByPercentage(float percentage)
           
 boolean equals(Object o)
           
 int getBrightness()
           
 Color getColor()
           
 String getHexString()
           
 int getHue()
           
 float getPerceivedBrightness()
           
 int getSaturation()
           
 int hashCode()
           
 boolean hasTransparency()
           
 HSBColor lightenByAmount(int amount)
           
 HSBColor lightenByPercentage(float percentage)
           
 HSBColor saturateByAmount(int amount)
           
 HSBColor saturateByPercentage(float percentage)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HSBColor

public HSBColor(Color color)

HSBColor

public HSBColor(String hexString)

HSBColor

public HSBColor(int hue,
                int saturation,
                int brightness)
Method Detail

getHue

public int getHue()

getSaturation

public int getSaturation()

getBrightness

public int getBrightness()

getColor

public Color getColor()

getHexString

public String getHexString()

getPerceivedBrightness

public float getPerceivedBrightness()

hasTransparency

public boolean hasTransparency()

lightenByPercentage

public HSBColor lightenByPercentage(float percentage)

lightenByAmount

public HSBColor lightenByAmount(int amount)

darkenByPercentage

public HSBColor darkenByPercentage(float percentage)

darkenByAmount

public HSBColor darkenByAmount(int amount)

saturateByPercentage

public HSBColor saturateByPercentage(float percentage)

saturateByAmount

public HSBColor saturateByAmount(int amount)

desaturateByPercentage

public HSBColor desaturateByPercentage(float percentage)

desaturateByAmount

public HSBColor desaturateByAmount(int amount)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2014 Atlassian. All Rights Reserved.