APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.jfx.incubator.scene.control.richtext

public Class HighlightShape

extends Path
Class Inheritance
Imports
java.util.ArrayList, .List, javafx.scene.Node, javafx.scene.layout.Region, javafx.scene.paint.Color, javafx.scene.shape.LineTo, .MoveTo, .Path, .PathElement, javafx.scene.text.Text, .TextFlow, com.sun.jfx.incubator.scene.control.richtext.util.RichUtils

This component gets added to TextFlow to provide various types of highlight:
  1. text highlight
  2. wavy underline

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final HighlightShape.Type

Constructor Summary

AccessConstructor and Description
public
HighlightShape(HighlightShape.Type t, int start, int end)

Method Summary

Modifier and TypeMethod and Description
private static void
addHighlight(TextFlow f, HighlightShape.Type t, int start, int end, String directStyle, String[] styles)

public static void
addTo(Region r, HighlightShape.Type t, int start, int end, Color c)

public static void
addTo(Region r, HighlightShape.Type t, int start, int end, String... styles)

private PathElement[]
private static String
private PathElement[]
private void
generateSquiggly(List<PathElement> list, double xmin, double xmax, double ycenter, double sz)

private void
Inherited from javafx.scene.shape.Path:
fillRulePropertygetElementsgetFillRulesetFillRuletoString

Field Detail

endback to summary
private final int end
startback to summary
private final int start
typeback to summary
private final HighlightShape.Type type

Constructor Detail

HighlightShapeback to summary
public HighlightShape(HighlightShape.Type t, int start, int end)

Method Detail

addHighlightback to summary
private static void addHighlight(TextFlow f, HighlightShape.Type t, int start, int end, String directStyle, String[] styles)
addToback to summary
public static void addTo(Region r, HighlightShape.Type t, int start, int end, Color c)
addToback to summary
public static void addTo(Region r, HighlightShape.Type t, int start, int end, String... styles)
createPathback to summary
private PathElement[] createPath(TextFlow f)
createStyleback to summary
private static String createStyle(HighlightShape.Type t, Color c)
generateSquigglyback to summary
private PathElement[] generateSquiggly(PathElement[] in)
generateSquigglyback to summary
private void generateSquiggly(List<PathElement> list, double xmin, double xmax, double ycenter, double sz)
updatePathback to summary
private void updatePath(TextFlow f)
com.sun.jfx.incubator.scene.control.richtext back to summary

public final Enum HighlightShape.Type

extends Enum<HighlightShape.Type>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final HighlightShape.Type
public static final HighlightShape.Type

Constructor Summary

AccessConstructor and Description
private
Type()

Method Summary

Modifier and TypeMethod and Description
public static HighlightShape.Type
public static HighlightShape.Type[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

HIGHLIGHTback to summary
public static final HighlightShape.Type HIGHLIGHT
WAVY_UNDERLINEback to summary
public static final HighlightShape.Type WAVY_UNDERLINE

Constructor Detail

Typeback to summary
private Type()

Method Detail

valueOfback to summary
public static HighlightShape.Type valueOf(String name)
valuesback to summary
public static HighlightShape.Type[] values()