public class ScreenPlanes extends Object
| Modifier and Type | Field and Description |
|---|---|
protected char[] |
screen |
protected char[] |
screenExtended |
| Constructor and Description |
|---|
ScreenPlanes(Screen5250 s5250,
int size) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkHotSpots() |
protected char |
getChar(int pos) |
protected int |
getCharAttr(int pos) |
protected int |
getErrorLine()
Returns the current error line number
|
protected char[] |
getPlaneData(int from,
int to,
int plane)
Return the data associated with the plane that is passed.
|
int |
GetScreen(char[] buffer,
int bufferLength,
int plane)
GetScreen retrieves the various planes associated with the presentation
space.
|
int |
GetScreen(char[] buffer,
int bufferLength,
int from,
int length,
int plane)
GetScreen retrieves the various planes associated with the presentation
space.
|
int |
GetScreen(char[] buffer,
int bufferLength,
int row,
int col,
int length,
int plane)
GetScreen retrieves the various planes associated with the presentation
space.
|
protected int |
GetScreenRect(char[] buffer,
int bufferLength,
int startPos,
int endPos,
int plane)
GetScreenRect retrieves data from the various planes associated with the
presentation space.
|
protected int |
GetScreenRect(char[] buffer,
int bufferLength,
int startRow,
int startCol,
int endRow,
int endCol,
int plane)
GetScreenRect retrieves data from the various planes associated with the
presentation space.
|
protected int |
getWhichGUI(int pos) |
protected void |
initalizeFieldPlanes() |
protected void |
initalizePlanes() |
protected boolean |
isAttributePlace(int pos) |
protected boolean |
isChanged(int pos) |
protected boolean |
isErrorLineSaved() |
protected boolean |
isUseGui(int pos) |
protected void |
restoreErrorLine()
Restores the error line characters from the save buffer.
|
protected void |
saveErrorLine() |
protected void |
setChar(int pos,
char c) |
protected void |
setErrorLine(int line) |
protected void |
setScreenAttr(int pos,
int attr) |
protected void |
setScreenAttr(int pos,
int attr,
boolean isAttr) |
protected void |
setScreenCharAndAttr(int pos,
char c,
int attr,
boolean isAttr) |
protected void |
setScreenFieldAttr(int pos,
int attr) |
protected void |
setSize(int newSize) |
void |
setUseGUI(int pos,
int which) |
public ScreenPlanes(Screen5250 s5250, int size)
protected void setSize(int newSize)
protected void setErrorLine(int line)
protected int getErrorLine()
protected void saveErrorLine()
protected void restoreErrorLine()
saveErrorLine()protected boolean isErrorLineSaved()
protected void setScreenCharAndAttr(int pos,
char c,
int attr,
boolean isAttr)
protected void setScreenAttr(int pos,
int attr,
boolean isAttr)
protected void setScreenAttr(int pos,
int attr)
protected void setScreenFieldAttr(int pos,
int attr)
protected final void setChar(int pos,
char c)
protected final char getChar(int pos)
protected final int getCharAttr(int pos)
protected final boolean isAttributePlace(int pos)
public final void setUseGUI(int pos,
int which)
protected void initalizePlanes()
protected void initalizeFieldPlanes()
protected final int getWhichGUI(int pos)
protected final boolean isChanged(int pos)
protected final boolean isUseGui(int pos)
protected char[] getPlaneData(int from,
int to,
int plane)
from - Position from which to startto - Position to endplane - From which plane to obtain the datapublic int GetScreen(char[] buffer,
int bufferLength,
int plane)
GetScreen retrieves the various planes associated with the presentation space. The data is returned as a linear array of character values in the array provided. The array is not terminated by a null character except when data is retrieved from the text plane, in which case a single null character is appended.
The application must supply a buffer for the returned data and the length of the buffer. Data is returned starting from the beginning of the presentation space and continuing until the buffer is full or the entire plane has been copied. For text plane data, the buffer must include one extra position for the terminating null character.
buffer - bufferbufferLength - lengthplane - planepublic int GetScreen(char[] buffer,
int bufferLength,
int from,
int length,
int plane)
GetScreen retrieves the various planes associated with the presentation space. The data is returned as a linear array of character values in the array provided. The array is not terminated by a null character except when data is retrieved from the text plane, in which case a single null character is appended.
The application must supply a buffer for the returned data and the length of the buffer. Data is returned starting from the given position and continuing until the specified number of characters have been copied, the buffer is full or the entire plane has been copied. For text plane data, the buffer must include one extra position for the terminating null character.
buffer - bufferbufferLength - lengthfrom - where to startlength - where to endplane - planepublic int GetScreen(char[] buffer,
int bufferLength,
int row,
int col,
int length,
int plane)
GetScreen retrieves the various planes associated with the presentation space. The data is returned as a linear array of character values in the array provided. The array is not terminated by a null character except when data is retrieved from the text plane, in which case a single null character is appended.
The application must supply a buffer for the returned data and the length of the buffer. Data is returned starting from the given coordinates and continuing until the specified number of characters have been copied, the buffer is full, or the entire plane has been copied. For text plane data, the buffer must include one extra position for the terminating null character.
buffer - bufferbufferLength - lengthrow - row to startcol - column to startlength - lengthplane - planeprotected int GetScreenRect(char[] buffer,
int bufferLength,
int startPos,
int endPos,
int plane)
GetScreenRect retrieves data from the various planes associated with the presentation space. The data is returned as a linear array of character values in the buffer provided.
The application supplies two positions that represent opposing corners of a rectangle within the presentation space. The starting and ending positions can have any spatial relationship to each other. The data returned starts from the row containing the upper-most point to the row containing the lower-most point, and from the left-most column to the right-most column.
The specified buffer must be at least large enough to contain the number of characters in the rectangle. If the buffer is too small, no data is copied and zero is returned by the method. Otherwise, the method returns the number of characters copied.
buffer - bufferbufferLength - lengthstartPos - start positionendPos - end positionplane - planeprotected int GetScreenRect(char[] buffer,
int bufferLength,
int startRow,
int startCol,
int endRow,
int endCol,
int plane)
GetScreenRect retrieves data from the various planes associated with the presentation space. The data is returned as a linear array of character values in the buffer provided. The buffer is not terminated by a null character.
The application supplies two coordinates that represent opposing corners of a rectangle within the presentation space. The starting and ending coordinates can have any spatial relationship to each other. The data returned starts from the row containing the upper-most point to the row containing the lower-most point, and from the left-most column to the right-most column.
The specified buffer must be at least large enough to contain the number of characters in the rectangle. If the buffer is too small, no data is copied and zero is returned by the method. Otherwise, the method returns the number of characters copied.
buffer - bufferbufferLength - lengthstartRow - row to startstartCol - column to startendRow - row to endendCol - column to endplane - planeprotected boolean checkHotSpots()
Copyright © 2018. All rights reserved.