|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmoka.lang.Object
moka.event.EventListener
moka.x.Component
moka.x.Container
moka.x.GEM
The GEM (Graphic Environment Manager) class implements the methods used to manage the Graphic Environment.
Field Summary | |
short |
cursorSpeedX
The horizontal speed of the cursor. |
short |
cursorSpeedY
The vertical speed of the cursor. |
short |
cursorVisible
Is the cursor visible ? Should be only read. |
short |
cursorX
The cursor x position. |
short |
cursorY
The cursor y position. |
static GEM |
gem
The instance of the Graphic Environment Manager. |
static short |
LCD_HEIGHT
Height of the screen in pixels (100 on TI-89, 128 on TI-92 Plus or V200). |
static short |
LCD_LINE_BYTES
Number of bytes in the visible part of a screen line (20 on TI-89, 30 on TI-92 Plus or V200). |
static short |
LCD_WIDTH
Width of the screen in pixels (160 on TI-89, 240 on TI-92 Plus or V200). |
EventListener |
minListen
The event listener notified when a frame is minimized. |
protected moka.x.void_p |
port
The virtual screen buffer. |
boolean |
started
Is the Graphic Environment started ? Should be only read. |
EventListener |
startListen
The event listener notified when the Graphic Environment starts. |
short |
systemFont
The ssytem font. |
static short |
USABLE_HEIGHT
The usable height of the screen (94 on TI-89, 122 on TI-92 Plus or V200) |
static moka.x.SCR_RECT_p |
vScrRect
The virtual screen SCR_RECT. |
Fields inherited from class moka.x.Container |
child, tail |
Fields inherited from class moka.x.Component |
enabled, height, listen, mnemonic, next, parent, prev, visible, width, x, y |
Constructor Summary | |
GEM()
|
Method Summary | |
protected void |
clean()
Disposes of all ressources used by the Graphic Environment. |
void |
finalize()
Free the memory and system ressources used by this GEM. |
short |
getFontHeight()
Returns the current system font height. |
static short |
getFontHeight(short font)
Returns the specified font height. |
short |
getFontWidth()
Returns the current system font width. |
static short |
getFontWidth(short font)
Returns the specified font width. |
void |
onDrag(Component sender)
Called when a DragEvent occurs to drag and drop a component. |
void |
onMinimize(Frame sender)
Called when a MinimizedEvent is triggered. |
void |
onPaint()
Called when a PaintEvent occurs to refresh the screen. |
void |
onRefresh()
Called when an UpdateEvent occurs. |
void |
register(Interrupt item)
Registers the specified interrupt. |
void |
run()
This method is looping when the GEM is started. |
void |
setBackground()
Sets the current screen state as background. |
void |
setCursorVisible(boolean b)
Sets the visibility of the cursor. |
void |
setFont(short font)
Sets the system font. |
void |
setStarted(boolean b)
Starts or stops this GEM. |
void |
showModal(Frame frame)
This method is called when a Frame is showed in modal mode. |
void |
unregister(Interrupt item)
Unregisters the specified interrupt. |
short |
useCursor()
Gives the user the control of the cursor. |
Methods inherited from class moka.x.Container |
add, checkMnemonic, empty, paintChildren, paintForeground, remove, repaintChildren, toFront, use |
Methods inherited from class moka.x.Component |
bottom, center, eventTriggered, isCursorOver, left, move, paint, right, setBounds, setEnabled, setHeight, setMnemonic, setVisible, setWidth, setX, setY, top |
Methods inherited from class moka.event.EventListener |
eventTriggered |
Methods inherited from class moka.lang.Object |
equals, getClassName, toString |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected moka.x.void_p port
public static GEM gem
public static short LCD_HEIGHT
public static short LCD_LINE_BYTES
public static short LCD_WIDTH
public static short USABLE_HEIGHT
public static moka.x.SCR_RECT_p vScrRect
public boolean started
public short cursorX
public short cursorY
public short cursorVisible
public short cursorSpeedX
public short cursorSpeedY
public short systemFont
public EventListener startListen
public EventListener minListen
Constructor Detail |
public GEM()
Method Detail |
public void finalize()
finalize
in class Component
public void onRefresh()
onRefresh
in class Container
protected void clean()
clean
in class Container
public void setStarted(boolean b)
b
- true if the Graphic Environment should be started, false if the
Graphic Environment should be stopped.public void onPaint()
onPaint
in class Container
public void setCursorVisible(boolean b)
b
- true if the cursor should be visible, false otherwise.public short useCursor()
public void register(Interrupt item)
item
- the interrupt to be registered.public void unregister(Interrupt item)
item
- the interrupt to be unregistered.public void run()
public void showModal(Frame frame)
frame
- The frame to show in modal mode.public void onDrag(Component sender)
sender
- the object who triggered the DragEvent.public void setFont(short font)
font
- the new system font.public static short getFontHeight(short font)
font
- the specified font
public static short getFontWidth(short font)
font
- the specified font
public short getFontHeight()
public short getFontWidth()
public void onMinimize(Frame sender)
public void setBackground()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |