Package com.atlassian.confluence.themes
Class AbstractColourScheme
- java.lang.Object
-
- com.atlassian.confluence.themes.AbstractColourScheme
-
- All Implemented Interfaces:
ColourScheme
- Direct Known Subclasses:
AUIDefaultColorScheme
,BaseColourScheme
,ChainedColourScheme
public abstract class AbstractColourScheme extends Object implements ColourScheme
-
-
Field Summary
-
Fields inherited from interface com.atlassian.confluence.themes.ColourScheme
BORDER, BREADCRUMBS_TEXT, DEPRECATED_KEYS, HEADER_BUTTON_BASE_BACKGROUND, HEADER_BUTTON_TEXT, HEADING_TEXT, LINK, MENU_ITEM_SELECTED_BACKGROUND, MENU_ITEM_SELECTED_TEXT, MENU_ITEM_TEXT, MENU_SELECTED_BACKGROUND, NAV_BACKGROUND, NAV_SELECTED_BACKGROUND, NAV_SELECTED_TEXT, NAV_TEXT, ORDERED_KEYS, SEARCH_FIELD_BACKGROUND, SEARCH_FIELD_TEXT, SPACE_NAME, TOP_BAR, TOP_BAR_MENU_ITEM_TEXT, TOP_BAR_MENU_SELECTED_BACKGROUND, TOP_BAR_MENU_SELECTED_TEXT
-
-
Constructor Summary
Constructors Constructor Description AbstractColourScheme()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object object)
String
get(String colourName, double lightnessDelta)
int
hashCode()
static int
hslToRgb(float[] hsl)
Deprecated.since 5.10boolean
isDefaultColourScheme()
static void
rgbToHsl(int rgb, float[] hsl)
Deprecated.since 5.10-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.themes.ColourScheme
get
-
-
-
-
Method Detail
-
get
public String get(String colourName, double lightnessDelta)
- Specified by:
get
in interfaceColourScheme
- Parameters:
colourName
- name of the colour to retrievelightnessDelta
- value to add or deduct from the current lightness of the colour. Can be negative.
-
rgbToHsl
@Deprecated public static void rgbToHsl(int rgb, float[] hsl)
Deprecated.since 5.10This method does not take alpha channel into account.- Parameters:
rgb
-hsl
-
-
hslToRgb
@Deprecated public static int hslToRgb(float[] hsl)
Deprecated.since 5.10This method does not take alpha channel into account- Parameters:
hsl
-- Returns:
- rgb value
-
equals
public boolean equals(Object object)
- Specified by:
equals
in interfaceColourScheme
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceColourScheme
- Overrides:
hashCode
in classObject
-
isDefaultColourScheme
public boolean isDefaultColourScheme()
- Specified by:
isDefaultColourScheme
in interfaceColourScheme
-
-