| java.lang.Object ti.swing.console.ConsoleGraphics
ConsoleGraphics | public class ConsoleGraphics (Code) | | Sorta like java.awt.Graphics, except that it is tailored to drawing text.
You can set an inverse attribute, a background color, a foreground color.
When drawing text, the background is cleared to the bg color. Text is
always draw as monospace, extra padding inserted as needed. Also,
ConsoleGraphics.clearRect clears to the bg color.
author: Rob Clark version: 0.1 |
ConsoleGraphics | public ConsoleGraphics(Graphics g)(Code) | | Class Constructor.
Parameters: g - the actual Graphics implementation |
clearRect | public void clearRect(int x, int y, int width, int height)(Code) | | |
drawString | public void drawString(String str, int x, int y)(Code) | | upper-left corner to draw is at x,y, rather than the baseline... also
clears background as it draws...
|
getBackgroundColor | public Color getBackgroundColor()(Code) | | |
setBackgroundColor | public void setBackgroundColor(Color bgColor)(Code) | | |
toggleInverse | public void toggleInverse()(Code) | | |
|
|