|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dioscuri.module.AbstractModule dioscuri.module.ModuleScreen dioscuri.module.screen.Screen
public class Screen
An implementation of a hardware visual screen module.
Metadata module ********************************************
general.type : screen general.name : Compatible CRT/LCD computer screen
general.architecture : Von Neumann general.description : General
implementation of a monitor. general.creator : Tessella Support
Services, Koninklijke Bibliotheek, Nationaal Archief of the Netherlands
general.version : 1.0 general.keywords : screen, monitor, CRT, TFT, LCD
general.relations : video general.yearOfIntroduction :
general.yearOfEnding : general.ancestor : general.successor :
screen.resolutionRange : unlimited screen.colorDepth : 256
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface dioscuri.interfaces.Module |
---|
Module.Type |
Field Summary | |
---|---|
protected static int |
BLUE
|
protected java.awt.image.ColorModel |
colourModel
|
protected java.awt.image.DataBuffer |
dataBuffer
|
protected java.awt.image.BufferedImage[] |
fontImages
|
protected java.awt.image.BufferedImage |
graphicTile
|
protected static int |
GREEN
|
protected java.awt.image.BufferedImage |
image
|
protected int |
imageType
|
protected byte[][] |
palette
|
protected byte[] |
pixels
|
protected java.awt.image.WritableRaster |
raster
|
protected static int |
RED
|
protected java.awt.image.SampleModel |
sampleModel
|
Fields inherited from class dioscuri.module.AbstractModule |
---|
type |
Constructor Summary | |
---|---|
Screen(Emulator owner)
Class constructor |
Method Summary | |
---|---|
void |
clearScreen()
Clear screen from any output |
java.lang.String |
getDump()
Return a dump of module status |
javax.swing.JPanel |
getScreen()
Return a reference to the actual screen |
int |
getScreenColumns()
Return the number of columns on screen (text based) |
int |
getScreenHeight()
Return height of screen in number of pixels |
int |
getScreenRows()
Return the number of rows on screen (text based) |
int |
getScreenWidth()
Return width of screen in number of pixels |
boolean |
reset()
Reset all parameters of module. |
void |
setByteInCodePage(int index,
byte data)
Set a byte in Code page The code page is the character encoding table |
boolean |
setPaletteColour(byte index,
int red,
int green,
int blue)
Set a particular colour in palette with RGB-values |
void |
setScreenSize(int width,
int height)
Set the screen size in number of pixels |
void |
updateCodePage(int start)
Update the code page The code page is the character encoding table |
void |
updateGraphicsTile(byte[] tile,
int x0,
int y0)
Update a tile on screen with given bytes Graphics mode. |
void |
updateScreenSize(int newWidth,
int newHeight,
int newFontWidth,
int newFontHeight)
Update screen size |
void |
updateText(int oldText,
int newText,
long cursorXPos,
long cursorYPos,
short[] textModeAttribs,
int numberRows)
Update text on screen at given position Text mode. |
Methods inherited from class dioscuri.module.AbstractModule |
---|
getConnection, getConnections, getDebugMode, getExpectedConnections, getType, isConnected, setConnection, setDebugMode, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected byte[] pixels
protected java.awt.image.DataBuffer dataBuffer
protected java.awt.image.SampleModel sampleModel
protected java.awt.image.WritableRaster raster
protected byte[][] palette
protected java.awt.image.ColorModel colourModel
protected java.awt.image.BufferedImage image
protected int imageType
protected java.awt.image.BufferedImage[] fontImages
protected java.awt.image.BufferedImage graphicTile
protected static final int RED
protected static final int GREEN
protected static final int BLUE
Constructor Detail |
---|
public Screen(Emulator owner)
owner
- Method Detail |
---|
public boolean reset()
reset
in interface Module
reset
in class AbstractModule
AbstractModule
public java.lang.String getDump()
getDump
in interface Module
getDump
in class AbstractModule
AbstractModule
public javax.swing.JPanel getScreen()
getScreen
in class ModuleScreen
ModuleScreen
public int getScreenRows()
getScreenRows
in class ModuleScreen
ModuleScreen
public int getScreenColumns()
getScreenColumns
in class ModuleScreen
ModuleScreen
public int getScreenWidth()
getScreenWidth
in class ModuleScreen
ModuleScreen
public int getScreenHeight()
getScreenHeight
in class ModuleScreen
ModuleScreen
public void setScreenSize(int width, int height)
setScreenSize
in class ModuleScreen
ModuleScreen
public void updateScreenSize(int newWidth, int newHeight, int newFontWidth, int newFontHeight)
updateScreenSize
in class ModuleScreen
ModuleScreen
public void clearScreen()
clearScreen
in class ModuleScreen
ModuleScreen
public boolean setPaletteColour(byte index, int red, int green, int blue)
setPaletteColour
in class ModuleScreen
ModuleScreen
public void setByteInCodePage(int index, byte data)
setByteInCodePage
in class ModuleScreen
ModuleScreen
public void updateCodePage(int start)
updateCodePage
in class ModuleScreen
ModuleScreen
public void updateText(int oldText, int newText, long cursorXPos, long cursorYPos, short[] textModeAttribs, int numberRows)
updateText
in class ModuleScreen
ModuleScreen
public void updateGraphicsTile(byte[] tile, int x0, int y0)
updateGraphicsTile
in class ModuleScreen
ModuleScreen
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |