Package Torello.Browser
Class Overlay.HighlightConfig
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.Overlay.HighlightConfig
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Overlay
public static class Overlay.HighlightConfig extends BaseType implements java.io.Serializable
Configuration data for the highlighting of page elements.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/Overlay.java
- Open New Browser-Tab: Torello/Browser/Overlay.java
File Size: 15,783 Bytes Line Count: 326 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Type Properties Modifier and Type Field DOM.RGBA
borderColor
The border highlight fill color (default: transparent).String
colorFormat
The color format used to format color styles (default: hex).Overlay.ContainerQueryContainerHighlightConfig
containerQueryContainerHighlightConfig
The container query container highlight configuration (default: all transparent).DOM.RGBA
contentColor
The content box highlight fill color (default: transparent).String
contrastAlgorithm
The contrast algorithm to use for the contrast ratio (default: aa).DOM.RGBA
cssGridColor
The grid layout color (default: transparent).DOM.RGBA
eventTargetColor
The event target element highlight fill color (default: transparent).Overlay.FlexContainerHighlightConfig
flexContainerHighlightConfig
The flex container highlight configuration (default: all transparent).Overlay.FlexItemHighlightConfig
flexItemHighlightConfig
The flex item highlight configuration (default: all transparent).Overlay.GridHighlightConfig
gridHighlightConfig
The grid layout highlight configuration (default: all transparent).DOM.RGBA
marginColor
The margin highlight fill color (default: transparent).DOM.RGBA
paddingColor
The padding highlight fill color (default: transparent).DOM.RGBA
shapeColor
The shape outside fill color (default: transparent).DOM.RGBA
shapeMarginColor
The shape margin fill color (default: transparent).Boolean
showAccessibilityInfo
Whether the a11y info should be shown (default: true).Boolean
showExtensionLines
Whether the extension lines from node to the rulers should be shown (default: false).Boolean
showInfo
Whether the node info tooltip should be shown (default: false).Boolean
showRulers
Whether the rulers should be shown (default: false).Boolean
showStyles
Whether the node styles in the tooltip (default: false).
-
Constructor Summary
Constructors Constructor Description HighlightConfig(Boolean showInfo, Boolean showStyles, Boolean showRulers, Boolean showAccessibilityInfo, Boolean showExtensionLines, DOM.RGBA contentColor, DOM.RGBA paddingColor, DOM.RGBA borderColor, DOM.RGBA marginColor, DOM.RGBA eventTargetColor, DOM.RGBA shapeColor, DOM.RGBA shapeMarginColor, DOM.RGBA cssGridColor, String colorFormat, Overlay.GridHighlightConfig gridHighlightConfig, Overlay.FlexContainerHighlightConfig flexContainerHighlightConfig, Overlay.FlexItemHighlightConfig flexItemHighlightConfig, String contrastAlgorithm, Overlay.ContainerQueryContainerHighlightConfig containerQueryContainerHighlightConfig)
ConstructorHighlightConfig(JsonObject jo)
JSON Object Constructor
-
Method Summary
Generate Array that Indicates which Parameter are Optional Modifier and Type Method boolean[]
optionals()
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
Checks whether'this'
equals an input Java-Object
int
hashCode()
Generates a Hash-Code for'this'
instance
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
For Object Serialization. java.io.Serializable- See Also:
- Constant Field Values
-
showInfo
public final java.lang.Boolean showInfo
Whether the node info tooltip should be shown (default: false).
OPTIONAL
-
showStyles
public final java.lang.Boolean showStyles
Whether the node styles in the tooltip (default: false).
OPTIONAL
-
showRulers
public final java.lang.Boolean showRulers
Whether the rulers should be shown (default: false).
OPTIONAL
-
showAccessibilityInfo
public final java.lang.Boolean showAccessibilityInfo
Whether the a11y info should be shown (default: true).
OPTIONAL
-
showExtensionLines
public final java.lang.Boolean showExtensionLines
Whether the extension lines from node to the rulers should be shown (default: false).
OPTIONAL
-
contentColor
public final DOM.RGBA contentColor
The content box highlight fill color (default: transparent).
OPTIONAL
-
paddingColor
public final DOM.RGBA paddingColor
The padding highlight fill color (default: transparent).
OPTIONAL
-
borderColor
public final DOM.RGBA borderColor
The border highlight fill color (default: transparent).
OPTIONAL
-
marginColor
public final DOM.RGBA marginColor
The margin highlight fill color (default: transparent).
OPTIONAL
-
eventTargetColor
public final DOM.RGBA eventTargetColor
The event target element highlight fill color (default: transparent).
OPTIONAL
-
shapeColor
public final DOM.RGBA shapeColor
The shape outside fill color (default: transparent).
OPTIONAL
-
shapeMarginColor
public final DOM.RGBA shapeMarginColor
The shape margin fill color (default: transparent).
OPTIONAL
-
cssGridColor
public final DOM.RGBA cssGridColor
The grid layout color (default: transparent).
OPTIONAL
-
colorFormat
public final java.lang.String colorFormat
The color format used to format color styles (default: hex).
OPTIONAL
-
gridHighlightConfig
public final Overlay.GridHighlightConfig gridHighlightConfig
The grid layout highlight configuration (default: all transparent).
OPTIONAL
-
flexContainerHighlightConfig
public final Overlay.FlexContainerHighlightConfig flexContainerHighlightConfig
The flex container highlight configuration (default: all transparent).
OPTIONAL
-
flexItemHighlightConfig
public final Overlay.FlexItemHighlightConfig flexItemHighlightConfig
The flex item highlight configuration (default: all transparent).
OPTIONAL
-
contrastAlgorithm
public final java.lang.String contrastAlgorithm
The contrast algorithm to use for the contrast ratio (default: aa).
OPTIONAL
-
containerQueryContainerHighlightConfig
public final Overlay.ContainerQueryContainerHighlightConfig containerQueryContainerHighlightConfig
The container query container highlight configuration (default: all transparent).
OPTIONAL
-
-
Constructor Detail
-
HighlightConfig
public HighlightConfig (java.lang.Boolean showInfo, java.lang.Boolean showStyles, java.lang.Boolean showRulers, java.lang.Boolean showAccessibilityInfo, java.lang.Boolean showExtensionLines, DOM.RGBA contentColor, DOM.RGBA paddingColor, DOM.RGBA borderColor, DOM.RGBA marginColor, DOM.RGBA eventTargetColor, DOM.RGBA shapeColor, DOM.RGBA shapeMarginColor, DOM.RGBA cssGridColor, java.lang.String colorFormat, Overlay.GridHighlightConfig gridHighlightConfig, Overlay.FlexContainerHighlightConfig flexContainerHighlightConfig, Overlay.FlexItemHighlightConfig flexItemHighlightConfig, java.lang.String contrastAlgorithm, Overlay.ContainerQueryContainerHighlightConfig containerQueryContainerHighlightConfig)
Constructor- Parameters:
showInfo
- Whether the node info tooltip should be shown (default: false).
OPTIONALshowStyles
- Whether the node styles in the tooltip (default: false).
OPTIONALshowRulers
- Whether the rulers should be shown (default: false).
OPTIONALshowAccessibilityInfo
- Whether the a11y info should be shown (default: true).
OPTIONALshowExtensionLines
- Whether the extension lines from node to the rulers should be shown (default: false).
OPTIONALcontentColor
- The content box highlight fill color (default: transparent).
OPTIONALpaddingColor
- The padding highlight fill color (default: transparent).
OPTIONALborderColor
- The border highlight fill color (default: transparent).
OPTIONALmarginColor
- The margin highlight fill color (default: transparent).
OPTIONALeventTargetColor
- The event target element highlight fill color (default: transparent).
OPTIONALshapeColor
- The shape outside fill color (default: transparent).
OPTIONALshapeMarginColor
- The shape margin fill color (default: transparent).
OPTIONALcssGridColor
- The grid layout color (default: transparent).
OPTIONALcolorFormat
- The color format used to format color styles (default: hex).
OPTIONALgridHighlightConfig
- The grid layout highlight configuration (default: all transparent).
OPTIONALflexContainerHighlightConfig
- The flex container highlight configuration (default: all transparent).
OPTIONALflexItemHighlightConfig
- The flex item highlight configuration (default: all transparent).
OPTIONALcontrastAlgorithm
- The contrast algorithm to use for the contrast ratio (default: aa).
OPTIONALcontainerQueryContainerHighlightConfig
- The container query container highlight configuration (default: all transparent).
OPTIONAL
-
HighlightConfig
public HighlightConfig(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'HighlightConfig'
.
-
-
Method Detail
-
optionals
public boolean[] optionals()
Description copied from class:BaseType
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding aJsonObject
to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array positionTRUE
.
NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...- Specified by:
optionals
in classBaseType
- Returns:
- A
boolean[]
array whose length is precisely equal to the number of fields in the Java Object. - Code:
- Exact Method Body:
return new boolean[] { true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, };
-
equals
public boolean equals(java.lang.Object other)
Checks whether'this'
equals an input Java-Object
- Overrides:
equals
in classjava.lang.Object
- Code:
- Exact Method Body:
if (other == null) return false; if (other.getClass() != this.getClass()) return false; HighlightConfig o = (HighlightConfig) other; return Objects.equals(this.showInfo, o.showInfo) && Objects.equals(this.showStyles, o.showStyles) && Objects.equals(this.showRulers, o.showRulers) && Objects.equals(this.showAccessibilityInfo, o.showAccessibilityInfo) && Objects.equals(this.showExtensionLines, o.showExtensionLines) && Objects.equals(this.contentColor, o.contentColor) && Objects.equals(this.paddingColor, o.paddingColor) && Objects.equals(this.borderColor, o.borderColor) && Objects.equals(this.marginColor, o.marginColor) && Objects.equals(this.eventTargetColor, o.eventTargetColor) && Objects.equals(this.shapeColor, o.shapeColor) && Objects.equals(this.shapeMarginColor, o.shapeMarginColor) && Objects.equals(this.cssGridColor, o.cssGridColor) && Objects.equals(this.colorFormat, o.colorFormat) && Objects.equals(this.gridHighlightConfig, o.gridHighlightConfig) && Objects.equals(this.flexContainerHighlightConfig, o.flexContainerHighlightConfig) && Objects.equals(this.flexItemHighlightConfig, o.flexItemHighlightConfig) && Objects.equals(this.contrastAlgorithm, o.contrastAlgorithm) && Objects.equals(this.containerQueryContainerHighlightConfig, o.containerQueryContainerHighlightConfig);
-
hashCode
public int hashCode()
Generates a Hash-Code for'this'
instance- Overrides:
hashCode
in classjava.lang.Object
- Code:
- Exact Method Body:
return Objects.hashCode(this.showInfo) + Objects.hashCode(this.showStyles) + Objects.hashCode(this.showRulers) + Objects.hashCode(this.showAccessibilityInfo) + Objects.hashCode(this.showExtensionLines) + this.contentColor.hashCode() + this.paddingColor.hashCode() + this.borderColor.hashCode() + this.marginColor.hashCode() + this.eventTargetColor.hashCode() + this.shapeColor.hashCode() + this.shapeMarginColor.hashCode() + this.cssGridColor.hashCode() + Objects.hashCode(this.colorFormat) + this.gridHighlightConfig.hashCode() + this.flexContainerHighlightConfig.hashCode() + this.flexItemHighlightConfig.hashCode() + Objects.hashCode(this.contrastAlgorithm) + this.containerQueryContainerHighlightConfig.hashCode();
-
-