Package limn.demo
Record Class SiteShowcase.Entry
java.lang.Object
java.lang.Record
limn.demo.SiteShowcase.Entry
- Record Components:
id- stable slug and file name; treat as publishedlocale- UI language for this capture. Applied BEFORE the scene is constructed: a scene measures the strings it is built with, so a language set afterwards is a relayout the capture has no reason to wait forfilmed- whether the capture drives a pointer over this screen and writes a frame per step. Off for every screen but one: what a whole-window capture is evidence of is the screen, and a film costs well over a hundred files and a share of the capture's wall clock. Turn it on only when the screen's claim is a change a still cannot showsettles- whether this screen carries a live performance footer the shutter must prime before it is worth photographing: seesettling()
- Enclosing class:
SiteShowcase
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(String id, String title, Locale locale, boolean paletteInvariant, boolean warmUpPass, boolean filmed, boolean settles, Function<Theme, Scene> builder) The flag-bearing case, kept at the old primary's shape so its callers state the flags and nothing else.Entry(String id, String title, Locale locale, boolean paletteInvariant, Function<Theme, Scene> builder) Palette-invariant, captured once: the common case for a scene that pins its own theme.The ordinary case: the scene is built once per palette and looks different in each.Entry(String id, String title, Locale locale, LayoutDirection direction, boolean paletteInvariant, boolean warmUpPass, boolean filmed, boolean settles, Function<Theme, Scene> builder) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thebuilderrecord component.Returns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfilmed()Returns the value of thefilmedrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.locale()Returns the value of thelocalerecord component.booleanReturns the value of thepaletteInvariantrecord component.rtl()The same entry, captured under a right-to-left layout axis.booleansettles()Returns the value of thesettlesrecord component.settling()The same entry, marked as one the shutter must wait on.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thewarmUpPassrecord component.
-
Constructor Details
-
Entry
The ordinary case: the scene is built once per palette and looks different in each. -
Entry
public Entry(String id, String title, Locale locale, boolean paletteInvariant, Function<Theme, Scene> builder) Palette-invariant, captured once: the common case for a scene that pins its own theme. -
Entry
public Entry(String id, String title, Locale locale, boolean paletteInvariant, boolean warmUpPass, boolean filmed, boolean settles, Function<Theme, Scene> builder) The flag-bearing case, kept at the old primary's shape so its callers state the flags and nothing else. Left to right: the one right-to-left entry says so throughrtl(), because a direction is never derived from the locale beside it — the capture list follows the same rule the toolkit does (ADR 032). -
Entry
public Entry(String id, String title, Locale locale, LayoutDirection direction, boolean paletteInvariant, boolean warmUpPass, boolean filmed, boolean settles, Function<Theme, Scene> builder) Creates an instance of aEntryrecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentlocale- the value for thelocalerecord componentdirection- the value for thedirectionrecord componentpaletteInvariant- the value for thepaletteInvariantrecord componentwarmUpPass- the value for thewarmUpPassrecord componentfilmed- the value for thefilmedrecord componentsettles- the value for thesettlesrecord componentbuilder- the value for thebuilderrecord component
-
-
Method Details
-
rtl
The same entry, captured under a right-to-left layout axis. -
settling
The same entry, marked as one the shutter must wait on. Preserves every other axis, the direction included.Only a screen with something on a real clock in it. The settle is wall-clock, it is measured in seconds, and it is paid once per palette, so marking a screen that does not need it is the most effective way to make this capture slow: it was blanket before, and the screens that did not need it were most of the run.
One thing buys it today: a live performance footer, whose gauges latch on a once-per-second heartbeat that frames cannot hurry. The driver used to wait 2.6 s of wall clock per shot for two beats; it now asks the footer for a sample once the warm-up frames have run, which is the same second reading a real interval apart, and photographs on the frame after.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
locale
Returns the value of thelocalerecord component.- Returns:
- the value of the
localerecord component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
paletteInvariant
public boolean paletteInvariant()Returns the value of thepaletteInvariantrecord component.- Returns:
- the value of the
paletteInvariantrecord component
-
warmUpPass
public boolean warmUpPass()Returns the value of thewarmUpPassrecord component.- Returns:
- the value of the
warmUpPassrecord component
-
filmed
public boolean filmed()Returns the value of thefilmedrecord component.- Returns:
- the value of the
filmedrecord component
-
settles
public boolean settles()Returns the value of thesettlesrecord component.- Returns:
- the value of the
settlesrecord component
-
builder
Returns the value of thebuilderrecord component.- Returns:
- the value of the
builderrecord component
-