public class GXPrintObject extends Object
GXPrinter.getPrint()
Constructor and Description |
---|
GXPrintObject() |
Modifier and Type | Method and Description |
---|---|
int |
completeBuffer()
Completes the buffer using the printer session (if alive).
|
String |
getBuffer()
Returns the buffer that currently exists in the object
as string.
|
String |
getBuffer(int size)
Retrieves a portion of the buffer.
|
int |
getBufferLength()
Returns the length of the current buffer.
|
int |
getError() |
String |
getErrorMessage() |
GXIPageInterface |
getPageAt(int index)
Returns the page at the specified index.
|
int |
getPageCount()
Returns the number of pages in the current print buffer, as they
were analyzed by ApplinX.
|
GXIPageInterface[] |
getPages()
Returns an array of GXPage objects according to the current
buffer in the print object.
|
GXSCS[] |
getSCSElements()
Returns an array of GXSCS objects that hold all the printer controls
that were retrieved along with the current buffer.
|
int |
getSeqPrintNumber()
Returns the sequential print number ?
the number of prints received from the host since
the beginning of the current session.
|
boolean |
isComplete()
Returns true if the print object holds the complete buffer.
|
boolean |
isCurrentPrint()
Returns true if this print object is the printer session?s current print object.
|
boolean |
isEmpty()
Returns true if the current print object is empty.
|
boolean |
isPassThroughData() |
void |
setCharactersPerLine(int maxCharactersPerLine)
Sets the number of characters per page.
|
void |
setLinesPerPage(int maxLinesPerPage)
Sets the number of lines per page.
|
String |
toString() |
public boolean isPassThroughData()
public boolean isCurrentPrint()
public boolean isComplete()
public boolean isEmpty()
public int getSeqPrintNumber()
public String getBuffer()
public String getBuffer(int size)
size
- - optional - retrieves a portion of the buffer.public GXIPageInterface getPageAt(int index)
index
- - starts from 0.public GXIPageInterface[] getPages()
public int getPageCount()
public int getBufferLength()
public GXSCS[] getSCSElements()
public int completeBuffer()
public int getError()
public String getErrorMessage()
public void setLinesPerPage(int maxLinesPerPage)
maxLinesPerPage
- the maximum lines per page.public void setCharactersPerLine(int maxCharactersPerLine)
maxCharactersPerLine
- the maximum characters per line.Copyright 2021 Software AG. All rights reserved. Use is subject to license terms.