Top Inners Fields Constructors Methods
com.dlsc.gemsfx.skins

public Class TextViewSkin

extends SkinBase<TextView>
Class Inheritance
Imports
com.dlsc.gemsfx.TextView, javafx.geometry.Orientation, .Point2D, javafx.scene.Cursor, .Node, javafx.scene.control.ContextMenu, .SkinBase, javafx.scene.input.KeyCodeCombination, .KeyEvent, .MouseButton, javafx.scene.layout.Region, javafx.scene.shape.Path, .PathElement, javafx.scene.text.HitInfo, .Text, .TextFlow, org.apache.commons.lang3.StringUtils

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final TextViewSkin.SelectableText

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected double
computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computeMaxHeight.

Computes the maximum allowable height of the Skin, based on the provided width.

protected double
computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computeMinHeight.

Computes the minimum allowable height of the Skin, based on the provided width.

protected double
computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computePrefHeight.

Calculates the preferred height of this SkinBase.

Inherited from javafx.scene.control.SkinBase:
computeBaselineOffsetcomputeMaxWidthcomputeMinWidthcomputePrefWidthconsumeMouseEventsdisposeexecuteAccessibleActiongetChildrengetClassCssMetaDatagetCssMetaDatagetNodegetSkinnablelayoutChildrenlayoutInArealayoutInArealayoutInAreapositionInAreapositionInAreapseudoClassStateChangedqueryAccessibleAttributeregisterChangeListenerregisterInvalidationListenerregisterListChangeListenersnappedBottomInsetsnappedLeftInsetsnappedRightInsetsnappedTopInsetsnapPositionsnapPositionXsnapPositionYsnapSizesnapSizeXsnapSizeYsnapSpacesnapSpaceXsnapSpaceYunregisterChangeListenersunregisterInvalidationListenersunregisterListChangeListeners

Field Detail

selectableTextback to summary
private final TextViewSkin.SelectableText selectableText

Constructor Detail

TextViewSkinback to summary
public TextViewSkin(TextView control)

Method Detail

computeMaxHeightback to summary
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computeMaxHeight.

Doc from javafx.scene.control.SkinBase.computeMaxHeight.

Computes the maximum allowable height of the Skin, based on the provided width.

Annotations
@Override
computeMinHeightback to summary
protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computeMinHeight.

Doc from javafx.scene.control.SkinBase.computeMinHeight.

Computes the minimum allowable height of the Skin, based on the provided width.

Annotations
@Override
computePrefHeightback to summary
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computePrefHeight.

Doc from javafx.scene.control.SkinBase.computePrefHeight.

Calculates the preferred height of this SkinBase. The default implementation calculates this height as the height of the area occupied by its managed children when they are positioned at their current positions at their preferred heights.

Annotations
@Override
com.dlsc.gemsfx.skins back to summary

private final Class TextViewSkin.SelectableText

extends TextFlow
Class Inheritance

Field Summary

Modifier and TypeField and Description
private int
private int
private int
private final Text
private final TextView
private final Path

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public String
private StringBuilder
private void
private boolean
isInvalidIndex(StringBuilder string, int charIndex)

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

Field Detail

mouseDragStartPosback to summary
private int mouseDragStartPos
selectionEndPosback to summary
private int selectionEndPos
selectionStartPosback to summary
private int selectionStartPos
textback to summary
private final Text text
textViewback to summary
private final TextView textView
wrappingPathback to summary
private final Path wrappingPath

Constructor Detail

SelectableTextback to summary
public SelectableText(TextView textView)

Method Detail

clearback to summary
public void clear()
getSelectedTextAsStringback to summary
public String getSelectedTextAsString()
getTextFlowContentAsStringback to summary
private StringBuilder getTextFlowContentAsString()
initListenersback to summary
private void initListeners()
isInvalidIndexback to summary
private boolean isInvalidIndex(StringBuilder string, int charIndex)
performSelectionback to summary
private void performSelection()
removeSelectionback to summary
private void removeSelection()
selectAllback to summary
public void selectAll()
selectParagraphback to summary
private void selectParagraph(HitInfo hit)
selectWordback to summary
private void selectWord(HitInfo hit)