SnapshotUIBridge
final class SnapshotUIBridge
Extends: WindowUIBridge
Package: dev.joid.test.snapshot · Module: tool-testkit · Source: SnapshotUIBridge.java
The UI bridge of the snapshot runner: a window UI bridge with a #323232 window background and an interface scale that the scenarios set.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
SnapshotUIBridge | create() factory | Creates the bridge. |
Properties
Section titled “Properties”| Property | Type | Default | Summary |
|---|---|---|---|
| interfaceScale | double | 1D | Sets the interface scale of every UI of the bridge and returns the bridge. |
Inherited from WindowUIBridge (4)
Redefined defaults:
| Property | Default here | Inherited default |
|---|---|---|
| background | SnapshotUIBridge.BACKGROUND | Color.BLACK in WindowUIBridge |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
double | getInterfaceScale(UI ui) | Returns the interface scale set by the scale command, 1D by default. |
Inherited from WindowUIBridge (1)
Inherited from StackUIBridge (8)
open · close · add · remove · canHandle · forceOpen · replace · canReplace
Inherited from UIBridge (16)
load · update · mouseMoved · mousePressed · mouseReleased · mouseScroll · charTyped · keyPressed · keyReleased · isKeyConsumed · draw · isOpen · isOnTop · getUiList · isScreenOpen · isOverlayHidden
Creation details
Section titled “Creation details”create
Section titled “create”SnapshotUIBridge create() factory
Creates the bridge.
Property details
Section titled “Property details”interfaceScale
Section titled “interfaceScale”this interfaceScale(double interfaceScale)fluent
Default: 1D
Sets the interface scale of every UI of the bridge and returns the bridge.
Method details
Section titled “Method details”getInterfaceScale
Section titled “getInterfaceScale”double getInterfaceScale(UI ui)
Returns the interface scale set by the scale command, 1D by default.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
