|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface VDUDisplay
Interface for implementations of a component that will do the actual drawing
of the terminal screen. Currently this must be an instance of a
Component so it can be added to a VirtualTerminal
implementation.
| Field Summary | |
|---|---|
static int |
BACKGROUND_IMAGE_CENTERED
|
static int |
BACKGROUND_IMAGE_FILL
|
static int |
BACKGROUND_IMAGE_SCALED
|
static int |
BACKGROUND_IMAGE_TILED
|
static int |
CURSOR_BLOCK
Solid block cursor style |
static int |
CURSOR_LINE
Underline cursor style |
static int |
FORWARD_AUTO_SCROLL
|
static int |
NO_AUTO_SCROLL
Autoscroll types |
static int |
NO_BACKGROUND_IMAGE
Background image types |
static int |
RESIZE_FONT
|
static int |
RESIZE_NONE
|
static int |
RESIZE_SCREEN
|
static int |
REVERSE_AUTO_SCROLL
|
| Method Summary | |
|---|---|
void |
focusTerminal()
Terminal component requests focus |
java.awt.Color |
getBackground()
Get the background color |
int |
getCharacterColumns(char ch)
Get the number of columns the supplied unicode character will take up on this terminal. |
java.awt.Component |
getComponent()
Get the component. |
int |
getCursorStyle()
Get the cursor style. |
int |
getResizeStrategy()
Return the current resize strategy. |
VDUScrollBar |
getScrollBar()
Get the scrollbar (if any) that this display is using |
java.lang.String |
getSelection()
Return the currently selected text from the terminal. |
java.awt.Font |
getTerminalFont()
Get the terminal font |
VDUBuffer |
getVDUBuffer()
Get the current buffer |
void |
init(VDUBuffer buffer)
Initialise the display. |
void |
interruptBlink()
Interupt the blink (make it 'on' for another cycle) |
boolean |
isCenter()
Get whether or not to keep the display central when resizing occurs |
boolean |
isCursorBlink()
Get whether the cursor shoud blink or not. |
boolean |
isReverseVideo()
Get whether reverse video is currently enabled |
void |
recalculateFontAndDisplaySize()
Recalculate the font size and the size of the display. |
void |
redisplay()
Redisplay everything, including resizing the display if necessary. |
void |
redraw()
Implement to redraw the terminal screen from the current buffer |
void |
resizeFont(int w,
int h)
Resize the font to best match the given size |
void |
scrollTo(int position)
Set the scroll bar position and scroll the display |
void |
selectScreen()
Select the entire screen |
void |
setBackgroundImage(java.awt.Image backgroundImage)
Set the background image |
void |
setBackgroundImageType(int backgroundImageType)
Set the type of background image |
void |
setCenter(boolean center)
Set whether or not to keep the display central when resizing occurs |
void |
setColorPrinting(boolean colorPrinting)
Set whether colors should be printed. |
void |
setCursorBlink(boolean blink)
Set whether the cursor shoud blink or not. |
void |
setCursorColors(java.awt.Color foreground,
java.awt.Color background)
Set the cursor colors. |
void |
setCursorStyle(int cursorStyle)
Set the cursor style. |
void |
setDefaultBackground(java.awt.Color color)
Set the default background color of the terminal |
void |
setDefaultForeground(java.awt.Color color)
Set the default background color of the terminal |
void |
setMouseWheelIncrement(int i)
Set the mouse wheel increment in lines. |
void |
setResizeStrategy(int resizeStrategy)
Set the resize strategy. |
void |
setReverseVideo(boolean reverseVideo)
Set whether reverse video is enabled |
void |
setScrollBar(VDUScrollBar scrollBar)
Set the scrollbar (or null for no scrollbar) that this
display should use. |
void |
setSelectionXOR(java.awt.Color selectionXOR)
Set XOR color to use the current selection. |
void |
setSetClipboardOnSelect(boolean setClipboardOnSelect)
Set whether or not to set the clipboard upon selection |
void |
setTerminalFont(java.awt.Font font)
Set the default font |
void |
setVDUBuffer(VDUBuffer buffer)
Set the current buffer |
| Field Detail |
|---|
static final int NO_AUTO_SCROLL
static final int FORWARD_AUTO_SCROLL
static final int REVERSE_AUTO_SCROLL
static final int NO_BACKGROUND_IMAGE
static final int BACKGROUND_IMAGE_CENTERED
static final int BACKGROUND_IMAGE_FILL
static final int BACKGROUND_IMAGE_SCALED
static final int BACKGROUND_IMAGE_TILED
static final int CURSOR_BLOCK
static final int CURSOR_LINE
static final int RESIZE_NONE
static final int RESIZE_FONT
static final int RESIZE_SCREEN
| Method Detail |
|---|
void setSetClipboardOnSelect(boolean setClipboardOnSelect)
void setCursorStyle(int cursorStyle)
Set the cursor style. Can be one of :-
cursorStyle - cursor styleint getCursorStyle()
Get the cursor style. Can be one of :-
void setCursorBlink(boolean blink)
blink - cursor blinkvoid interruptBlink()
boolean isCursorBlink()
void setCursorColors(java.awt.Color foreground,
java.awt.Color background)
null means default to text color.
foreground - cursor foregroundbackground - cursor backgroundjava.lang.String getSelection()
void setResizeStrategy(int resizeStrategy)
throws java.lang.IllegalArgumentException
Set the resize strategy. Can be one of :-
resizeStrategy - resize strategy
java.lang.IllegalArgumentException - if implementation doesnt support the
specified strategyvoid setColorPrinting(boolean colorPrinting)
colorPrinting - color printingvoid redraw()
void setVDUBuffer(VDUBuffer buffer)
buffer - bufferVDUBuffer getVDUBuffer()
void init(VDUBuffer buffer)
buffer - bufferjava.awt.Component getComponent()
VDUScrollBar getScrollBar()
void setScrollBar(VDUScrollBar scrollBar)
null for no scrollbar) that this
display should use.
scrollBar - scrollbarvoid redisplay()
int getResizeStrategy()
void setMouseWheelIncrement(int i)
i - mouse wheel incrementvoid setDefaultBackground(java.awt.Color color)
color - default background colorvoid setDefaultForeground(java.awt.Color color)
color - default background colorvoid setTerminalFont(java.awt.Font font)
font - default fontjava.awt.Font getTerminalFont()
void focusTerminal()
boolean isReverseVideo()
void setReverseVideo(boolean reverseVideo)
reverseVideo - reverse videovoid recalculateFontAndDisplaySize()
void resizeFont(int w,
int h)
w - widthh - heightvoid setCenter(boolean center)
center - center displayboolean isCenter()
void scrollTo(int position)
position - scroll bar positionvoid setBackgroundImageType(int backgroundImageType)
backgroundImageType - background image typevoid setBackgroundImage(java.awt.Image backgroundImage)
backgroundImage - background imagevoid selectScreen()
java.awt.Color getBackground()
void setSelectionXOR(java.awt.Color selectionXOR)
Set to null to reverse to the default behaviour.
selectionXOR - selection XOR colorint getCharacterColumns(char ch)
character - columns
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||