public class GraphicsCharacterString extends AbstractGraphicsCoord
AbstractAFPObject.Category, AbstractAFPObject.Type| Modifier and Type | Field and Description |
|---|---|
protected static int |
MAX_STR_LEN
Up to 255 bytes of character data
|
coords, relativeLOG, SF_CLASS, SF_HEADER_LENGTH| Constructor and Description |
|---|
GraphicsCharacterString(String str,
int x,
int y,
CharacterSet charSet)
Constructor (absolute positioning)
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDataLength()
Returns the data length of this structured field
|
String |
toString() |
void |
writeToStream(OutputStream os)
DataStream objects must implement the writeToStream()
method to write its data to the given OutputStream
|
addCoords, isRelativegetNamecopySF, copySF, truncate, writeChunksToStream, writeObjectsprotected static final int MAX_STR_LEN
public GraphicsCharacterString(String str, int x, int y, CharacterSet charSet)
str - the character stringx - the x coordinatey - the y coordinatecharSet - the character setpublic int getDataLength()
getDataLength in interface StructuredDatagetDataLength in class AbstractGraphicsCoordpublic void writeToStream(OutputStream os) throws IOException
writeToStream in interface StreamablewriteToStream in class AbstractGraphicsCoordos - the outputsteam streamIOException - an I/O exception of some sort has occurred.public String toString()
toString in class AbstractGraphicsCoordCopyright © 2023 Apache Software Foundation. All rights reserved.