src/macosx/classes/sun/lwawt/LWComponentPeer.java

Print this page




 948                         getFocusOwner();
 949                 Component focusOwner = (focusOwnerPeer != null) ? focusOwnerPeer.getTarget() : null;
 950                 return LWKeyboardFocusManagerPeer.deliverFocus(lightweightChild,
 951                         getTarget(), temporary,
 952                         focusedWindowChangeAllowed,
 953                         time, cause, focusOwner);
 954             case LWKeyboardFocusManagerPeer.SNFH_SUCCESS_HANDLED:
 955                 return true;
 956         }
 957 
 958         return false;
 959     }
 960 
 961     @Override
 962     public Image createImage(ImageProducer producer) {
 963         return new ToolkitImage(producer);
 964     }
 965 
 966     @Override
 967     public Image createImage(int w, int h) {
 968         // TODO: accelerated image
 969         return getGraphicsConfiguration().createCompatibleImage(w, h);
 970     }
 971 
 972     @Override
 973     public VolatileImage createVolatileImage(int w, int h) {
 974         // TODO: is it a right/complete implementation?
 975         return new SunVolatileImage(getTarget(), w, h);
 976     }
 977 
 978     @Override
 979     public boolean prepareImage(Image img, int w, int h, ImageObserver o) {
 980         // TODO: is it a right/complete implementation?
 981         return getToolkit().prepareImage(img, w, h, o);
 982     }
 983 
 984     @Override
 985     public int checkImage(Image img, int w, int h, ImageObserver o) {
 986         // TODO: is it a right/complete implementation?
 987         return getToolkit().checkImage(img, w, h, o);
 988     }
 989 




 948                         getFocusOwner();
 949                 Component focusOwner = (focusOwnerPeer != null) ? focusOwnerPeer.getTarget() : null;
 950                 return LWKeyboardFocusManagerPeer.deliverFocus(lightweightChild,
 951                         getTarget(), temporary,
 952                         focusedWindowChangeAllowed,
 953                         time, cause, focusOwner);
 954             case LWKeyboardFocusManagerPeer.SNFH_SUCCESS_HANDLED:
 955                 return true;
 956         }
 957 
 958         return false;
 959     }
 960 
 961     @Override
 962     public Image createImage(ImageProducer producer) {
 963         return new ToolkitImage(producer);
 964     }
 965 
 966     @Override
 967     public Image createImage(int w, int h) {
 968         CGraphicsConfig gc = (CGraphicsConfig)getGraphicsConfiguration();
 969         return gc.createAcceleratedImage(getTarget(), w, h);
 970     }
 971 
 972     @Override
 973     public VolatileImage createVolatileImage(int w, int h) {
 974         // TODO: is it a right/complete implementation?
 975         return new SunVolatileImage(getTarget(), w, h);
 976     }
 977 
 978     @Override
 979     public boolean prepareImage(Image img, int w, int h, ImageObserver o) {
 980         // TODO: is it a right/complete implementation?
 981         return getToolkit().prepareImage(img, w, h, o);
 982     }
 983 
 984     @Override
 985     public int checkImage(Image img, int w, int h, ImageObserver o) {
 986         // TODO: is it a right/complete implementation?
 987         return getToolkit().checkImage(img, w, h, o);
 988     }
 989