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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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); |
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 |
{ |
{ |
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 |
{ |
{ |
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 |
{ |
{ |
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 |
{ |
{ |
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 |
|
|
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) |
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() |
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 |
*/ |
*/ |
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. |
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); |
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) |
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); |
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 |
*/ |
*/ |
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() |
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 |
{ |
{ |