public class Word extends TextElement<String>
Represents relatively positioned rectangle which contains single word.
Constructor and Description |
---|
Word(String word,
double x,
double y,
double width,
double height,
List<Character> characters)
Initializes new instance of
Word class. |
public Word(String word, double x, double y, double width, double height, List<Character> characters)
Initializes new instance of Word
class.
word
- The word.x
- The X coordinate of the highest left point on the page layout where the rectangle that contains word begins.y
- The Y coordinate of the highest left point on the page layout where the rectangle that contains word begins.width
- The width of the rectangle which contains the word.height
- The height of the rectangle which contains the word.characters
- The characters contained by the word.IllegalArgumentException
- Thrown when word
is null or empty.IllegalArgumentException
- Thrown when characters
is null.Copyright © 2020. All rights reserved.