public class HSBColor extends Object
Constructor and Description |
---|
HSBColor(Color color) |
HSBColor(int hue,
int saturation,
int brightness) |
HSBColor(String hexString) |
Modifier and Type | Method and Description |
---|---|
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() |
public HSBColor(Color color)
public HSBColor(String hexString)
public HSBColor(int hue, int saturation, int brightness)
public int getHue()
public int getSaturation()
public int getBrightness()
public Color getColor()
public String getHexString()
public float getPerceivedBrightness()
public boolean hasTransparency()
public HSBColor lightenByPercentage(float percentage)
public HSBColor lightenByAmount(int amount)
public HSBColor darkenByPercentage(float percentage)
public HSBColor darkenByAmount(int amount)
public HSBColor saturateByPercentage(float percentage)
public HSBColor saturateByAmount(int amount)
public HSBColor desaturateByPercentage(float percentage)
public HSBColor desaturateByAmount(int amount)
Copyright © 2002-2019 Atlassian. All Rights Reserved.