Gets the unique identifier for the trace
The trace ID
Gets the current X value from the trace
The current X value or null if not available
Moves the trace to the position that matches the given X value
The X value to move to
True if the position was found and set, false otherwise
OptionalgetGet the current Y value from the trace. Optional method implemented by traces that support Y value preservation during layer switching.
The current Y value or null if not available
OptionalmoveMove to a specific X value and find the closest position with the given Y value. Optional method implemented by traces that support preserving both X and Y values during layer switching.
The X value to move to
The Y value to find the closest matching position for
true if the move was successful, false otherwise
Notify observers that the trace is out of bounds
Resets the trace to initial entry state
Notifies all observers with a specific state
The trace state to send to observers
OptionalonHandle switching from another trace. Called by Context when switching layers. Traces can implement this to handle special layer switching behavior (e.g., preserving Y values).
IMPORTANT CONTRACT:
Moves the trace to a specific point based on x and y coordinates.
The x coordinate
The y coordinate
OptionalgetGets extrema targets for navigation. Optional method implemented by traces that support extrema navigation.
Array of extrema targets
OptionalnavigateNavigate to a specific extrema target. Optional method implemented by traces that support extrema navigation.
The extrema target to navigate to
Interface representing a trace with navigation and observation capabilities