KetraTerm
API · v0.3.0All versions

SwingHyperlinkDetector

Host-provided visible-viewport hyperlink detector.

The reusable Swing terminal calls this outside painting and mouse movement, after visible render-cache text has been snapshotted. Implementations may allocate and may call host/IDE link-discovery APIs, but must not touch Swing component state directly. Reported offsets are UTF-16 offsets within the supplied line text.

context declares whether detection depends on individual logical lines or the complete visible viewport. Detectors must not depend on earlier requests.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Text context required by detection and its actions, fixed for this detector's lifetime.

Functions

Link copied to clipboard

Detects hyperlinks in request and reports them to sink.