|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDrawTexts.SPad
public class SPad
These are subwindows of the screen: a N b W C E c S d
Field Summary | |
---|---|
static int |
a_
|
static int |
b_
|
java.awt.Color |
backgroundColor
|
static java.awt.Color |
BRIGHT_BLUED
|
static int |
c_
|
static int |
C_
|
static int |
d_
|
boolean |
drawBorders
|
static int[] |
drawSequence
Default draw sequence. |
static int |
E_
|
static int |
F_
For detection self test do1b Make this more consistent |
java.awt.Color |
focusColor
Focus color |
java.awt.Color |
focusForeColor
Talk color |
static int |
focusIx
Which pad has focus. |
java.awt.Color |
foreTextColor
|
java.awt.Font |
ft
|
java.awt.Graphics |
g
|
java.awt.Image |
img
|
java.awt.image.ImageObserver |
iobs
|
static int |
N_
|
static int |
none_
When used, none_ means "no pad" |
static int |
P_
|
int |
paintImgYPosition
|
static int |
S_
|
java.lang.StringBuffer |
sb
Keeps user's input line. |
static SPad[] |
sPad
|
int |
talkH
Talk Zone fields and methods used when user prints. |
int |
talkW
Talk Zone fields and methods used when user prints. |
int |
talkX
Talk Zone fields and methods used when user prints. |
int |
talkY
Talk Zone fields and methods used when user prints. |
static int |
W_
|
int |
xL
Total dimensions. |
int |
xR
|
int |
yL
Total dimensions. |
int |
yR
|
Constructor Summary | |
---|---|
SPad(int Ix,
int xR,
int yR,
int xL,
int yL)
The idea is to be able to preset dimensions before graphics context is even yet known. |
Method Summary | |
---|---|
boolean |
addChar(char c)
Appends char to buffer if space available. |
void |
Clear()
Clears and prepares screen for drawing. |
void |
ClearTerminal()
Sets backgroundColor to terminal area. |
void |
ClearTerminalFromCurrentPosition()
|
void |
ClearTerminalFromCurrentPosition(java.awt.Color c)
It does extra step along y, and restores bk. |
void |
doScrollString(int direction)
|
static void |
drawPads()
|
void |
DrewBorder()
Prepares screen for drawing. |
void |
fromTopLine(java.lang.String s)
Starts print from first line |
static void |
internalInit()
initialize implicit-collection of SPads |
static void |
paintTalk()
|
void |
releaseGraphics()
|
static void |
releaseGraphicsFromCollection()
|
boolean |
removeChar()
|
void |
removeFocus()
|
void |
restoreTextColor()
|
void |
restoreToDefaultFont()
Restore changed current font |
boolean |
scrollImage(int direction)
Return true if image not null to block text scroll |
void |
setAndScroll(java.lang.String[] s,
int sBodyLength,
int startIx,
int startFromLine,
java.awt.Font ft,
java.awt.Color cl)
Numeration begins from startFromLine=1. |
void |
setDefaultFont(java.awt.Font ft)
Set Default and Current font |
void |
setFocus()
Set SPad to listen to user's input |
void |
setFont(java.awt.Font ft)
Font can be edited only after graphics is supplied. |
void |
setScrollGraphics(java.awt.Font ft,
java.awt.Color cl)
|
void |
setToPaintImage(java.awt.Image imgP,
java.awt.image.ImageObserver iobsP)
|
void |
skipLines(int n)
Skip n lines and prints nothing |
void |
supplyGraphics(java.awt.Graphics g)
|
static void |
supplyGraphicsToCollection(int iX,
java.awt.Image img,
java.awt.Graphics g,
java.awt.image.ImageObserver iobs,
java.awt.Font dflFont)
|
void |
talkPrint()
|
void |
wr(java.lang.String s)
Print string to the next position, redraw from the top, if no space: |
void |
wrc(java.lang.String s)
Clear and write from top |
void |
wrm(java.lang.String s)
Display multilined text with \n as line separator |
void |
wrm(java.lang.String s,
int startFromLine)
Display multilined text with \n as line separator starting from startFromLine from the top. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.awt.Color BRIGHT_BLUED
public static final int none_
public static final int a_
public static final int W_
public static final int c_
public static final int N_
public static final int C_
public static final int S_
public static final int b_
public static final int E_
public static final int d_
public static final int P_
public static final int F_
public static SPad[] sPad
public java.awt.Color foreTextColor
public java.awt.Color backgroundColor
public boolean drawBorders
public int xL
public int yL
public int xR
public int yR
public java.awt.Graphics g
public java.awt.Image img
public java.awt.image.ImageObserver iobs
public java.awt.Font ft
public int talkX
public int talkY
public int talkW
public int talkH
public java.lang.StringBuffer sb
public java.awt.Color focusColor
public java.awt.Color focusForeColor
public static int[] drawSequence
public static int focusIx
public int paintImgYPosition
Constructor Detail |
---|
public SPad(int Ix, int xR, int yR, int xL, int yL)
Method Detail |
---|
public static void internalInit()
public static void drawPads()
public static void paintTalk()
public static void supplyGraphicsToCollection(int iX, java.awt.Image img, java.awt.Graphics g, java.awt.image.ImageObserver iobs, java.awt.Font dflFont)
public static void releaseGraphicsFromCollection()
public void supplyGraphics(java.awt.Graphics g)
public void releaseGraphics()
public void setFont(java.awt.Font ft)
public void setDefaultFont(java.awt.Font ft)
public void restoreToDefaultFont()
public void Clear()
public void DrewBorder()
public void setFocus()
public void removeFocus()
public boolean addChar(char c)
public boolean removeChar()
public void talkPrint()
public void wrc(java.lang.String s)
public void wr(java.lang.String s)
public void wrm(java.lang.String s)
public void wrm(java.lang.String s, int startFromLine)
public void setAndScroll(java.lang.String[] s, int sBodyLength, int startIx, int startFromLine, java.awt.Font ft, java.awt.Color cl)
public void setScrollGraphics(java.awt.Font ft, java.awt.Color cl)
public void doScrollString(int direction)
public void ClearTerminal()
public void ClearTerminalFromCurrentPosition()
public void ClearTerminalFromCurrentPosition(java.awt.Color c)
public void skipLines(int n)
public void fromTopLine(java.lang.String s)
public void restoreTextColor()
public boolean scrollImage(int direction)
public void setToPaintImage(java.awt.Image imgP, java.awt.image.ImageObserver iobsP)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |