Package org.springframework.boot.ansi
Class AnsiColors
java.lang.Object
org.springframework.boot.ansi.AnsiColors
Utility for working with
AnsiColor in the context of AWT Colors.- Since:
- 1.4.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumBit depths supported by this class. -
Constructor Summary
ConstructorsConstructorDescriptionAnsiColors(AnsiColors.BitDepth bitDepth) Create a newAnsiColorsinstance with the specified bit depth. -
Method Summary
Modifier and TypeMethodDescriptionfindClosest(Color color) Find the closestANSI colorto the given AWTColor.
-
Constructor Details
-
AnsiColors
Create a newAnsiColorsinstance with the specified bit depth.- Parameters:
bitDepth- the required bit depth
-
-
Method Details
-
findClosest
Find the closestANSI colorto the given AWTColor.- Parameters:
color- the AWT color- Returns:
- the closest ANSI color
-