Class WeighedColor
java.lang.Object
de.xima.fc.common.graphdot.WeighedColor
- All Implemented Interfaces:
Serializable, CharSequence
A weighted color, used in color lists for gradients etc.
green;0.33
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWeighedColor(Color color, Double weight) Creates a new weighted color with the given weight. -
Method Summary
Modifier and TypeMethodDescriptiondefault charcharAt(int index) default IntStreamchars()default IntStreamfinal booleangetColor()final inthashCode()default intlength()default CharSequencesubSequence(int start, int end) toString()static WeighedColorCreates new color with no weight.static WeighedColorCreates new color with the given weight.
-
Constructor Details
-
WeighedColor
-
-
Method Details
-
getColor
- Returns:
- The color being weighted.
-
getWeight
- Returns:
- The weight of the color.
-
toString
- Specified by:
toStringin interfaceCharSequence
-
unweighed
Creates new color with no weight.- Parameters:
color- Color to use.- Returns:
- A new color with no weight.
-
weighed
Creates new color with the given weight.- Parameters:
color- Color to use.weight- Weight to use.- Returns:
- A new weighted color.
-
equals
-
hashCode
-
charAt
default char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
chars
- Specified by:
charsin interfaceCharSequence
-
codePoints
- Specified by:
codePointsin interfaceCharSequence
-
length
default int length()- Specified by:
lengthin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-