IntFunction that takes the paragraph's index as an argument and returns a node), and definitely
includes the segments of the paragraph itself. The paragraph graphic factory is often used to display
the paragraph's line number.
| Modifier and Type | Class and Description |
|---|---|
| public static class | ParagraphBox.
An opaque class representing horizontal caret offset. |
| Modifier and Type | Field and Description |
|---|---|
| private final Val | |
| private final ObjectProperty | |
| pack-priv final DoubleProperty | |
| private final Var | |
| private final Val | |
| private final ParagraphText | |
| private final BooleanProperty |
| Access | Constructor and Description |
|---|---|
| pack-priv | ParagraphBox(Paragraph<PS, SEG, S> par, BiConsumer<TextFlow, PS> applyParagraphStyle, Function<StyledSegment<SEG, S>, Node> nodeFactory)
|
| Modifier and Type | Method and Description |
|---|---|
| public final ObservableSet | |
| protected double | computeMinWidth(double ignoredHeight)
Overrides javafx. Computes the minimum width of this region. |
| protected double | computePrefHeight(double width)
Overrides javafx. Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. |
| protected double | computePrefWidth(double ignoredHeight)
Overrides javafx. Computes the preferred width of this region for the given height. |
| pack-priv void | |
| public <T extends Node & Caret> Bounds | |
| public <T extends Node & Caret> Bounds | |
| public <T extends Node & Caret> ParagraphBox. | |
| public int | |
| public int | |
| public int | |
| public int | |
| pack-priv Node | |
| pack-priv double | |
| public int | |
| public int | |
| pack-priv Paragraph | |
| public Bounds | |
| public Optional | |
| public ObjectProperty | |
| public Property | |
| public CharacterHit | |
| public CharacterHit | |
| pack-priv CharacterHit | Returns: hit info for the given x and y coordinatesHits the embedded TextFlow at the given x and y offset. |
| pack-priv CharacterHit | Returns: hit info for the given line and x coordinatex coordinate relative to the embedded TextFlow. x,index of the line in the embedded TextFlow. line)Hits the embedded TextFlow at the given line and x offset. |
| public Val | |
| public boolean | |
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout the children in this
|
| public final ObservableMap | |
| public void | |
| public EventStream | |
| public String | |
| public BooleanProperty |
| graphic | back to summary |
|---|---|
| private final Val<Node> graphic | |
| graphicFactory | back to summary |
|---|---|
| private final ObjectProperty<IntFunction<? extends Node>> graphicFactory | |
| graphicOffset | back to summary |
|---|---|
| pack-priv final DoubleProperty graphicOffset | |
| index | back to summary |
|---|---|
| private final Var<Integer> index | |
| isFolded | back to summary |
|---|---|
| private final Val<Boolean> isFolded | |
| text | back to summary |
|---|---|
| private final ParagraphText<PS, SEG, S> text | |
| wrapText | back to summary |
|---|---|
| private final BooleanProperty wrapText | |
| ParagraphBox | back to summary |
|---|---|
| pack-priv ParagraphBox(Paragraph<PS, SEG, S> par, BiConsumer<TextFlow, PS> applyParagraphStyle, Function<StyledSegment<SEG, S>, Node> nodeFactory) | |
| caretsProperty | back to summary |
|---|---|
| public final ObservableSet | |
| computeMinWidth | back to summary |
|---|---|
| protected double computeMinWidth(double ignoredHeight) Overrides javafx. Doc from javafx. Computes the minimum width of this region. Returns the sum of the left and right insets by default. region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.
| |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width) Overrides javafx. Doc from javafx. Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double ignoredHeight) Overrides javafx. Doc from javafx. Computes the preferred width of this region for the given height. Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.
| |
| dispose | back to summary |
|---|---|
| pack-priv void dispose() | |
| getCaretBounds | back to summary |
|---|---|
| public <T extends Node & Caret> Bounds getCaretBounds(T caret) | |
| getCaretBoundsOnScreen | back to summary |
|---|---|
| public <T extends Node & Caret> Bounds getCaretBoundsOnScreen(T caret) | |
| getCaretOffsetX | back to summary |
|---|---|
| public <T extends Node & Caret> ParagraphBox. | |
| getCurrentLineEndPosition | back to summary |
|---|---|
| public int getCurrentLineEndPosition(Caret caret) | |
| getCurrentLineIndex | back to summary |
|---|---|
| public int getCurrentLineIndex(Caret caret) | |
| getCurrentLineIndex | back to summary |
|---|---|
| public int getCurrentLineIndex(int position) | |
| getCurrentLineStartPosition | back to summary |
|---|---|
| public int getCurrentLineStartPosition(Caret caret) | |
| getGraphic | back to summary |
|---|---|
| pack-priv Node getGraphic() | |
| getGraphicPrefWidth | back to summary |
|---|---|
| pack-priv double getGraphicPrefWidth() | |
| getIndex | back to summary |
|---|---|
| public int getIndex() | |
| getLineCount | back to summary |
|---|---|
| public int getLineCount() | |
| getParagraph | back to summary |
|---|---|
| pack-priv Paragraph | |
| getRangeBoundsOnScreen | back to summary |
|---|---|
| public Bounds getRangeBoundsOnScreen(int from, int to) | |
| getSelectionBoundsOnScreen | back to summary |
|---|---|
| public Optional | |
| graphicFactoryProperty | back to summary |
|---|---|
| public ObjectProperty | |
| highlightTextFillProperty | back to summary |
|---|---|
| public Property | |
| hit | back to summary |
|---|---|
| public CharacterHit hit(Point2D pos) | |
| hit | back to summary |
|---|---|
| public CharacterHit hit(double x, double y) | |
| hitText | back to summary |
|---|---|
| pack-priv CharacterHit hitText(ParagraphBox. Hits the embedded TextFlow at the given x and y offset.
| |
| hitTextLine | back to summary |
|---|---|
| pack-priv CharacterHit hitTextLine(ParagraphBox. Hits the embedded TextFlow at the given line and x offset.
| |
| indexProperty | back to summary |
|---|---|
| public Val | |
| isFolded | back to summary |
|---|---|
| public boolean isFolded() | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren() Overrides javafx. Doc from javafx. Invoked during the layout pass to layout the children in this
Subclasses should override this function to layout content as needed.
| |
| selectionsProperty | back to summary |
|---|---|
| public final ObservableMap | |
| setIndex | back to summary |
|---|---|
| public void setIndex(int index) | |
| stationaryIndices | back to summary |
|---|---|
| public EventStream | |
| toString | back to summary |
|---|---|
| public String toString() Overrides javafx. Doc from javafx. Returns a string representation for the object.
| |
| wrapTextProperty | back to summary |
|---|---|
| public BooleanProperty wrapTextProperty() | |
| Modifier and Type | Field and Description |
|---|---|
| private final double |
| Access | Constructor and Description |
|---|---|
| private |
| value | back to summary |
|---|---|
| private final double value | |
| CaretOffsetX | back to summary |
|---|---|
| private CaretOffsetX(double value) | |