Package ch.nolix.system.graphic.color
Klasse ColorGradient
java.lang.Object
ch.nolix.system.element.base.AbstractElement
ch.nolix.system.graphic.color.ColorGradient
- Alle implementierten Schnittstellen:
IElement,IColorGradient
A
ColorGradient is not mutable.- Version:
- 2016-08-01
- Autor:
- Silvan Wyss
-
Feldübersicht
Felder -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ColorGradientfromSpecification(INode<?> specification) IContainer<INode<?>> static ColorGradientwithColors(Color color1, Color color2) static ColorGradientwithDirectionAndColors(Alignment direction, Color color1, Color color2) Von Klasse geerbte Methoden ch.nolix.system.element.base.AbstractElement
equals, getSpecification, hashCode, toStringVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.nolix.systemapi.element.base.IElement
getSpecification, toFormatedString, toXml
-
Felddetails
-
DEFAULT_DIRECTION
-
DEFAULT_COLOR1
-
DEFAULT_COLOR2
-
-
Methodendetails
-
fromSpecification
- Parameter:
specification-- Gibt zurück:
- a new
ColorGradientfrom the given specification. - Löst aus:
InvalidArgumentException- if the given specification is not valid.
-
withColors
- Parameter:
color1-color2-- Gibt zurück:
- a new
ColorGradientwith the given color1 and color2. - Löst aus:
ArgumentIsNullException- if the given color1 is null.ArgumentIsNullException- if the given color2 is null.
-
withDirectionAndColors
- Parameter:
direction-color1-color2-- Gibt zurück:
- a new
ColorGradientwith the given direction, color1 and color2. - Löst aus:
ArgumentIsNullException- if the given direction is null.ArgumentIsNullException- if the given color 1 is null.ArgumentIsNullException- if the given color 2 is null.
-
getAttributes
- Angegeben von:
getAttributesin SchnittstelleIElement- Gibt zurück:
- the attributes of the current
IElement.
-
getColor1
- Angegeben von:
getColor1in SchnittstelleIColorGradient- Gibt zurück:
- the color1 of the current
IColorGradient.
-
getColor2
- Angegeben von:
getColor2in SchnittstelleIColorGradient- Gibt zurück:
- the color2 of the current
IColorGradient.
-
getDirection
- Angegeben von:
getDirectionin SchnittstelleIColorGradient- Gibt zurück:
- the direction of the current
IColorGradient.
-