Verified Owner
Top Fields Constructors Methods
org.jabref.gui.util

public Class SelectableTextFlow

extends TextFlow
Class Inheritance
Known Direct Subclasses
org.jabref.gui.util.component.MarkdownTextFlow
Imports
javafx.geometry.Point2D, javafx.scene.Cursor, .Node, javafx.scene.control.Hyperlink, javafx.scene.input.MouseEvent, javafx.scene.layout.Pane, javafx.scene.paint.Color, javafx.scene.shape.Path, .PathElement, javafx.scene.text.HitInfo, .Text, .TextFlow, org.jabref.gui.clipboard.ClipBoardManager, com.airhacks.afterburner.injection.Injector, org.jspecify.annotations.Nullable

Field Summary

Modifier and TypeField and Description
private final ClipBoardManager
private @Nullable HitInfo
private boolean
private boolean
private final Pane
private @Nullable Path
private @Nullable HitInfo

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public int
getSelectionEndIndex()

Returns the end index of the selection.

public int
getSelectionStartIndex()

Returns the start index of the selection.

private String
public boolean
private void
private void
private void
private void
private void
public void
private void
Inherited from javafx.scene.text.TextFlow:
caretShapecomputeMinHeightcomputePrefHeightcomputePrefWidthgetBaselineOffsetgetCaretShapegetClassCssMetaDatagetContentBiasgetCssMetaDatagetHitInfogetLayoutInfogetLineSpacinggetRangeShapegetStrikeThroughShapegetTabSizegetTabStopPolicygetTextAlignmentgetUnderlineShapehitTestlayoutChildrenlineSpacingPropertyqueryAccessibleAttributerangeShaperequestLayoutsetLineSpacingsetTabSizesetTabStopPolicysetTextAlignmentsetWidthtabSizePropertytabStopPolicyPropertytextAlignmentPropertyunderlineShapeusesMirroring

Field Detail

clipBoardManagerback to summary
private final ClipBoardManager clipBoardManager
endHitback to summary
private @Nullable HitInfo endHit
isDraggingback to summary
private boolean isDragging
justFinishedDragback to summary
private boolean justFinishedDrag
parentPaneback to summary
private final Pane parentPane
selectionPathback to summary
private @Nullable Path selectionPath
startHitback to summary
private @Nullable HitInfo startHit

Constructor Detail

SelectableTextFlowback to summary
public SelectableTextFlow(Pane parent)

Method Detail

clearSelectionback to summary
public void clearSelection()
copySelectedTextback to summary
public void copySelectedText()
getSelectionEndIndexback to summary
public int getSelectionEndIndex()

Returns the end index of the selection. Assumes that the selection is active.

getSelectionStartIndexback to summary
public int getSelectionStartIndex()

Returns the start index of the selection. Assumes that the selection is active.

getTextFlowContentback to summary
private String getTextFlowContent()
isSelectionActiveback to summary
public boolean isSelectionActive()
onMouseClickedback to summary
private void onMouseClicked(MouseEvent event)
onMouseDraggedback to summary
private void onMouseDragged(MouseEvent event)
onMousePressedback to summary
private void onMousePressed(MouseEvent event)
onMouseReleasedback to summary
private void onMouseReleased(MouseEvent event)
removeHighlightback to summary
private void removeHighlight()
selectAllback to summary
public void selectAll()
updateSelectionHighlightback to summary
private void updateSelectionHighlight()