/[classpath]/classpath/java/awt/Toolkit.java
ViewVC logotype

Diff of /classpath/java/awt/Toolkit.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by mkoch, Thu Nov 7 10:07:57 2002 UTC revision 1.13 by mkoch, Tue Jan 14 21:30:38 2003 UTC
# Line 123  public abstract class Toolkit Line 123  public abstract class Toolkit
123     * Creates a peer object for the specified <code>Button</code>.     * Creates a peer object for the specified <code>Button</code>.
124     *     *
125     * @param target The <code>Button</code> to create the peer for.     * @param target The <code>Button</code> to create the peer for.
126       *
127     * @return The peer for the specified <code>Button</code> object.     * @return The peer for the specified <code>Button</code> object.
128       *
129       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
130     */     */
131    protected abstract ButtonPeer createButton(Button target);    protected abstract ButtonPeer createButton(Button target);
132    
# Line 132  public abstract class Toolkit Line 135  public abstract class Toolkit
135     *     *
136     * @param target The <code>TextField</code> to create the peer for.     * @param target The <code>TextField</code> to create the peer for.
137     * @return The peer for the specified <code>TextField</code> object.     * @return The peer for the specified <code>TextField</code> object.
138       *
139       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
140     */     */
141    protected abstract TextFieldPeer createTextField(TextField target);    protected abstract TextFieldPeer createTextField(TextField target);
142    
# Line 140  public abstract class Toolkit Line 145  public abstract class Toolkit
145     *     *
146     * @param target The <code>Label</code> to create the peer for.     * @param target The <code>Label</code> to create the peer for.
147     * @return The peer for the specified <code>Label</code> object.     * @return The peer for the specified <code>Label</code> object.
148       *
149       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
150     */     */
151    protected abstract LabelPeer createLabel(Label target);    protected abstract LabelPeer createLabel(Label target);
152    
# Line 148  public abstract class Toolkit Line 155  public abstract class Toolkit
155     *     *
156     * @param target The <code>List</code> to create the peer for.     * @param target The <code>List</code> to create the peer for.
157     * @return The peer for the specified <code>List</code> object.     * @return The peer for the specified <code>List</code> object.
158       *
159       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
160     */     */
161    protected abstract ListPeer createList(List target);    protected abstract ListPeer createList(List target);
162    
# Line 156  public abstract class Toolkit Line 165  public abstract class Toolkit
165     *     *
166     * @param target The <code>Checkbox</code> to create the peer for.     * @param target The <code>Checkbox</code> to create the peer for.
167     * @return The peer for the specified <code>Checkbox</code> object.     * @return The peer for the specified <code>Checkbox</code> object.
168       *
169       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
170     */     */
171    protected abstract CheckboxPeer createCheckbox(Checkbox target);    protected abstract CheckboxPeer createCheckbox(Checkbox target);
172    
# Line 164  public abstract class Toolkit Line 175  public abstract class Toolkit
175     *     *
176     * @param target The <code>Scrollbar</code> to create the peer for.     * @param target The <code>Scrollbar</code> to create the peer for.
177     * @return The peer for the specified <code>Scrollbar</code> object.     * @return The peer for the specified <code>Scrollbar</code> object.
178       *
179       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
180     */     */
181    protected abstract ScrollbarPeer createScrollbar(Scrollbar target);    protected abstract ScrollbarPeer createScrollbar(Scrollbar target);
182    
# Line 172  public abstract class Toolkit Line 185  public abstract class Toolkit
185     *     *
186     * @param target The <code>ScrollPane</code> to create the peer for.     * @param target The <code>ScrollPane</code> to create the peer for.
187     * @return The peer for the specified <code>ScrollPane</code> object.     * @return The peer for the specified <code>ScrollPane</code> object.
188       *
189       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
190     */     */
191    protected abstract ScrollPanePeer createScrollPane(ScrollPane target);    protected abstract ScrollPanePeer createScrollPane(ScrollPane target);
192    
# Line 180  public abstract class Toolkit Line 195  public abstract class Toolkit
195     *     *
196     * @param target The <code>TextArea</code> to create the peer for.     * @param target The <code>TextArea</code> to create the peer for.
197     * @return The peer for the specified <code>TextArea</code> object.     * @return The peer for the specified <code>TextArea</code> object.
198       *
199       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
200     */     */
201    protected abstract TextAreaPeer createTextArea(TextArea target);    protected abstract TextAreaPeer createTextArea(TextArea target);
202    
# Line 188  public abstract class Toolkit Line 205  public abstract class Toolkit
205     *     *
206     * @param target The <code>Choice</code> to create the peer for.     * @param target The <code>Choice</code> to create the peer for.
207     * @return The peer for the specified <code>Choice</code> object.     * @return The peer for the specified <code>Choice</code> object.
208       *
209       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
210     */     */
211    protected abstract ChoicePeer createChoice(Choice target);    protected abstract ChoicePeer createChoice(Choice target);
212    
# Line 196  public abstract class Toolkit Line 215  public abstract class Toolkit
215     *     *
216     * @param target The <code>Frame</code> to create the peer for.     * @param target The <code>Frame</code> to create the peer for.
217     * @return The peer for the specified <code>Frame</code> object.     * @return The peer for the specified <code>Frame</code> object.
218       *
219       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
220     */     */
221    protected abstract FramePeer createFrame(Frame target);    protected abstract FramePeer createFrame(Frame target);
222    
# Line 220  public abstract class Toolkit Line 241  public abstract class Toolkit
241     *     *
242     * @param target The <code>Window</code> to create the peer for.     * @param target The <code>Window</code> to create the peer for.
243     * @return The peer for the specified <code>Window</code> object.     * @return The peer for the specified <code>Window</code> object.
244       *
245       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
246     */     */
247    protected abstract WindowPeer createWindow(Window target);    protected abstract WindowPeer createWindow(Window target);
248    
# Line 228  public abstract class Toolkit Line 251  public abstract class Toolkit
251     *     *
252     * @param target The dialog to create the peer for     * @param target The dialog to create the peer for
253     * @return The peer for the specified font name.     * @return The peer for the specified font name.
254       *
255       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
256     */     */
257    protected abstract DialogPeer createDialog(Dialog target);    protected abstract DialogPeer createDialog(Dialog target);
258    
# Line 236  public abstract class Toolkit Line 261  public abstract class Toolkit
261     *     *
262     * @param target The <code>MenuBar</code> to create the peer for.     * @param target The <code>MenuBar</code> to create the peer for.
263     * @return The peer for the specified <code>MenuBar</code> object.     * @return The peer for the specified <code>MenuBar</code> object.
264       *
265       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
266     */     */
267    protected abstract MenuBarPeer createMenuBar(MenuBar target);    protected abstract MenuBarPeer createMenuBar(MenuBar target);
268    
# Line 244  public abstract class Toolkit Line 271  public abstract class Toolkit
271     *     *
272     * @param target The <code>Menu</code> to create the peer for.     * @param target The <code>Menu</code> to create the peer for.
273     * @return The peer for the specified <code>Menu</code> object.     * @return The peer for the specified <code>Menu</code> object.
274       *
275       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
276     */     */
277    protected abstract MenuPeer createMenu(Menu target);    protected abstract MenuPeer createMenu(Menu target);
278    
# Line 252  public abstract class Toolkit Line 281  public abstract class Toolkit
281     *     *
282     * @param target The <code>PopupMenu</code> to create the peer for.     * @param target The <code>PopupMenu</code> to create the peer for.
283     * @return The peer for the specified <code>PopupMenu</code> object.     * @return The peer for the specified <code>PopupMenu</code> object.
284       *
285       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
286     */     */
287    protected abstract PopupMenuPeer createPopupMenu(PopupMenu target);    protected abstract PopupMenuPeer createPopupMenu(PopupMenu target);
288    
# Line 260  public abstract class Toolkit Line 291  public abstract class Toolkit
291     *     *
292     * @param target The <code>MenuItem</code> to create the peer for.     * @param target The <code>MenuItem</code> to create the peer for.
293     * @return The peer for the specified <code>MenuItem</code> object.     * @return The peer for the specified <code>MenuItem</code> object.
294       *
295       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
296     */     */
297    protected abstract MenuItemPeer createMenuItem(MenuItem target);    protected abstract MenuItemPeer createMenuItem(MenuItem target);
298    
# Line 268  public abstract class Toolkit Line 301  public abstract class Toolkit
301     *     *
302     * @param target The <code>FileDialog</code> to create the peer for.     * @param target The <code>FileDialog</code> to create the peer for.
303     * @return The peer for the specified <code>FileDialog</code> object.     * @return The peer for the specified <code>FileDialog</code> object.
304       *
305       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
306     */     */
307    protected abstract FileDialogPeer createFileDialog(FileDialog target);    protected abstract FileDialogPeer createFileDialog(FileDialog target);
308    
# Line 276  public abstract class Toolkit Line 311  public abstract class Toolkit
311     *     *
312     * @param target The <code>CheckboxMenuItem</code> to create the peer for.     * @param target The <code>CheckboxMenuItem</code> to create the peer for.
313     * @return The peer for the specified <code>CheckboxMenuItem</code> object.     * @return The peer for the specified <code>CheckboxMenuItem</code> object.
314       *
315       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
316     */     */
317    protected abstract CheckboxMenuItemPeer    protected abstract CheckboxMenuItemPeer
318      createCheckboxMenuItem(CheckboxMenuItem target);      createCheckboxMenuItem(CheckboxMenuItem target);
# Line 310  public abstract class Toolkit Line 347  public abstract class Toolkit
347     * the interface used by the <code>SystemColors</code> class.     * the interface used by the <code>SystemColors</code> class.
348     *     *
349     * @param colors The array to copy the system colors into.     * @param colors The array to copy the system colors into.
350       *
351       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
352     */     */
353    protected void loadSystemColors(int systemColors[])    protected void loadSystemColors(int systemColors[])
354    {    {
# Line 318  public abstract class Toolkit Line 357  public abstract class Toolkit
357    
358    /**    /**
359     * @since 1.4     * @since 1.4
360       *
361       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
362     */     */
363    public void setDynamicLayout(boolean dynamic)    public void setDynamicLayout(boolean dynamic)
364    {    {
# Line 325  public abstract class Toolkit Line 366  public abstract class Toolkit
366    
367    /**    /**
368     * @since 1.4     * @since 1.4
369       *
370       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
371     */     */
372    protected boolean isDynamicLayoutSet()    protected boolean isDynamicLayoutSet()
373    {    {
# Line 333  public abstract class Toolkit Line 376  public abstract class Toolkit
376    
377    /**    /**
378     * @since 1.4     * @since 1.4
379       *
380       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
381     */     */
382    public boolean isDynamicLayoutActive()    public boolean isDynamicLayoutActive()
383    {    {
# Line 343  public abstract class Toolkit Line 388  public abstract class Toolkit
388     * Returns the dimensions of the screen in pixels.     * Returns the dimensions of the screen in pixels.
389     *     *
390     * @return The dimensions of the screen in pixels.     * @return The dimensions of the screen in pixels.
391       *
392       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
393     */     */
394    public abstract Dimension getScreenSize();    public abstract Dimension getScreenSize();
395    
# Line 350  public abstract class Toolkit Line 397  public abstract class Toolkit
397     * Returns the screen resolution in dots per square inch.     * Returns the screen resolution in dots per square inch.
398     *     *
399     * @return The screen resolution in dots per square inch.     * @return The screen resolution in dots per square inch.
400       *
401       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
402     */     */
403    public abstract int getScreenResolution();    public abstract int getScreenResolution();
404    
405    /**    /**
406       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
407       *
408     * @since 1.4     * @since 1.4
409     */     */
410    public Insets getScreenInsets(GraphicsConfiguration gc)    public Insets getScreenInsets(GraphicsConfiguration gc)
# Line 396  public abstract class Toolkit Line 447  public abstract class Toolkit
447     * if the property is not set.     * if the property is not set.
448     *     *
449     * @return An instance of the system default toolkit.     * @return An instance of the system default toolkit.
450       *
451     * @throws AWTError If the toolkit cannot be loaded.     * @throws AWTError If the toolkit cannot be loaded.
452     */     */
453    public static Toolkit getDefaultToolkit()    public static Toolkit getDefaultToolkit()
# Line 450  public abstract class Toolkit Line 502  public abstract class Toolkit
502     * @param height The height of the image.     * @param height The height of the image.
503     * @param observer The observer to receive events about the preparation     * @param observer The observer to receive events about the preparation
504     * process.     * process.
505       *
506     * @return <code>true</code> if the image is already prepared for rendering,     * @return <code>true</code> if the image is already prepared for rendering,
507     * <code>false</code> otherwise.     * <code>false</code> otherwise.
508     */     */
# Line 465  public abstract class Toolkit Line 518  public abstract class Toolkit
518     * @param height The height of the image.     * @param height The height of the image.
519     * @param observer The observer to receive events about the preparation     * @param observer The observer to receive events about the preparation
520     * process.     * process.
521       *
522     * @return A union of the bitmasks from     * @return A union of the bitmasks from
523     * <code>java.awt.image.ImageObserver</code> that indicates the current     * <code>java.awt.image.ImageObserver</code> that indicates the current
524     * state of the imaging readying process.     * state of the imaging readying process.
# Line 476  public abstract class Toolkit Line 530  public abstract class Toolkit
530     * Creates an image using the specified <code>ImageProducer</code>     * Creates an image using the specified <code>ImageProducer</code>
531     *     *
532     * @param producer The <code>ImageProducer</code> to create the image from.     * @param producer The <code>ImageProducer</code> to create the image from.
533       *
534     * @return The created image.     * @return The created image.
535     */     */
536    public abstract Image createImage(ImageProducer producer);    public abstract Image createImage(ImageProducer producer);
# Line 485  public abstract class Toolkit Line 540  public abstract class Toolkit
540     * a recognized format.  Supported formats vary from toolkit to toolkit.     * a recognized format.  Supported formats vary from toolkit to toolkit.
541     *     *
542     * @param data The raw image data.     * @param data The raw image data.
543       *
544     * @return The created image.     * @return The created image.
545     */     */
546    public Image createImage(byte[] data)    public Image createImage(byte[] data)
# Line 500  public abstract class Toolkit Line 556  public abstract class Toolkit
556     * @param data The raw image data.     * @param data The raw image data.
557     * @param offset The offset into the data where the image data starts.     * @param offset The offset into the data where the image data starts.
558     * @param len The length of the image data.     * @param len The length of the image data.
559       *
560     * @return The created image.     * @return The created image.
561     */     */
562    public abstract Image createImage(byte[] data, int offset, int len);    public abstract Image createImage(byte[] data, int offset, int len);
# Line 511  public abstract class Toolkit Line 568  public abstract class Toolkit
568     * @param frame The window initiating the print job.     * @param frame The window initiating the print job.
569     * @param title The print job title.     * @param title The print job title.
570     * @param props The print job properties.     * @param props The print job properties.
571       *
572     * @return The requested print job, or <code>null</code> if the job     * @return The requested print job, or <code>null</code> if the job
573     * was cancelled.     * was cancelled.
574     */     */
# Line 536  public abstract class Toolkit Line 594  public abstract class Toolkit
594     * Returns the system clipboard.     * Returns the system clipboard.
595     *     *
596     * @return THe system clipboard.     * @return THe system clipboard.
597       *
598       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
599     */     */
600    public abstract Clipboard getSystemClipboard();    public abstract Clipboard getSystemClipboard();
601    
602    /**    /**
603       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
604       *
605     * @since 1.4     * @since 1.4
606     */     */
607    public Clipboard getSystemSelection()    public Clipboard getSystemSelection()
# Line 553  public abstract class Toolkit Line 615  public abstract class Toolkit
615     * to change the default.     * to change the default.
616     *     *
617     * @return The key mask for the menu accelerator key.     * @return The key mask for the menu accelerator key.
618       *
619       * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
620     */     */
621    public int getMenuShortcutKeyMask()    public int getMenuShortcutKeyMask()
622    {    {

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26