Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
java.awt.Toolkit
gnu.java.awt.ClasspathToolkit
gnu.java.awt.peer.x.XToolkit
public class XToolkit
extends ClasspathToolkit
Field Summary |
Fields inherited from class java.awt.Toolkit | |
desktopProperties , desktopPropsSupport |
Constructor Summary | |
|
Methods inherited from class gnu.java.awt.ClasspathToolkit | |
createEmbeddedWindow , createFont , createRobot , getClasspathFontPeer , getFont , getLocalGraphicsEnvironment , getMouseNumberOfButtons , registerImageIOSpis |
Methods inherited from class java.lang.Object | |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
public int checkImage(Image image, int width, int height, ImageObserver observer)
- Overrides:
- checkImage in interface Toolkit
protected ButtonPeer createButton(Button target)
- Overrides:
- createButton in interface Toolkit
protected CanvasPeer createCanvas(Canvas target)
- Overrides:
- createCanvas in interface Toolkit
protected CheckboxPeer createCheckbox(Checkbox target)
- Overrides:
- createCheckbox in interface Toolkit
protected CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target)
- Overrides:
- createCheckboxMenuItem in interface Toolkit
protected ChoicePeer createChoice(Choice target)
- Overrides:
- createChoice in interface Toolkit
protected LightweightPeer createComponent(Component c)
- Overrides:
- createComponent in interface Toolkit
protected DialogPeer createDialog(Dialog target)
- Overrides:
- createDialog in interface Toolkit
public DragSourceContextPeer createDragSourceContextPeer(DragGestureEvent e)
- Overrides:
- createDragSourceContextPeer in interface Toolkit
public EmbeddedWindowPeer createEmbeddedWindow(EmbeddedWindow w)
- Overrides:
- createEmbeddedWindow in interface ClasspathToolkit
protected FileDialogPeer createFileDialog(FileDialog target)
- Overrides:
- createFileDialog in interface Toolkit
public Font createFont(int format, InputStream stream)
- Overrides:
- createFont in interface ClasspathToolkit
public Image createImage(byte[] data, int offset, int len)
- Overrides:
- createImage in interface Toolkit
public Image createImage(ImageProducer producer)
- Overrides:
- createImage in interface Toolkit
public Image createImage(String filename)
Returns an image that has its pixel data loaded from a file with the specified name. If that file doesn't exist, an empty or error image is returned instead.
- Overrides:
- createImage in interface Toolkit
- Parameters:
filename
- the filename of the file that contains the pixel data
- Returns:
- the image
public Image createImage(URL url)
Returns an image that has its pixel data loaded from the specified URL. If the image cannot be loaded for some reason, an empty or error image is returned instead.
- Overrides:
- createImage in interface Toolkit
- Parameters:
url
- the URL to the image data
- Returns:
- the image
protected MenuBarPeer createMenuBar(MenuBar target)
- Overrides:
- createMenuBar in interface Toolkit
protected MenuItemPeer createMenuItem(MenuItem target)
- Overrides:
- createMenuItem in interface Toolkit
protected PopupMenuPeer createPopupMenu(PopupMenu target)
- Overrides:
- createPopupMenu in interface Toolkit
public RobotPeer createRobot(GraphicsDevice screen) throws AWTException
- Overrides:
- createRobot in interface ClasspathToolkit
protected ScrollPanePeer createScrollPane(ScrollPane target)
- Overrides:
- createScrollPane in interface Toolkit
protected ScrollbarPeer createScrollbar(Scrollbar target)
- Overrides:
- createScrollbar in interface Toolkit
protected TextAreaPeer createTextArea(TextArea target)
- Overrides:
- createTextArea in interface Toolkit
protected TextFieldPeer createTextField(TextField target)
- Overrides:
- createTextField in interface Toolkit
protected WindowPeer createWindow(Window target)
- Overrides:
- createWindow in interface Toolkit
public ClasspathFontPeer getClasspathFontPeer(String name, Map attrs)
Returns the font peer for a font with the specified name and attributes.
- Overrides:
- getClasspathFontPeer in interface ClasspathToolkit
- Parameters:
name
- the font nameattrs
- the font attributes
- Returns:
- the font peer for a font with the specified name and attributes
public ColorModel getColorModel()
Returns the color model used by this toolkit.
- Overrides:
- getColorModel in interface Toolkit
- Returns:
- the color model used by this toolkit
public FontMetrics getFontMetrics(Font name)
- Overrides:
- getFontMetrics in interface Toolkit
protected FontPeer getFontPeer(String name, int style)
- Overrides:
- getFontPeer in interface Toolkit
public Image getImage(String name)
Returns an image that has its pixel data loaded from a file with the specified name. If that file doesn't exist, an empty or error image is returned instead.
- Parameters:
name
- the filename of the file that contains the pixel data
- Returns:
- the image
public Image getImage(URL url)
Returns an image that has its pixel data loaded from the specified URL. If the image cannot be loaded for some reason, an empty or error image is returned instead.
- Parameters:
url
- the URL to the image data
- Returns:
- the image
public GraphicsEnvironment getLocalGraphicsEnvironment()
- Overrides:
- getLocalGraphicsEnvironment in interface ClasspathToolkit
public PrintJob getPrintJob(Frame frame, String title, Properties props)
- Overrides:
- getPrintJob in interface Toolkit
public int getScreenResolution()
- Overrides:
- getScreenResolution in interface Toolkit
public Clipboard getSystemClipboard()
- Overrides:
- getSystemClipboard in interface Toolkit
protected EventQueue getSystemEventQueueImpl()
Returns the eventqueue used by the XLib peers.
- Overrides:
- getSystemEventQueueImpl in interface Toolkit
- Returns:
- the eventqueue used by the XLib peers
public Map mapInputMethodHighlight(InputMethodHighlight highlight)
- Overrides:
- mapInputMethodHighlight in interface Toolkit
public boolean prepareImage(Image image, int width, int height, ImageObserver observer)
- Overrides:
- prepareImage in interface Toolkit