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.headless.HeadlessToolkit
public class HeadlessToolkit
extends ClasspathToolkit
Field Summary |
Fields inherited from class java.awt.Toolkit | |
Object>() , desktopProperties , desktopPropsSupport |
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 @Override boolean isModalExclusionTypeSupported(Dialog.ModalExclusionType modalExclusionType)
public @Override boolean isModalityTypeSupported(Dialog.ModalityType modalityType)
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 DialogPeer createDialog(Dialog target)
- Overrides:
- createDialog in interface Toolkit
public DragSourceContextPeer createDragSourceContextPeer(DragGestureEvent e)
- Overrides:
- createDragSourceContextPeer in interface Toolkit
public EmbeddedWindowPeer createEmbeddedWindow(EmbeddedWindow w)
Creates an embedded window peer, and associates it with an EmbeddedWindow object.
- Overrides:
- createEmbeddedWindow in interface ClasspathToolkit
- Parameters:
w
- The embedded window with which to associate a peer.
protected FileDialogPeer createFileDialog(FileDialog target)
- 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.
public Image createImage(byte[] data, int offset, int len)
- Overrides:
- createImage in interface Toolkit
public Image createImage(ImageProducer producer)
- Overrides:
- createImage in interface Toolkit
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
Creates a RobotPeer on a given GraphicsDevice.
- 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 FontMetrics getFontMetrics(Font name)
- 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 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