Package com.oorian.css
Enum Class PointerEvents
- All Implemented Interfaces:
Serializable,Comparable<PointerEvents>,Constable
CSS pointer-events property values for controlling pointer interactions.
The pointer-events property sets whether an element reacts to pointer events (such as clicks and hovers). When set to none, the element becomes invisible to pointer events.
Common Values:
- auto: Element reacts to pointer events normally (default)
- none: Element does not react to pointer events
- visiblePainted: SVG only - reacts when painted
- visibleFill: SVG only - reacts when fill is visible
- visibleStroke: SVG only - reacts when stroke is visible
Usage:
overlay.setPointerEvents(PointerEvents.NONE);
button.setPointerEvents(PointerEvents.AUTO);
- Since:
- 2024
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSVG only: always reacts to pointer events.Element reacts to pointer events normally (default).SVG only: reacts when fill is set (regardless of visibility).Inherits from parent element.Sets to default value.Element does not react to pointer events.SVG only: reacts when painted (regardless of visibility).Rolls back to the value defined by a previous cascade origin.Rolls back to the value defined in the previous cascade layer.SVG only: reacts when stroke is set (regardless of visibility).Resets the property to its inherited value or initial value.SVG only: reacts when visibility is visible.SVG only: reacts when visibility is visible and has fill.SVG only: reacts when visibility is visible and painted.SVG only: reacts when visibility is visible and has stroke. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the CSS value string.toString()Returns the CSS value string.static PointerEventsReturns the enum constant of this class with the specified name.static PointerEvents[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
Element reacts to pointer events normally (default). -
NONE
Element does not react to pointer events. -
VISIBLE_PAINTED
SVG only: reacts when visibility is visible and painted. -
VISIBLE_FILL
SVG only: reacts when visibility is visible and has fill. -
VISIBLE_STROKE
SVG only: reacts when visibility is visible and has stroke. -
VISIBLE
SVG only: reacts when visibility is visible. -
PAINTED
SVG only: reacts when painted (regardless of visibility). -
FILL
SVG only: reacts when fill is set (regardless of visibility). -
STROKE
SVG only: reacts when stroke is set (regardless of visibility). -
ALL
SVG only: always reacts to pointer events. -
INITIAL
Sets to default value. -
INHERIT
Inherits from parent element. -
UNSET
Resets the property to its inherited value or initial value. -
REVERT
Rolls back to the value defined by a previous cascade origin. -
REVERT_LAYER
Rolls back to the value defined in the previous cascade layer.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
Returns the CSS value string.- Returns:
- the CSS value
-
toString
Returns the CSS value string.- Overrides:
toStringin classEnum<PointerEvents>- Returns:
- the CSS value
-