Klasse ColorGradient
java.lang.Object
ch.nolix.system.element.base.AbstractElement
ch.nolix.system.gui.colorgradient.ColorGradient
- Alle implementierten Schnittstellen:
IElement, IColorGradient
A
ColorGradient is not mutable.- Autor:
- Silvan Wyss
-
Feldübersicht
Felder -
Methodenübersicht
Modifikator und TypMethodeBeschreibungstatic ColorGradientfromSpecification(INode<?> specification) IContainer<INode<?>> static ColorGradientwithColors(Color color1, Color color2) static ColorGradientwithDirectionAndColors(Direction direction, Color color1, Color color2) Von Klasse geerbte Methoden AbstractElement
equals, getSpecification, hashCode, toStringVon Schnittstelle geerbte Methoden 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.
-