com.sshtools.terminal.awt
Class AWTTerminalPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Canvas
          extended by com.sshtools.terminal.awt.AWTTerminalPanel
All Implemented Interfaces:
VDUDisplay, java.awt.datatransfer.ClipboardOwner, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.print.Printable, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class AWTTerminalPanel
extends java.awt.Canvas
implements VDUDisplay, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.print.Printable, java.awt.datatransfer.ClipboardOwner

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Canvas
java.awt.Canvas.AccessibleAWTCanvas
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static int COLOR_BOLD
           
static int COLOR_INVERT
           
protected  VDUScrollBar scrollBar
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface com.sshtools.terminal.VDUDisplay
BACKGROUND_IMAGE_CENTERED, BACKGROUND_IMAGE_FILL, BACKGROUND_IMAGE_SCALED, BACKGROUND_IMAGE_TILED, CURSOR_BLOCK, CURSOR_LINE, FORWARD_AUTO_SCROLL, NO_AUTO_SCROLL, NO_BACKGROUND_IMAGE, RESIZE_FONT, RESIZE_NONE, RESIZE_SCREEN, REVERSE_AUTO_SCROLL
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AWTTerminalPanel()
          Construct a new AWTTerminalPanel
 
Method Summary
 void addFocusListener(java.awt.event.FocusListener listener)
           
 void addKeyListener(java.awt.event.KeyListener listener)
           
 void addMouseListener(java.awt.event.MouseListener listener)
           
 void addMouseMotionListener(java.awt.event.MouseMotionListener listener)
           
 int calcXOffset()
           
 int calcYOffset()
           
 void clearSelection()
          Remove the selection of text.
 void focusTerminal()
          Terminal component requests focus
 int getCharacterColumns(char ch)
          Get the number of columns the supplied unicode character will take up on this terminal.
 java.awt.Color[] getColorSet()
          Return the set of 10 colors in use.
 java.awt.Component getComponent()
          Get the component.
 int getCursorStyle()
           Get the cursor style.
 java.awt.Dimension getPreferredSize()
           
 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.Dimension getSize()
           
 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 isAntialias()
          Get if antialiasing in use
 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 keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable contents)
           
 void mouseClicked(java.awt.event.MouseEvent evt)
           
 void mouseDragged(java.awt.event.MouseEvent evt)
           
 void mouseEntered(java.awt.event.MouseEvent evt)
           
 void mouseExited(java.awt.event.MouseEvent evt)
           
 java.awt.Point mouseGetPos(java.awt.Point evtpt)
           
 void mouseMoved(java.awt.event.MouseEvent evt)
           
 void mousePressed(java.awt.event.MouseEvent evt)
           
 void mouseReleased(java.awt.event.MouseEvent evt)
           
 void paint(java.awt.Graphics g1)
           
 void print(java.awt.Graphics g)
           
 int print(java.awt.Graphics graphics, java.awt.print.PageFormat pageFormat, int pageIndex)
           
 void processEvent(java.awt.AWTEvent evt)
           
 void processFocusEvent(java.awt.event.FocusEvent evt)
           
 void processKeyEvent(java.awt.event.KeyEvent evt)
           
 void processMouseEvent(java.awt.event.MouseEvent evt)
           
 void processMouseMotionEvent(java.awt.event.MouseEvent evt)
           
 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
protected  void redraw(java.awt.Graphics g1)
           
 void removeFocusListener(java.awt.event.FocusListener listener)
           
 void removeKeyListener(java.awt.event.KeyListener listener)
           
 void removeMouseListener(java.awt.event.MouseListener listener)
           
 void removeMouseMotionListener(java.awt.event.MouseMotionListener listener)
           
 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 setAntialias(boolean antialias)
          Set if the terminal characters should be antialiased
 void setAutoScroll(int direction, int delay, int x, int y)
           
 void setBackground(java.awt.Color c)
           
 void setBackgroundImage(java.awt.Image backgroundImage)
          Set the background image
 void setBackgroundImageType(int backgroundImageType)
          Set the type of background image
 void setBorder(int thickness, boolean raised)
          Set the border around the terminal
 void setBounds(int x, int y, int w, int h)
           
 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 setColorSet(java.awt.Color[] colorset)
          Set all 10 of the palette of ANSI colors.
 void setCursorBlink(boolean blink)
          Set whether the cursor shoud blink or not.
 void setCursorColors(java.awt.Color fg, java.awt.Color bg)
          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 setFont(java.awt.Font font)
           
 void setMouseWheelIncrement(int mouseWheelIncrement)
          Set the mouse wheel increment in lines.
 void setResizeStrategy(int strategy)
           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
 void update(java.awt.Graphics g)
           
 
Methods inherited from class java.awt.Canvas
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, printAll, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sshtools.terminal.VDUDisplay
getBackground
 

Field Detail

COLOR_BOLD

public static final int COLOR_BOLD
See Also:
Constant Field Values

COLOR_INVERT

public static final int COLOR_INVERT
See Also:
Constant Field Values

scrollBar

protected VDUScrollBar scrollBar
Constructor Detail

AWTTerminalPanel

public AWTTerminalPanel()
Construct a new AWTTerminalPanel

Method Detail

init

public void init(VDUBuffer buffer)
Description copied from interface: VDUDisplay
Initialise the display.

Specified by:
init in interface VDUDisplay
Parameters:
buffer - buffer

setAntialias

public void setAntialias(boolean antialias)
Set if the terminal characters should be antialiased

Parameters:
antialias - antialias

isAntialias

public boolean isAntialias()
Get if antialiasing in use

Returns:
antialias

setVDUBuffer

public void setVDUBuffer(VDUBuffer buffer)
Description copied from interface: VDUDisplay
Set the current buffer

Specified by:
setVDUBuffer in interface VDUDisplay
Parameters:
buffer - buffer

getVDUBuffer

public VDUBuffer getVDUBuffer()
Description copied from interface: VDUDisplay
Get the current buffer

Specified by:
getVDUBuffer in interface VDUDisplay
Returns:
buffer

setColorSet

public void setColorSet(java.awt.Color[] colorset)
Set all 10 of the palette of ANSI colors.

Parameters:
colorset - color set.

getColorSet

public java.awt.Color[] getColorSet()
Return the set of 10 colors in use.

Returns:
color set

setFont

public void setFont(java.awt.Font font)
Overrides:
setFont in class java.awt.Component

setResizeStrategy

public void setResizeStrategy(int strategy)
Description copied from interface: VDUDisplay

Set the resize strategy. Can be one of :-

Specified by:
setResizeStrategy in interface VDUDisplay
Parameters:
strategy - resize strategy

setBorder

public void setBorder(int thickness,
                      boolean raised)
Set the border around the terminal

Parameters:
thickness - border width
raised - 3D raised effect

setScrollBar

public void setScrollBar(VDUScrollBar scrollBar)
Description copied from interface: VDUDisplay
Set the scrollbar (or null for no scrollbar) that this display should use.

Specified by:
setScrollBar in interface VDUDisplay
Parameters:
scrollBar - scrollbar

scrollTo

public void scrollTo(int position)
Description copied from interface: VDUDisplay
Set the scroll bar position and scroll the display

Specified by:
scrollTo in interface VDUDisplay
Parameters:
position - scroll bar position

setSelectionXOR

public void setSelectionXOR(java.awt.Color selectionXOR)
Description copied from interface: VDUDisplay
Set XOR color to use the current selection. By default, this will either by the terminal foreground color (if reverse video) or the terminal background color (if not reverse video).

Set to null to reverse to the default behaviour.

Specified by:
setSelectionXOR in interface VDUDisplay
Parameters:
selectionXOR - selection XOR color

setBackground

public void setBackground(java.awt.Color c)
Overrides:
setBackground in class java.awt.Component

redraw

public void redraw()
Description copied from interface: VDUDisplay
Implement to redraw the terminal screen from the current buffer

Specified by:
redraw in interface VDUDisplay

update

public void update(java.awt.Graphics g)
Overrides:
update in class java.awt.Canvas

paint

public void paint(java.awt.Graphics g1)
Overrides:
paint in class java.awt.Canvas

setColorPrinting

public void setColorPrinting(boolean colorPrinting)
Description copied from interface: VDUDisplay
Set whether colors should be printed.

Specified by:
setColorPrinting in interface VDUDisplay
Parameters:
colorPrinting - color printing

print

public int print(java.awt.Graphics graphics,
                 java.awt.print.PageFormat pageFormat,
                 int pageIndex)
          throws java.awt.print.PrinterException
Specified by:
print in interface java.awt.print.Printable
Throws:
java.awt.print.PrinterException

print

public void print(java.awt.Graphics g)
Overrides:
print in class java.awt.Component

mouseGetPos

public java.awt.Point mouseGetPos(java.awt.Point evtpt)

setCursorColors

public void setCursorColors(java.awt.Color fg,
                            java.awt.Color bg)
Description copied from interface: VDUDisplay
Set the cursor colors. null means default to text color.

Specified by:
setCursorColors in interface VDUDisplay
Parameters:
fg - cursor foreground
bg - cursor background

setBounds

public void setBounds(int x,
                      int y,
                      int w,
                      int h)
Overrides:
setBounds in class java.awt.Component

recalculateFontAndDisplaySize

public void recalculateFontAndDisplaySize()
Description copied from interface: VDUDisplay
Recalculate the font size and the size of the display. Invoked when a screen resize event occurs.

Specified by:
recalculateFontAndDisplaySize in interface VDUDisplay

getSize

public java.awt.Dimension getSize()
Overrides:
getSize in class java.awt.Component

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class java.awt.Component

clearSelection

public void clearSelection()
Remove the selection of text.


getSelection

public java.lang.String getSelection()
Description copied from interface: VDUDisplay
Return the currently selected text from the terminal.

Specified by:
getSelection in interface VDUDisplay
Returns:
selected text

getScrollBar

public VDUScrollBar getScrollBar()
Description copied from interface: VDUDisplay
Get the scrollbar (if any) that this display is using

Specified by:
getScrollBar in interface VDUDisplay
Returns:
scrollbar

addMouseListener

public void addMouseListener(java.awt.event.MouseListener listener)
Overrides:
addMouseListener in class java.awt.Component

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent evt)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent evt)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent evt)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent evt)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent evt)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent evt)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent evt)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Specified by:
keyTyped in interface java.awt.event.KeyListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in interface java.awt.event.KeyListener

removeMouseListener

public void removeMouseListener(java.awt.event.MouseListener listener)
Overrides:
removeMouseListener in class java.awt.Component

addMouseMotionListener

public void addMouseMotionListener(java.awt.event.MouseMotionListener listener)
Overrides:
addMouseMotionListener in class java.awt.Component

removeMouseMotionListener

public void removeMouseMotionListener(java.awt.event.MouseMotionListener listener)
Overrides:
removeMouseMotionListener in class java.awt.Component

processMouseEvent

public void processMouseEvent(java.awt.event.MouseEvent evt)
Overrides:
processMouseEvent in class java.awt.Component

processMouseMotionEvent

public void processMouseMotionEvent(java.awt.event.MouseEvent evt)
Overrides:
processMouseMotionEvent in class java.awt.Component

setMouseWheelIncrement

public void setMouseWheelIncrement(int mouseWheelIncrement)
Description copied from interface: VDUDisplay
Set the mouse wheel increment in lines. I.e., if the user scrolls 3 clicks and the increment is 2, then the terminal display will be scrolled 6 lines.

Specified by:
setMouseWheelIncrement in interface VDUDisplay
Parameters:
mouseWheelIncrement - mouse wheel increment

processEvent

public void processEvent(java.awt.AWTEvent evt)
Overrides:
processEvent in class java.awt.Component

addKeyListener

public void addKeyListener(java.awt.event.KeyListener listener)
Overrides:
addKeyListener in class java.awt.Component

removeKeyListener

public void removeKeyListener(java.awt.event.KeyListener listener)
Overrides:
removeKeyListener in class java.awt.Component

processKeyEvent

public void processKeyEvent(java.awt.event.KeyEvent evt)
Overrides:
processKeyEvent in class java.awt.Component

addFocusListener

public void addFocusListener(java.awt.event.FocusListener listener)
Overrides:
addFocusListener in class java.awt.Component

removeFocusListener

public void removeFocusListener(java.awt.event.FocusListener listener)
Overrides:
removeFocusListener in class java.awt.Component

processFocusEvent

public void processFocusEvent(java.awt.event.FocusEvent evt)
Overrides:
processFocusEvent in class java.awt.Component

getComponent

public java.awt.Component getComponent()
Description copied from interface: VDUDisplay
Get the component. This will be added to container applications UI.

Specified by:
getComponent in interface VDUDisplay
Returns:
VDU display component

redisplay

public void redisplay()
Description copied from interface: VDUDisplay
Redisplay everything, including resizing the display if necessary.

Specified by:
redisplay in interface VDUDisplay

getResizeStrategy

public int getResizeStrategy()
Description copied from interface: VDUDisplay
Return the current resize strategy. Can be one of :-

Specified by:
getResizeStrategy in interface VDUDisplay
Returns:
resize strategy

setDefaultBackground

public void setDefaultBackground(java.awt.Color color)
Description copied from interface: VDUDisplay
Set the default background color of the terminal

Specified by:
setDefaultBackground in interface VDUDisplay
Parameters:
color - default background color

setDefaultForeground

public void setDefaultForeground(java.awt.Color color)
Description copied from interface: VDUDisplay
Set the default background color of the terminal

Specified by:
setDefaultForeground in interface VDUDisplay
Parameters:
color - default background color

setTerminalFont

public void setTerminalFont(java.awt.Font font)
Description copied from interface: VDUDisplay
Set the default font

Specified by:
setTerminalFont in interface VDUDisplay
Parameters:
font - default font

getTerminalFont

public java.awt.Font getTerminalFont()
Description copied from interface: VDUDisplay
Get the terminal font

Specified by:
getTerminalFont in interface VDUDisplay
Returns:
terminal font

setCursorStyle

public void setCursorStyle(int cursorStyle)
Description copied from interface: VDUDisplay

Set the cursor style. Can be one of :-


getCursorStyle

public int getCursorStyle()
Description copied from interface: VDUDisplay

Get the cursor style. Can be one of :-


setCursorBlink

public void setCursorBlink(boolean blink)
Description copied from interface: VDUDisplay
Set whether the cursor shoud blink or not.

Specified by:
setCursorBlink in interface VDUDisplay
Parameters:
blink - cursor blink

setAutoScroll

public void setAutoScroll(int direction,
                          int delay,
                          int x,
                          int y)

isCursorBlink

public boolean isCursorBlink()
Description copied from interface: VDUDisplay
Get whether the cursor shoud blink or not.

Specified by:
isCursorBlink in interface VDUDisplay
Returns:
blink cursor

redraw

protected void redraw(java.awt.Graphics g1)

focusTerminal

public void focusTerminal()
Description copied from interface: VDUDisplay
Terminal component requests focus

Specified by:
focusTerminal in interface VDUDisplay

isReverseVideo

public boolean isReverseVideo()
Description copied from interface: VDUDisplay
Get whether reverse video is currently enabled

Specified by:
isReverseVideo in interface VDUDisplay
Returns:
reverse video

setReverseVideo

public void setReverseVideo(boolean reverseVideo)
Description copied from interface: VDUDisplay
Set whether reverse video is enabled

Specified by:
setReverseVideo in interface VDUDisplay
Parameters:
reverseVideo - reverse video

setCenter

public void setCenter(boolean center)
Description copied from interface: VDUDisplay
Set whether or not to keep the display central when resizing occurs

Specified by:
setCenter in interface VDUDisplay
Parameters:
center - center display

isCenter

public boolean isCenter()
Description copied from interface: VDUDisplay
Get whether or not to keep the display central when resizing occurs

Specified by:
isCenter in interface VDUDisplay
Returns:
center display

calcXOffset

public int calcXOffset()

calcYOffset

public int calcYOffset()

interruptBlink

public void interruptBlink()
Description copied from interface: VDUDisplay
Interupt the blink (make it 'on' for another cycle)

Specified by:
interruptBlink in interface VDUDisplay

resizeFont

public void resizeFont(int w,
                       int h)
Description copied from interface: VDUDisplay
Resize the font to best match the given size

Specified by:
resizeFont in interface VDUDisplay
Parameters:
w - width
h - height

setBackgroundImageType

public void setBackgroundImageType(int backgroundImageType)
Description copied from interface: VDUDisplay
Set the type of background image

Specified by:
setBackgroundImageType in interface VDUDisplay
Parameters:
backgroundImageType - background image type

setBackgroundImage

public void setBackgroundImage(java.awt.Image backgroundImage)
Description copied from interface: VDUDisplay
Set the background image

Specified by:
setBackgroundImage in interface VDUDisplay
Parameters:
backgroundImage - background image

setSetClipboardOnSelect

public void setSetClipboardOnSelect(boolean setClipboardOnSelect)
Description copied from interface: VDUDisplay
Set whether or not to set the clipboard upon selection

Specified by:
setSetClipboardOnSelect in interface VDUDisplay

lostOwnership

public void lostOwnership(java.awt.datatransfer.Clipboard clipboard,
                          java.awt.datatransfer.Transferable contents)
Specified by:
lostOwnership in interface java.awt.datatransfer.ClipboardOwner

selectScreen

public void selectScreen()
Description copied from interface: VDUDisplay
Select the entire screen

Specified by:
selectScreen in interface VDUDisplay

getCharacterColumns

public int getCharacterColumns(char ch)
Description copied from interface: VDUDisplay
Get the number of columns the supplied unicode character will take up on this terminal.

Specified by:
getCharacterColumns in interface VDUDisplay
Returns:
number of colums


Copyright © 2003-2004 3SP LTD. All Rights Reserved.