< prev index next >

src/java.desktop/macosx/classes/sun/lwawt/LWToolkit.java

Print this page




 354         targetCreatedPeer(target, peer);
 355         peer.initialize();
 356         return peer;
 357     }
 358 
 359     // ---- NON-COMPONENT PEERS ---- //
 360 
 361     @Override
 362     public final ColorModel getColorModel() throws HeadlessException {
 363         return GraphicsEnvironment.getLocalGraphicsEnvironment()
 364                                   .getDefaultScreenDevice()
 365                                   .getDefaultConfiguration().getColorModel();
 366     }
 367 
 368     @Override
 369     public final boolean isDesktopSupported() {
 370         return true;
 371     }
 372 
 373     @Override





 374     public final KeyboardFocusManagerPeer getKeyboardFocusManagerPeer() {
 375         return LWKeyboardFocusManagerPeer.getInstance();
 376     }
 377 
 378     @Override
 379     public final synchronized MouseInfoPeer getMouseInfoPeer() {
 380         if (mouseInfoPeer == null) {
 381             mouseInfoPeer = createMouseInfoPeerImpl();
 382         }
 383         return mouseInfoPeer;
 384     }
 385 
 386     protected final MouseInfoPeer createMouseInfoPeerImpl() {
 387         return new LWMouseInfoPeer();
 388     }
 389 
 390     protected abstract PlatformWindow getPlatformWindowUnderMouse();
 391 
 392     @Override
 393     public final PrintJob getPrintJob(Frame frame, String doctitle,




 354         targetCreatedPeer(target, peer);
 355         peer.initialize();
 356         return peer;
 357     }
 358 
 359     // ---- NON-COMPONENT PEERS ---- //
 360 
 361     @Override
 362     public final ColorModel getColorModel() throws HeadlessException {
 363         return GraphicsEnvironment.getLocalGraphicsEnvironment()
 364                                   .getDefaultScreenDevice()
 365                                   .getDefaultConfiguration().getColorModel();
 366     }
 367 
 368     @Override
 369     public final boolean isDesktopSupported() {
 370         return true;
 371     }
 372 
 373     @Override
 374     public final boolean isTaskbarSupported() {
 375         return true;
 376     }
 377 
 378     @Override
 379     public final KeyboardFocusManagerPeer getKeyboardFocusManagerPeer() {
 380         return LWKeyboardFocusManagerPeer.getInstance();
 381     }
 382 
 383     @Override
 384     public final synchronized MouseInfoPeer getMouseInfoPeer() {
 385         if (mouseInfoPeer == null) {
 386             mouseInfoPeer = createMouseInfoPeerImpl();
 387         }
 388         return mouseInfoPeer;
 389     }
 390 
 391     protected final MouseInfoPeer createMouseInfoPeerImpl() {
 392         return new LWMouseInfoPeer();
 393     }
 394 
 395     protected abstract PlatformWindow getPlatformWindowUnderMouse();
 396 
 397     @Override
 398     public final PrintJob getPrintJob(Frame frame, String doctitle,


< prev index next >