public static class Chr.Cmd
extends Object
This static class is included as a subordinate to the Chr class as a convenience for developers to make it easier to find in the documentation.
Modifier and Type | Field and Description |
---|---|
static int |
BG_ARGB
Specifies the background as an ARGB colour, which also includes the alpha
channel blending value that specifies the level of opacity.
|
static int |
BG_ARGB_INT
Specifies the background as an ARGB colour integer, which also includes the
alpha channel blending value that specifies the level of opacity.
|
static int |
BG_BGRA
Specifies the background as an BGRA colour, which also includes the alpha
channel blending value that specifies the level of opacity.
|
static int |
BG_BGRA_INT
Specifies the background as an BGRA colour integer, which also includes the
alpha channel blending value that specifies the level of opacity.
|
static int |
BG_RGB
Specifies the background as an RGB colour.
|
static int |
BG_RGB_INT
Specifies the background as an RGB colour integer.
|
static int |
BG_VGA
Specifies the background colour by its VGA text mode colour index number,
which must be within the range of 0 through 15 (additional bits will be
ignored).
|
static int |
BLACK
The colour BLACK. Also VGA text mode colour index 0.
|
static int |
BLINK_CLEAR
Clear the BLINK attribute setting.
|
static int |
BLINK_OFF
Disable the BLINK attribute.
|
static int |
BLINK_ON
Enable the BLINK attribute.
|
static int |
BLUE
The colour BLUE. Also VGA text mode colour index 1.
|
static int |
BRIGHT_BLUE
The colour BRIGHT_BLUE. Also VGA text mode colour index 9.
|
static int |
BRIGHT_CYAN
The colour BRIGHT_CYAN. Also VGA text mode colour index 11.
|
static int |
BRIGHT_GREEN
An alias for LIME.
|
static int |
BRIGHT_RED
The colour BRIGHT_RED. Also VGA text mode colour index 12.
|
static int |
BRIGHT_WHITE
The colour WHITE. Also VGA text mode colour index 15.
|
static int |
BROWN
The colour BROWN. Also VGA text mode colour index 6.
|
static int |
CYAN
The colour CYAN. Also VGA text mode colour index 3.
|
static int |
FG_ARGB
Specifies the foreground as an ARGB colour, which also includes the alpha
channel blending value that specifies the level of opacity.
|
static int |
FG_ARGB_INT
Specifies the foreground as an ARGB colour integer, which also includes the
alpha channel blending value that specifies the level of opacity.
|
static int |
FG_BGRA
Specifies the foreground as an BGRA colour, which also includes the alpha
channel blending value that specifies the level of opacity.
|
static int |
FG_BGRA_INT
Specifies the foreground as an BGRA colour integer, which also includes the
alpha channel blending value that specifies the level of opacity.
|
static int |
FG_RGB
Specifies the foreground as an RGB colour.
|
static int |
FG_RGB_INT
Specifies the foreground as an RGB colour integer.
|
static int |
FG_VGA
Specifies the foreground colour by its VGA text mode colour index number,
which must be within the range of 0 through 15 (additional bits will be
ignored).
|
static int |
GRAY
An alias for GREY.
|
static int |
GREEN
The colour GREEN. Also VGA text mode colour index 2.
|
static int |
GREY
The colour GREY. Also VGA text mode colour index 8.
|
static int |
HIDDEN_CLEAR
Clear the HIDDEN attribute.
|
static int |
HIDDEN_OFF
Disable the HIDDEN attribute.
|
static int |
HIDDEN_ON
Enable the HIDDEN attribute.
|
static int |
LIME
The colour LIME. Also VGA text mode colour index 10.
|
static int |
PINK
The colour PINK. Also VGA text mode colour index 13.
|
static int |
PURPLE
The colour PURPLE. Also VGA text mode colour index 5.
|
static int |
RED
The colour RED. Also VGA text mode colour index 4.
|
static int |
REVERSE_CLEAR
Clear the REVERSE attribute.
|
static int |
REVERSE_OFF
Disable the REVERSE attribute.
|
static int |
REVERSE_ON
Enable the REVERSE attribute.
|
static int |
STRIKE_CLEAR
Clear the STRIKE attribute.
|
static int |
STRIKE_OFF
Disable the STRIKE attribute.
|
static int |
STRIKE_ON
Enable the STRIKE attribute.
|
static int |
TRANSPARENT_CLEAR
Clear the TRANSPARENT attribute.
|
static int |
TRANSPARENT_OFF
Disable the TRANSPARENT attribute.
|
static int |
TRANSPARENT_ON
Enable the TRANSPARENT attribute.
|
static int |
UNDERLINE_CLEAR
Clear the UNDERLINE attribute.
|
static int |
UNDERLINE_OFF
Disable the UNDERLINE attribute.
|
static int |
UNDERLINE_ON
Enable the UNDERLINE attribute.
|
static int |
WHITE
The colour WHITE. Also VGA text mode colour index 7.
|
static int |
YELLOW
The colour YELLOW. Also VGA text mode colour index 14.
|
Modifier and Type | Method and Description |
---|---|
static int |
colorToARGB(javafx.scene.paint.Color c)
Converts a javafx.scene.paint.Color object to an ARGB-formatted integer.
|
static int |
colorToBGRA(javafx.scene.paint.Color c)
Converts a javafx.scene.paint.Color object to a BGRA-formatted integer.
|
public static final int BG_ARGB
Arguments:
FG_VGA
,
Constant Field Valuespublic static final int BG_ARGB_INT
Arguments:
BG_VGA
,
Constant Field Valuespublic static final int BG_BGRA
Arguments:
BG_VGA
,
Constant Field Valuespublic static final int BG_BGRA_INT
Arguments:
BG_VGA
,
Constant Field Valuespublic static final int BG_RGB
Arguments:
BG_VGA
,
Constant Field Valuespublic static final int BG_RGB_INT
Arguments:
BG_VGA
,
Constant Field Valuespublic static final int BG_VGA
These are the standard 16 basic colours, which are also provided by name as constant ("static final") values, and should suffice for remaining historically consistent with actual text-mode application colours.
Arguments:
public static final int BLACK
public static final int BLINK_CLEAR
Arguments: None
public static final int BLINK_OFF
Arguments: None
public static final int BLINK_ON
Arguments: None
public static final int BLUE
public static final int BRIGHT_BLUE
public static final int BRIGHT_CYAN
public static final int BRIGHT_GREEN
public static final int BRIGHT_RED
public static final int BRIGHT_WHITE
public static final int BROWN
public static final int CYAN
public static final int FG_ARGB
Arguments:
FG_VGA
,
Constant Field Valuespublic static final int FG_ARGB_INT
Arguments:
FG_VGA
,
Constant Field Valuespublic static final int FG_BGRA
Arguments:
FG_VGA
,
Constant Field Valuespublic static final int FG_BGRA_INT
Arguments:
FG_VGA
,
Constant Field Valuespublic static final int FG_RGB
Arguments:
FG_VGA
,
Constant Field Valuespublic static final int FG_RGB_INT
Arguments:
FG_VGA
,
Constant Field Valuespublic static final int FG_VGA
These are the standard 16 basic colours, which are also provided by name as constant ("static final") values, and should suffice for remaining historically consistent with actual text-mode application colours.
Arguments:
public static final int GRAY
public static final int GREEN
public static final int GREY
public static final int HIDDEN_CLEAR
Arguments: None
public static final int HIDDEN_OFF
Arguments: None
public static final int HIDDEN_ON
Arguments: None
public static final int LIME
public static final int PINK
public static final int PURPLE
public static final int RED
public static final int REVERSE_CLEAR
Arguments: None
public static final int REVERSE_OFF
Arguments: None
public static final int REVERSE_ON
Arguments: None
public static final int STRIKE_CLEAR
Arguments: None
public static final int STRIKE_OFF
Arguments: None
public static final int STRIKE_ON
Arguments: None
public static final int TRANSPARENT_CLEAR
Arguments: None
public static final int TRANSPARENT_OFF
Arguments: None
public static final int TRANSPARENT_ON
Arguments: None
public static final int UNDERLINE_CLEAR
Arguments: None
public static final int UNDERLINE_OFF
Arguments: None
public static final int UNDERLINE_ON
Arguments: None
public static final int WHITE
public static final int YELLOW
public static int colorToARGB(javafx.scene.paint.Color c)
c
- The colour to convertpublic static int colorToBGRA(javafx.scene.paint.Color c)
c
- The colour to convert