java.lang.Object
org.jhotdraw8.draw.css.value.CssColor
org.jhotdraw8.draw.css.value.SystemCssColor
- All Implemented Interfaces:
Paintable
Represents a system color in a cascading stylesheet.
References:
- CSS Color Module Level 4, System Colors
- w3.org/
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColorstatic final @NonNull SystemCssColor -
Constructor Summary
ConstructorsConstructorDescriptionSystemCssColor(@NonNull String name, @NonNull javafx.scene.paint.Color color) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisSystemColor(@NonNull String name) Returns true if the given name is a known system color.static @NonNull SystemCssColorCreates a system color for the given name.
-
Field Details
-
CANVAS
-
CANVAS_TEXT
-
LINK_TEXT
-
VISITED_TEXT
-
ACTIVE_TEXT
-
BUTTON_FACE
-
BUTTON_TEXT
-
BUTTON_BORDER
-
FIELD
-
FIELD_TEXT
-
HIGHLIGHT
-
HIGHLIGHT_TEXT
-
MARK
-
MARK_TEXT
-
GRAY_TEXT
-
ACTIVE_BORDER
-
ACTIVE_CAPTION
-
APP_WORKSPACE
-
BACKGROUND
-
BUTTON_HIGHLIGHT
-
BUTTON_SHADOW
-
CAPTION_TEXT
-
INACTIVE_BORDER
-
INACTIVE_CAPTION
-
INACTIVE_CAPTION_TEXT
-
INFO_BACKGROUND
-
INFO_TEXT
-
MENU
-
MENU_TEXT
-
SCROLLBAR
-
THREE_D_DARK_SHADOW
-
THREE_D_FACE
-
THREE_D_HIGHLIGHT
-
THREE_D_LIGHT_SHADOW
-
THREE_D_SHADOW
-
WINDOW
-
WINDOW_FRAME
-
WINDOW_TEXT
-
-
Constructor Details
-
SystemCssColor
-
-
Method Details
-
of
Creates a system color for the given name.The name is not case sensitive.
If the name is unknown, then null is returned.
- Parameters:
name- the name of the system color- Returns:
- the system color or null
-
isSystemColor
Returns true if the given name is a known system color.The name is not case sensitive.
- Parameters:
name- a name- Returns:
- true if known
-