Skip to content

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.

ReturnsSignatureSummary
SnapshotUIBridgecreate() factoryCreates the bridge.

PropertyTypeDefaultSummary
interfaceScaledouble1DSets the interface scale of every UI of the bridge and returns the bridge.
Inherited from WindowUIBridge (4)

background · hoverColor · hoverInfo · hoverBorderColor

Redefined defaults:

PropertyDefault hereInherited default
backgroundSnapshotUIBridge.BACKGROUNDColor.BLACK in WindowUIBridge

ReturnsSignatureSummary
doublegetInterfaceScale(UI ui)Returns the interface scale set by the scale command, 1D by default.
Inherited from WindowUIBridge (1)

drawHover

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

Inherited from IUIBridge (1)

closeAll

SnapshotUIBridge create() factory

Creates the bridge.

  • this interfaceScale(double interfaceScale) fluent

Default: 1D

Sets the interface scale of every UI of the bridge and returns the bridge.

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

Report a problem with this page