SwingHyperlink
class SwingHyperlink(val sourceRange: SwingHyperlinkTextRange, val dependencyRange: SwingHyperlinkTextRange, val action: SwingHyperlinkAction, val uri: String? = null, val presentation: SwingHyperlinkPresentation = SwingHyperlinkPresentation.DEFAULT, val activation: SwingHyperlinkActivation = SwingHyperlinkActivation.MODIFIER, val consumedThrough: SwingHyperlinkTextPosition = dependencyRange.end, val providerOrder: Int = 0)
Immutable discovered occurrence, independent of viewport/action-array positions.
sourceRange identifies highlighted text; dependencyRange includes every character determining discovery or navigation, including token boundaries. consumedThrough is the ordered-content position consumed to produce this result, which may highlight an earlier line. Coordinates can precede the current request; the retained owner validates them against captured source. uri is an optional complete copyable destination, never display fragments. Objects/styles/actions may allocate during discovery. Providers must not mutate them after reporting; action runs on the EDT only on activation.
Constructors
Link copied to clipboard
constructor(sourceRange: SwingHyperlinkTextRange, dependencyRange: SwingHyperlinkTextRange, action: SwingHyperlinkAction, uri: String? = null, presentation: SwingHyperlinkPresentation = SwingHyperlinkPresentation.DEFAULT, activation: SwingHyperlinkActivation = SwingHyperlinkActivation.MODIFIER, consumedThrough: SwingHyperlinkTextPosition = dependencyRange.end, providerOrder: Int = 0)