Package de.xima.fc.css.builder
Enum ECssPointerEvent
- java.lang.Object
-
- java.lang.Enum<ECssPointerEvent>
-
- de.xima.fc.css.builder.ECssPointerEvent
-
- All Implemented Interfaces:
CssDefaultValue,Serializable,Comparable<ECssPointerEvent>
public enum ECssPointerEvent extends Enum<ECssPointerEvent> implements CssDefaultValue
Constants with the pre-defined values for the CSS propertypointer-events.The pointer-events CSS property sets under what circumstances (if any) a particular graphic element can become the target of pointer events.
- Author:
- XIMA MEDIA GmbH
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLSVG only (experimental for HTML).AUTOThe element behaves as it would if the pointer-events property were not specified.FILLSVG only.NONEThe element is never the target of pointer events; however, pointer events may target its descendant elements if those descendants have pointer-events set to some other value.PAINTEDSVG only (experimental for HTML).STROKESVG only.VISIBLESVG only (experimental for HTML).VISIBLE_FILLSVG only.VISIBLE_PAINTEDSVG only (experimental for HTML).VISIBLE_STROKESVG only.
-
Field Summary
-
Fields inherited from interface de.xima.fc.css.builder.CssDefaultValue
INHERIT, INITIAL, REVERT, REVERT_LAYER, UNSET
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()Stringvalue()static ECssPointerEventvalueOf(String name)Returns the enum constant of this type with the specified name.static ECssPointerEvent[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final ECssPointerEvent ALL
SVG only (experimental for HTML). The element can only be the target of a pointer event when the pointer is over the interior (i.e., 'fill') or the perimeter (i.e., 'stroke') of the element. The values of thefill,stroke, andvisibilityproperties do not affect event processing.
-
AUTO
public static final ECssPointerEvent AUTO
The element behaves as it would if the pointer-events property were not specified. In SVG content, this value and the valuevisiblePaintedhave the same effect.
-
FILL
public static final ECssPointerEvent FILL
SVG only. The element can only be the target of a pointer event when the pointer is over the interior (i.e., 'fill') of the element. The values of thefillandvisibilityproperties do not affect event processing.
-
NONE
public static final ECssPointerEvent NONE
The element is never the target of pointer events; however, pointer events may target its descendant elements if those descendants have pointer-events set to some other value. In these circumstances, pointer events will trigger event listeners on this parent element as appropriate on their way to/from the descendant during the event capture/bubble phases.
-
PAINTED
public static final ECssPointerEvent PAINTED
SVG only (experimental for HTML). The element can only be the target of a pointer event when e.g. the mouse cursor is over the interior (i.e., 'fill') of the element and thefillproperty is set to a value other thannone, or when the mouse cursor is over the perimeter (i.e., 'stroke') of the element and thestrokeproperty is set to a value other thannone. The value of thevisibilityproperty does not affect event processing.
-
STROKE
public static final ECssPointerEvent STROKE
SVG only. The element can only be the target of a pointer event when the pointer is over the perimeter (i.e., 'stroke') of the element. The values of thestrokeandvisibilityproperties do not affect event processing.
-
VISIBLE
public static final ECssPointerEvent VISIBLE
SVG only (experimental for HTML). The element can be the target of a pointer event when thevisibilityproperty is set tovisibleand e.g. the mouse cursor is over either the interior (i.e., 'fill') or the perimeter (i.e., 'stroke') of the element. The values of thefillandstrokedo not affect event processing.
-
VISIBLE_FILL
public static final ECssPointerEvent VISIBLE_FILL
SVG only. The element can only be the target of a pointer event when thevisibilityproperty is set tovisibleand when e.g. a mouse cursor is over the interior (i.e., fill) of the element. The value of thefillproperty does not affect event processing.
-
VISIBLE_PAINTED
public static final ECssPointerEvent VISIBLE_PAINTED
SVG only (experimental for HTML). The element can only be the target of a pointer event when thevisibilityproperty is set tovisibleand e.g. when a mouse cursor is over the interior (i.e., 'fill') of the element and thefillproperty is set to a value other thannone, or when a mouse cursor is over the perimeter (i.e., 'stroke') of the element and the stroke property is set to a value other than none.
-
VISIBLE_STROKE
public static final ECssPointerEvent VISIBLE_STROKE
SVG only. The element can only be the target of a pointer event when thevisibilityproperty is set tovisibleand e.g. when the mouse cursor is over the perimeter (i.e., stroke) of the element. The value of thestrokeproperty does not affect event processing.
-
-
Method Detail
-
values
public static ECssPointerEvent[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ECssPointerEvent c : ECssPointerEvent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ECssPointerEvent valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<ECssPointerEvent>
-
value
public String value()
- Returns:
- The string value of this property that can be used when creating CSS strings.
-
-