类 AnsiColors
java.lang.Object
cn.taketoday.core.ansi.AnsiColors
Utility for working with
AnsiColor in the context of AWT Colors.- 从以下版本开始:
- 4.0
- 作者:
- Craig Burke, Ruben Dijkstra, Phillip Webb, Michael Simons
-
嵌套类概要
嵌套类修饰符和类型类说明static enumBit depths supported by this class.private static final classRepresents a color stored in LAB form. -
字段概要
字段修饰符和类型字段说明private static final int[]private static final Map<AnsiElement,AnsiColors.LabColor> private final Map<AnsiElement,AnsiColors.LabColor> -
构造器概要
构造器构造器说明AnsiColors(AnsiColors.BitDepth bitDepth) Create a newAnsiColorsinstance with the specified bit depth. -
方法概要
修饰符和类型方法说明private AnsiElementfindClosest(AnsiColors.LabColor color) findClosest(Color color) Find the closestANSI colorto the given AWTColor.private Map<AnsiElement,AnsiColors.LabColor> getLookup(AnsiColors.BitDepth bitDepth)
-
字段详细资料
-
ANSI_COLOR_MAP
-
ANSI_8BIT_COLOR_CODE_LOOKUP
private static final int[] ANSI_8BIT_COLOR_CODE_LOOKUP -
lookup
-
-
构造器详细资料
-
AnsiColors
Create a newAnsiColorsinstance with the specified bit depth.- 参数:
bitDepth- the required bit depth
-
-
方法详细资料
-
getLookup
-
findClosest
Find the closestANSI colorto the given AWTColor.- 参数:
color- the AWT color- 返回:
- the closest ANSI color
-
findClosest
-