Methods Summary |
---|
public void | beep()
lockAWT();
try {
// ???AWT: is there nothing to be implemented here?
} finally {
unlockAWT();
}
|
public int | checkImage(java.awt.Image image, int width, int height, java.awt.image.ImageObserver observer)
lockAWT();
try {
if (width == 0 || height == 0) {
return ImageObserver.ALLBITS;
}
if (!(image instanceof OffscreenImage)) {
return ImageObserver.ALLBITS;
}
OffscreenImage oi = (OffscreenImage) image;
return oi.checkImage(observer);
} finally {
unlockAWT();
}
|
public java.awt.Image | createImage(java.awt.image.ImageProducer producer)
lockAWT();
try {
return new OffscreenImage(producer);
} finally {
unlockAWT();
}
|
public java.awt.Image | createImage(byte[] imagedata, int imageoffset, int imagelength)
lockAWT();
try {
return new OffscreenImage(new ByteArrayDecodingImageSource(imagedata, imageoffset,
imagelength));
} finally {
unlockAWT();
}
|
public java.awt.Image | createImage(java.net.URL url)
lockAWT();
try {
return new OffscreenImage(new URLDecodingImageSource(url));
} finally {
unlockAWT();
}
|
public java.awt.Image | createImage(java.lang.String filename)
lockAWT();
try {
return new OffscreenImage(new FileDecodingImageSource(filename));
} finally {
unlockAWT();
}
|
public java.awt.image.ColorModel | getColorModel()
lockAWT();
try {
return GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice()
.getDefaultConfiguration().getColorModel();
} finally {
unlockAWT();
}
|
public java.lang.String[] | getFontList()
lockAWT();
try {
} finally {
unlockAWT();
}
return null;
|
public java.awt.FontMetrics | getFontMetrics(java.awt.Font font)
lockAWT();
try {
GraphicsFactory gf = getGraphicsFactory();
return gf.getFontMetrics(font);
} finally {
unlockAWT();
}
|
protected java.awt.peer.FontPeer | getFontPeer(java.lang.String a0, int a1)
lockAWT();
try {
return null;
} finally {
unlockAWT();
}
|
public java.awt.Image | getImage(java.lang.String filename)
return getImage(filename, this);
|
static java.awt.Image | getImage(java.lang.String filename, java.awt.Toolkit toolkit)
synchronized (imageCache) {
Image im = (filename == null ? null : imageCache.get(filename));
if (im == null) {
try {
im = toolkit.createImage(filename);
imageCache.put(filename, im);
} catch (Exception e) {
}
}
return im;
}
|
public java.awt.Image | getImage(java.net.URL url)
return getImage(url, this);
|
static java.awt.Image | getImage(java.net.URL url, java.awt.Toolkit toolkit)
synchronized (imageCache) {
Image im = imageCache.get(url);
if (im == null) {
try {
im = toolkit.createImage(url);
imageCache.put(url, im);
} catch (Exception e) {
}
}
return im;
}
|
public int | getScreenResolution()
lockAWT();
try {
return 62;
} finally {
unlockAWT();
}
|
public java.awt.Dimension | getScreenSize()
lockAWT();
try {
DisplayMode dm = GraphicsEnvironment.getLocalGraphicsEnvironment()
.getDefaultScreenDevice().getDisplayMode();
return new Dimension(dm.getWidth(), dm.getHeight());
} finally {
unlockAWT();
}
|
protected java.awt.EventQueue | getSystemEventQueueImpl()
return getSystemEventQueueCore().getActiveEventQueue();
|
public java.util.Map | mapInputMethodHighlight(java.awt.im.InputMethodHighlight highlight)
lockAWT();
try {
return mapInputMethodHighlightImpl(highlight);
} finally {
unlockAWT();
}
|
public boolean | prepareImage(java.awt.Image image, int width, int height, java.awt.image.ImageObserver observer)
lockAWT();
try {
if (width == 0 || height == 0) {
return true;
}
if (!(image instanceof OffscreenImage)) {
return true;
}
OffscreenImage oi = (OffscreenImage) image;
return oi.prepareImage(observer);
} finally {
unlockAWT();
}
|
public void | sync()
lockAWT();
try {
} finally {
unlockAWT();
}
|