edu.uci.ics.jung.visualization.swt
Class ScreenDevice<C extends org.eclipse.swt.widgets.Control>
java.lang.Object
edu.uci.ics.jung.visualization.swt.ScreenDevice<C>
- All Implemented Interfaces:
- ScreenDevice<C>
public class ScreenDevice<C extends org.eclipse.swt.widgets.Control>
- extends Object
- implements ScreenDevice<C>
An AWT implementation of the screen device.
- Author:
- Jason A Wrang
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScreenDevice
public ScreenDevice(C comp)
createMouseEvent
public static <E extends org.eclipse.swt.widgets.Event> MouseEvent<E> createMouseEvent(E event)
createMouseWheelEvent
public static <E extends org.eclipse.swt.widgets.Event> MouseWheelEvent<E> createMouseWheelEvent(E event)
createKeyEvent
public static <E extends org.eclipse.swt.widgets.Event> KeyEvent<E> createKeyEvent(E event)
getUIComponent
public C getUIComponent()
- Specified by:
getUIComponent in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
getBackground
public Color getBackground()
- Specified by:
getBackground in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
getBounds
public Rectangle getBounds()
- Specified by:
getBounds in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
getFont
public Font getFont()
- Specified by:
getFont in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
getForeground
public Color getForeground()
- Specified by:
getForeground in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
getSize
public Dimension getSize()
- Specified by:
getSize in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
repaint
public void repaint()
- Specified by:
repaint in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
setBackground
public void setBackground(Color c)
- Specified by:
setBackground in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
setFont
public void setFont(Font font)
- Specified by:
setFont in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
setForeground
public void setForeground(Color c)
- Specified by:
setForeground in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
addScreenDeviceListener
public void addScreenDeviceListener(ScreenDeviceListener<C> l)
- Specified by:
addScreenDeviceListener in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
removeScreenDeviceListener
public void removeScreenDeviceListener(ScreenDeviceListener l)
- Specified by:
removeScreenDeviceListener in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
getScreenDeviceListeners
public ScreenDeviceListener[] getScreenDeviceListeners()
- Specified by:
getScreenDeviceListeners in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
addKeyListener
public void addKeyListener(KeyListener l)
- Specified by:
addKeyListener in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
removeKeyListener
public void removeKeyListener(KeyListener l)
- Specified by:
removeKeyListener in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
getKeyListeners
public KeyListener[] getKeyListeners()
- Specified by:
getKeyListeners in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
addMouseListener
public void addMouseListener(MouseListener l)
- Specified by:
addMouseListener in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
removeMouseListener
public void removeMouseListener(MouseListener l)
- Specified by:
removeMouseListener in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
getMouseListeners
public MouseListener[] getMouseListeners()
- Specified by:
getMouseListeners in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
addMouseMotionListener
public void addMouseMotionListener(MouseMotionListener l)
- Specified by:
addMouseMotionListener in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
removeMouseMotionListener
public void removeMouseMotionListener(MouseMotionListener l)
- Specified by:
removeMouseMotionListener in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
getMouseMotionListeners
public MouseMotionListener[] getMouseMotionListeners()
- Specified by:
getMouseMotionListeners in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
addMouseWheelListener
public void addMouseWheelListener(MouseWheelListener l)
- Specified by:
addMouseWheelListener in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
removeMouseWheelListener
public void removeMouseWheelListener(MouseWheelListener l)
- Specified by:
removeMouseWheelListener in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
getMouseWheelListeners
public MouseWheelListener[] getMouseWheelListeners()
- Specified by:
getMouseWheelListeners in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
getGraphicsContext
public GraphicsContext getGraphicsContext()
- Specified by:
getGraphicsContext in interface ScreenDevice<C extends org.eclipse.swt.widgets.Control>
setGraphicsContext
public void setGraphicsContext(GraphicsContext graphicsContext)
Copyright © 2007. All Rights Reserved.