public class PlaintextDataChunk extends Object
Modifier | Constructor and Description |
---|---|
protected |
PlaintextDataChunk(String text,
String font,
boolean bold,
boolean italic,
boolean underline,
boolean strikethrough,
int x,
int y,
int w)
Creates a new text data chunk.
|
Modifier and Type | Method and Description |
---|---|
String |
getFont() |
String |
getText()
Gets the text stored in this chunk.
|
int |
getWidth()
Gets the width of the text, the number of character which should be printed.
|
int |
getX()
The column of the text start.
|
int |
getY()
Gets the row where to print the text.
|
boolean |
isBold() |
boolean |
isItalic() |
boolean |
isStrikethrough() |
boolean |
isUnderline() |
protected PlaintextDataChunk(String text, String font, boolean bold, boolean italic, boolean underline, boolean strikethrough, int x, int y, int w)
text
- the text that should be printedfont
- the font style for the textunderline
- strikethrough
- x
- the column where the text startsy
- the row of the textw
- the number of characters of the text that should be printed.public boolean isUnderline()
public boolean isStrikethrough()
public String getText()
public boolean isBold()
public boolean isItalic()
public String getFont()
public int getX()
public int getY()
public int getWidth()
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.