public class TextImage extends Object implements Image
| Constructor and Description |
|---|
TextImage(String text)
Creates a TextImage with the default size.
|
TextImage(String text,
Dimension size)
Creates a TextImage.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
String |
getDescription()
Retrieves some text that describes the image, for example the document filename or title.
|
String |
getMimeType()
Retrieves the mime type of the image - "image/jpeg", "image/gif" etc.
|
Dimension |
getSize()
Retrieves the natural size of the image.
|
void |
setDescription(String description)
Sets some text that describes the image, for example the document filename or title.
|
void |
setSize(Dimension size)
Sets the natural size of the image.
|
public TextImage(String text)
text - the text to display on the image.public String getMimeType()
getMimeType in interface ContentAccesspublic Dimension getSize()
public void setSize(Dimension size)
size - the image size.public byte[] getBytes()
getBytes in interface ContentAccesspublic String getDescription()
getDescription in interface ContentAccesspublic void setDescription(String description)
description - the short document description.Copyright © 2024. All rights reserved.