public class MenuCanvas
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int[] |
data |
protected boolean |
dirty |
protected byte[] |
displayData |
protected boolean |
dither |
protected int |
height |
protected int |
width |
Constructor and Description |
---|
MenuCanvas(int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
apply(Frame frame) |
void |
clear() |
void |
drawCanvas(MenuCanvas canvas,
int x,
int y) |
void |
drawImage(java.awt.Image image,
int x,
int y) |
void |
drawImage(int[] image,
int imageWidth,
int x,
int y) |
void |
drawImage(SimpleImage image,
int x,
int y) |
void |
drawLine(int x1,
int y1,
int x2,
int y2,
java.awt.Color color) |
void |
drawPixel(int x,
int y,
java.awt.Color color) |
void |
drawRectangle(int x,
int y,
int width,
int height,
java.awt.Color color) |
void |
fill(java.awt.Color color) |
int[] |
getData() |
byte[] |
getDisplay() |
int |
getHeight() |
java.awt.Color |
getPixel(int x,
int y) |
int |
getWidth() |
boolean |
isDither() |
protected void |
markDirty() |
void |
setDither(boolean dither) |
void |
setPixel(int x,
int y,
java.awt.Color color) |
protected void |
update() |
protected int height
protected int width
protected int[] data
protected byte[] displayData
protected boolean dither
protected boolean dirty
public void setDither(boolean dither)
public void setPixel(int x, int y, java.awt.Color color)
public void drawPixel(int x, int y, java.awt.Color color)
public void drawRectangle(int x, int y, int width, int height, java.awt.Color color)
public void drawCanvas(MenuCanvas canvas, int x, int y)
public void drawImage(SimpleImage image, int x, int y)
public void drawImage(java.awt.Image image, int x, int y)
public void drawImage(int[] image, int imageWidth, int x, int y)
public void drawLine(int x1, int y1, int x2, int y2, java.awt.Color color)
public void fill(java.awt.Color color)
public void clear()
public java.awt.Color getPixel(int x, int y)
public int getHeight()
public int getWidth()
public int[] getData()
protected void markDirty()
protected void update()
public boolean isDither()
public byte[] getDisplay()
public void apply(Frame frame)