Schnittstelle IColor
- Alle Superschnittstellen:
IElement
- Alle bekannten Implementierungsklassen:
Color
A
IColor
represents a true color with an alpha value. A true color
consists of a blue, green and red value that are integers in [0, 255]. So, a
IColor
consists of a blue, green, red and alpha value that are
integers in [0, 255].- Version:
- 2022-05-28
- Autor:
- Silvan
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdouble
int
double
int
double
int
double
int
boolean
boolean
boolean
boolean
int
long
toLong()
withAlphaValue
(int alphaValue) withFloatingPointAlphaValue
(double floatingPointAlphaValue) Von Schnittstelle geerbte Methoden ch.nolix.systemapi.elementapi.baseapi.IElement
getAttributes, getSpecification, toFormatedString, toXml
-
Methodendetails
-
getAlphaPercentage
double getAlphaPercentage()- Gibt zurück:
- the alpha value of the current
IColor
as percentage. A percentage is a number in the range [0.0, 1.0].
-
getAlphaValue
int getAlphaValue()- Gibt zurück:
- the alpha value of the current
IColor
.
-
getBluePercentage
double getBluePercentage()- Gibt zurück:
- the blue value of the current
IColor
as percentage. A percentage is a number in the range [0.0, 1.0].
-
getBlueValue
int getBlueValue()- Gibt zurück:
- the blue value of the current
IColor
.
-
getColorNameOrHexadecimalString
String getColorNameOrHexadecimalString() -
getGreenPercentage
double getGreenPercentage()- Gibt zurück:
- the green value of the current
IColor
as percentage. A percentage is a number in the range [0.0, 1.0].
-
getGreenValue
int getGreenValue()- Gibt zurück:
- the green value of the current
IColor
.
-
getInvertedColor
IColor getInvertedColor() -
getRedPercentage
double getRedPercentage()- Gibt zurück:
- the red value of the current
IColor
as percentage. A percentage is a number in the range [0.0, 1.0].
-
getRedValue
int getRedValue()- Gibt zurück:
- the red value of the current
IColor
.
-
hasFullAlphaValue
boolean hasFullAlphaValue()- Gibt zurück:
- true if the current
IColor
has a full alpha value.
-
hasFullBlueValue
boolean hasFullBlueValue()- Gibt zurück:
- true if the current
IColor
has a full blue value.
-
hasFullGreenValue
boolean hasFullGreenValue()- Gibt zurück:
- true if the current
IColor
has a full green value.
-
hasFullRedValue
boolean hasFullRedValue()- Gibt zurück:
- true if the current
IColor
has a full red value.
-
toAlphaRedGreenBlueInt
int toAlphaRedGreenBlueInt()- Gibt zurück:
- an integer representation of the current
IColor
with the schema alpha-red-green-blue.
-
toHexadecimalString
String toHexadecimalString() -
toHexadecimalStringWithAlphaValue
String toHexadecimalStringWithAlphaValue() -
toLong
long toLong()- Gibt zurück:
- a long representation of the current
IColor
.
-
withAlphaValue
-
withFloatingPointAlphaValue
-
withFullAlphaValue
IColor withFullAlphaValue()
-