modules/graphics/src/main/java/javafx/scene/text/TextFlow.java

Print this page
rev 9240 : 8076423: JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization


  25 
  26 package javafx.scene.text;
  27 
  28 import java.util.ArrayList;
  29 import java.util.Collections;
  30 import java.util.List;
  31 import javafx.beans.property.DoubleProperty;
  32 import javafx.beans.property.ObjectProperty;
  33 import javafx.geometry.HPos;
  34 import javafx.geometry.Insets;
  35 import javafx.geometry.NodeOrientation;
  36 import javafx.geometry.Orientation;
  37 import javafx.geometry.VPos;
  38 import javafx.scene.AccessibleAttribute;
  39 import javafx.scene.AccessibleRole;
  40 import javafx.scene.Node;
  41 import javafx.scene.layout.Pane;
  42 import javafx.css.StyleableDoubleProperty;
  43 import javafx.css.StyleableObjectProperty;
  44 import javafx.css.CssMetaData;
  45 import com.sun.javafx.css.converters.EnumConverter;
  46 import com.sun.javafx.css.converters.SizeConverter;
  47 import com.sun.javafx.geom.BaseBounds;
  48 import com.sun.javafx.geom.Point2D;
  49 import com.sun.javafx.geom.RectBounds;
  50 import com.sun.javafx.scene.text.GlyphList;
  51 import com.sun.javafx.scene.text.TextLayout;
  52 import com.sun.javafx.scene.text.TextLayoutFactory;
  53 import com.sun.javafx.scene.text.TextSpan;
  54 import com.sun.javafx.tk.Toolkit;
  55 import javafx.css.Styleable;
  56 import javafx.css.StyleableProperty;
  57 
  58 /**
  59  * TextFlow is special layout designed to lay out rich text.
  60  * It can be used to layout several {@link Text} nodes in a single text flow.
  61  * The TextFlow uses the text and the font of each {@link Text} node inside of it
  62  * plus it own width and text alignment to determine the location for each child.
  63  * A single {@link Text} node can span over several lines due to wrapping and
  64  * the visual location of {@link Text} node can differ from the logical location
  65  * due to bidi reordering.
  66  *




  25 
  26 package javafx.scene.text;
  27 
  28 import java.util.ArrayList;
  29 import java.util.Collections;
  30 import java.util.List;
  31 import javafx.beans.property.DoubleProperty;
  32 import javafx.beans.property.ObjectProperty;
  33 import javafx.geometry.HPos;
  34 import javafx.geometry.Insets;
  35 import javafx.geometry.NodeOrientation;
  36 import javafx.geometry.Orientation;
  37 import javafx.geometry.VPos;
  38 import javafx.scene.AccessibleAttribute;
  39 import javafx.scene.AccessibleRole;
  40 import javafx.scene.Node;
  41 import javafx.scene.layout.Pane;
  42 import javafx.css.StyleableDoubleProperty;
  43 import javafx.css.StyleableObjectProperty;
  44 import javafx.css.CssMetaData;
  45 import javafx.css.converter.EnumConverter;
  46 import javafx.css.converter.SizeConverter;
  47 import com.sun.javafx.geom.BaseBounds;
  48 import com.sun.javafx.geom.Point2D;
  49 import com.sun.javafx.geom.RectBounds;
  50 import com.sun.javafx.scene.text.GlyphList;
  51 import com.sun.javafx.scene.text.TextLayout;
  52 import com.sun.javafx.scene.text.TextLayoutFactory;
  53 import com.sun.javafx.scene.text.TextSpan;
  54 import com.sun.javafx.tk.Toolkit;
  55 import javafx.css.Styleable;
  56 import javafx.css.StyleableProperty;
  57 
  58 /**
  59  * TextFlow is special layout designed to lay out rich text.
  60  * It can be used to layout several {@link Text} nodes in a single text flow.
  61  * The TextFlow uses the text and the font of each {@link Text} node inside of it
  62  * plus it own width and text alignment to determine the location for each child.
  63  * A single {@link Text} node can span over several lines due to wrapping and
  64  * the visual location of {@link Text} node can differ from the logical location
  65  * due to bidi reordering.
  66  *