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.awt.xlib.XToolkit
public class XToolkit
extends ClasspathToolkit
Field Summary |
Fields inherited from class java.awt.Toolkit | |
Object>() , desktopProperties , desktopPropsSupport |
Constructor Summary | |
|
Methods inherited from class gnu.java.awt.ClasspathToolkit | |
createDesktopPeer , createEmbeddedWindow , createFont , createRobot , getClasspathFontPeer , getFont , getLocalGraphicsEnvironment , getMouseNumberOfButtons , registerImageIOSpis |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , 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 frontend)
- Overrides:
- createButton in interface Toolkit
protected CanvasPeer createCanvas(Canvas frontend)
- Overrides:
- createCanvas in interface Toolkit
protected CheckboxPeer createCheckbox(Checkbox frontend)
- Overrides:
- createCheckbox in interface Toolkit
protected CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem frontend)
- Overrides:
- createCheckboxMenuItem in interface Toolkit
protected ChoicePeer createChoice(Choice frontend)
- Overrides:
- createChoice in interface Toolkit
protected DialogPeer createDialog(Dialog frontend)
- Overrides:
- createDialog in interface Toolkit
public DragGestureRecognizer createDragGestureRecognizer(Class<T> abstractRecognizerClass, DragSource ds, Component c, int srcActions, DragGestureListener dgl)
public DragSourceContextPeer createDragSourceContextPeer(DragGestureEvent dge) throws InvalidDnDOperationException
- Overrides:
- createDragSourceContextPeer in interface Toolkit
public EmbeddedWindowPeer createEmbeddedWindow(EmbeddedWindow w)
- Overrides:
- createEmbeddedWindow in interface ClasspathToolkit
protected FileDialogPeer createFileDialog(FileDialog frontend)
- Overrides:
- createFileDialog in interface Toolkit
public Font createFont(int format, InputStream stream)
Creates a font, reading the glyph definitions from a stream. This method provides the platform-specific implementation for the static factory methodFont.createFont(int,InputStream)
.
- Overrides:
- createFont in interface ClasspathToolkit
- Parameters:
format
- the format of the font data, such asFont.TRUETYPE_FONT
. An implementation may ignore this argument if it is able to automatically recognize the font format from the provided data.stream
- an input stream from where the font data is read in. The stream will be advanced to the position after the font data, but not closed.
- Throws:
IllegalArgumentException
- ifformat
is not supported.
protected FramePeer createFrame(Frame frontend)
- Overrides:
- createFrame in interface Toolkit
public Image createImage(byte[] imagedata, int imageoffset, int imagelength)
- Overrides:
- createImage in interface Toolkit
public Image createImage(ImageProducer producer)
- Overrides:
- createImage in interface Toolkit
protected LabelPeer createLabel(Label frontend)
- Overrides:
- createLabel in interface Toolkit
protected MenuBarPeer createMenuBar(MenuBar frontend)
- Overrides:
- createMenuBar in interface Toolkit
protected MenuItemPeer createMenuItem(MenuItem frontend)
- Overrides:
- createMenuItem in interface Toolkit
protected PanelPeer createPanel(Panel frontend)
- Overrides:
- createPanel in interface Toolkit
protected PopupMenuPeer createPopupMenu(PopupMenu frontend)
- Overrides:
- createPopupMenu in interface Toolkit
public RobotPeer createRobot(GraphicsDevice screen) throws AWTException
- Overrides:
- createRobot in interface ClasspathToolkit
protected ScrollPanePeer createScrollPane(ScrollPane frontend)
- Overrides:
- createScrollPane in interface Toolkit
protected ScrollbarPeer createScrollbar(Scrollbar frontend)
- Overrides:
- createScrollbar in interface Toolkit
protected TextAreaPeer createTextArea(TextArea frontend)
- Overrides:
- createTextArea in interface Toolkit
protected TextFieldPeer createTextField(TextField frontend)
- Overrides:
- createTextField in interface Toolkit
protected WindowPeer createWindow(Window frontend)
- Overrides:
- createWindow in interface Toolkit
public ClasspathFontPeer getClasspathFontPeer(String name, Map<K,V> attrs)
Acquires an appropriateClasspathFontPeer
, for use in classpath's implementation ofFont
.
- Parameters:
name
- The logical name of the font. This may be either a face name or a logical font name, or may even be null. A default implementation of name decoding is provided inClasspathFontPeer
, but may be overridden in other toolkits.attrs
- Any extraTextAttribute
attributes this font peer should have, such as size, weight, family name, or transformation.
public FontMetrics getFontMetrics(Font font)
- Overrides:
- getFontMetrics in interface Toolkit
protected FontPeer getFontPeer(String name, int style)
- Overrides:
- getFontPeer in interface Toolkit
public GraphicsEnvironment getLocalGraphicsEnvironment()
Returns a shared instance of the local, platform-specific graphics environment. This method is specific to GNU Classpath. It gets called by the Classpath implementation ofGraphicsEnvironment.getLocalGraphcisEnvironment()
.
- 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()
- Overrides:
- getSystemEventQueueImpl in interface Toolkit
public boolean isModalExclusionTypeSupported(Dialog.ModalExclusionType modalExclusionType)
- Overrides:
- isModalExclusionTypeSupported in interface Toolkit
public boolean isModalityTypeSupported(Dialog.ModalityType modalityType)
- Overrides:
- isModalityTypeSupported in interface Toolkit
public void iterateNativeQueue(EventQueue locked, boolean block)
Checks the native event queue for events. If blocking, waits until an event is available before returning, unless interrupted by wakeNativeQueue. If non-blocking, returns immediately even if no event is available.
- Parameters:
locked
- The calling EventQueueblock
- If true, waits for a native event before returning
public Map<K,V> mapInputMethodHighlight(InputMethodHighlight highlight)
- Overrides:
- mapInputMethodHighlight in interface Toolkit
public boolean prepareImage(Image image, int width, int height, ImageObserver observer)
- Overrides:
- prepareImage in interface Toolkit