|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmoka.lang.Object
moka.io.Graph
The Graph class provides methods to deal with bitmaps and display. This class has many features of the Graphics class, but implements them more efficiently. However, these methods, instead of those of Graphics class, will not manage grayscale automatically.
Field Summary | |
static short |
A_AND
AND the region to draw (alias). |
static short |
A_NORMAL
Draw with destination pixels turned on (alias). |
static short |
A_OR
Draw with source pixels ORed with destination pixels (alias). |
static short |
A_REPLACE
Draw with source pixels replace destination pixels (alias). |
static short |
A_REVERSE
Draw with destination pixels turned off (alias). |
static short |
A_SHADE_H
Draw the line using a horizontal shading pattern (alias). |
static short |
A_SHADE_NS
Draw the line using a negative slope diagonal shading pattern (alias). |
static short |
A_SHADE_PS
Draw the line using a positive slope diagonal shading pattern (alias). |
static short |
A_SHADE_V
Draw the line using a vertical shading pattern (alias). |
static short |
A_SHADED
Draw with destination pixels masked so that every other pixel turned off (alias) |
static short |
A_THICK1
Draw a double thick line (alias). |
static short |
A_XOR
Draw with source pixels XORed with destination pixels (alias). |
static short |
AND_ATTR
AND the region to draw. |
static short |
NORMAL_ATTR
Draw with destination pixels turned on. |
static short |
OR_ATTR
Draw with source pixels ORed with destination pixels. |
static short |
REPLACE_ATTR
Draw with source pixels replace destination pixels. |
static short |
REVERSE_ATTR
Draw with destination pixels turned off. |
static short |
SHADE_H_ATTR
Draw the line using a horizontal shading pattern. |
static short |
SHADE_NS_ATTR
Draw the line using a negative slope diagonal shading pattern. |
static short |
SHADE_PS_ATTR
Draw the line using a positive slope diagonal shading pattern. |
static short |
SHADE_V_ATTR
Draw the line using a vertical shading pattern. |
static short |
SHADED_ATTR
Draw with destination pixels masked so that every other pixel turned off |
static short |
THICK1_ATTR
Draw a double thick line. |
static short |
XOR_ATTR
Draw with source pixels XORed with destination pixels. |
Method Summary | |
static void |
clrscr()
Clears the current display device screen. |
static void |
clrScr()
Clears the current display device screen. |
static void |
draw(short x,
short y,
char[] str,
short attr)
Draws an ANSI string on the current display device screen. |
static void |
draw(short x,
short y,
char c,
short attr)
Draws a char on the current display device screen. |
static void |
draw(short x,
short y,
double num,
short attr)
Draws a double on the current display device screen. |
static void |
draw(short x,
short y,
int num,
short attr)
Draws an int on the current display device screen. |
static void |
draw(short x,
short y,
long num,
short attr)
Draws a long on the current display device screen. |
static void |
draw(short x,
short y,
short num,
short attr)
Draws a short on the current display device screen. |
static void |
draw(short x,
short y,
java.lang.String str,
short attr)
Draws a String object on the current display device screen then finalizes the String object. |
static void |
drawChar(short x,
short y,
char c,
short attr)
Draws a char on the current display device screen. |
static void |
drawEllipse(short x,
short y,
short a,
short b,
short attr)
Draws a elipse on the current display device screen. |
static void |
drawLine(short x0,
short y0,
short x1,
short y1,
short attr)
Draws a line on the current display device screen. |
static void |
drawPix(short x,
short y,
short attr)
Draws a pixel on the current display device screen. |
static void |
drawTo(short x,
short y)
Draws a line from the current pen position (set by moveTo) on the current display device screen. |
static boolean |
getPix(short x,
short y)
Gets the status of a pixel on the current display device screen. |
static void |
moveTo(short x,
short y)
Move the current pen position. |
static void |
picVarPut(char[] SymName,
short x,
short y,
short attr)
Puts a TIOS PIC variable on the screen. |
static void |
picVarPut(java.lang.String file,
short x,
short y,
short attr)
Puts a TIOS PIC variable on the screen. |
static void |
putBitmap(moka.io.BITMAP_p b,
short x,
short y,
short attr)
Puts a BITMAP on the screen. |
static void |
putGray(java.lang.String d,
java.lang.String l,
short x,
short y,
short attr)
Puts a set of TIOS PIC variables on the screen. |
Methods inherited from class moka.lang.Object |
equals, finalize, getClassName, toString |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final short REVERSE_ATTR
public static final short NORMAL_ATTR
public static final short XOR_ATTR
public static final short SHADED_ATTR
public static final short REPLACE_ATTR
public static final short OR_ATTR
public static final short AND_ATTR
public static final short THICK1_ATTR
public static final short SHADE_V_ATTR
public static final short SHADE_H_ATTR
public static final short SHADE_NS_ATTR
public static final short SHADE_PS_ATTR
public static final short A_REVERSE
public static final short A_NORMAL
public static final short A_XOR
public static final short A_SHADED
public static final short A_REPLACE
public static final short A_OR
public static final short A_AND
public static final short A_THICK1
public static final short A_SHADE_V
public static final short A_SHADE_H
public static final short A_SHADE_NS
public static final short A_SHADE_PS
Method Detail |
public static void clrscr()
public static void clrScr()
public static void drawChar(short x, short y, char c, short attr)
x
- The x coordinatey
- The y coordinatec
- The char to drawattr
- The attributepublic static void drawPix(short x, short y, short attr)
x
- The x coordinatey
- The y coordinateattr
- The attributepublic static void drawLine(short x0, short y0, short x1, short y1, short attr)
x0
- The x coordinate of the upper left cornery0
- The y coordinate of the upper left cornerx1
- The x coordinate of the lower right cornery1
- The y coordinate of the lower right cornerattr
- The attributepublic static void drawEllipse(short x, short y, short a, short b, short attr)
x
- The x coordinate of the elipsey
- The y coordinate of the elipsea
- The horizontal semiaxe of the elipseb
- The vertical semiaxe of the elipseattr
- The attributepublic static void drawTo(short x, short y)
x
- The x coordinatey
- The y coordinatepublic static void moveTo(short x, short y)
x
- The x coordinatey
- The y coordinatepublic static void draw(short x, short y, char[] str, short attr)
x
- The x coordinatey
- The y coordinatestr
- The ANSI string to drawattr
- The attributepublic static void draw(short x, short y, java.lang.String str, short attr)
x
- The x coordinatey
- The y coordinatestr
- The String to drawattr
- The attributepublic static void draw(short x, short y, short num, short attr)
x
- The x coordinatey
- The y coordinatenum
- The short to drawattr
- The attributepublic static void draw(short x, short y, int num, short attr)
x
- The x coordinatey
- The y coordinatenum
- The int to drawattr
- The attributepublic static void draw(short x, short y, long num, short attr)
x
- The x coordinatey
- The y coordinatenum
- The long to drawattr
- The attributepublic static void draw(short x, short y, double num, short attr)
x
- The x coordinatey
- The y coordinatenum
- The double to drawattr
- The attributepublic static void draw(short x, short y, char c, short attr)
x
- The x coordinatey
- The y coordinatec
- The char to drawattr
- The attributepublic static boolean getPix(short x, short y)
x
- The x coordinatey
- The y coordinate
public static void putBitmap(moka.io.BITMAP_p b, short x, short y, short attr)
b
- The BITMAPx
- Absolute horizontal coordinatey
- Absolute vertical coordinateattr
- Display attributepublic static void picVarPut(char[] SymName, short x, short y, short attr)
SymName
- TIOS variable name, in vat string formatx
- Absolute horizontal coordinatey
- Absolute vertical coordinateattr
- Display attributepublic static void picVarPut(java.lang.String file, short x, short y, short attr)
file
- The PIC file namex
- Absolute horizontal coordinatey
- Absolute vertical coordinateattr
- Display attributepublic static void putGray(java.lang.String d, java.lang.String l, short x, short y, short attr)
d
- The PIC file name of the dark plane (layer 1)l
- The PIC file name of the light plane (layer 2)x
- Absolute horizontal coordinatey
- Absolute vertical coordinateattr
- Display attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |