public class ControlFragment extends Object implements TextFragment
| Modifier and Type | Field and Description |
|---|---|
protected static FontDescriptor |
DEFAULT_FONT_DESCRIPTOR |
| Modifier | Constructor and Description |
|---|---|
protected |
ControlFragment(String text,
FontDescriptor fontDescriptor) |
protected |
ControlFragment(String name,
String text,
FontDescriptor fontDescriptor,
Color color) |
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor() |
FontDescriptor |
getFontDescriptor() |
float |
getHeight() |
protected String |
getName() |
String |
getText() |
float |
getWidth() |
String |
toString() |
protected static final FontDescriptor DEFAULT_FONT_DESCRIPTOR
protected ControlFragment(String text, FontDescriptor fontDescriptor)
protected ControlFragment(String name, String text, FontDescriptor fontDescriptor, Color color)
public float getWidth()
throws IOException
getWidth in interface AreaIOException - by pdfboxpublic float getHeight()
throws IOException
getHeight in interface AreaIOException - by pdfboxpublic FontDescriptor getFontDescriptor()
getFontDescriptor in interface TextFragmentprotected String getName()
public String getText()
getText in interface TextFragmentpublic Color getColor()
getColor in interface TextFragmentCopyright © 2021. All rights reserved.