- /** used to avoid garbage creation with getClipBounds() */
- private static Rectangle clipBounds = new Rectangle();
-
- protected static void _doDrawImage(Graphics g, Image i, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver o) {
- if (dx1 == dx2 || dy1 == dy2) return;
- g.drawImage(i, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, o);
- }
-
- protected org.xwt.Weak _getWeak(Object o) { return new Java2Weak(o); }
- private static class Java2Weak extends java.lang.ref.WeakReference implements org.xwt.Weak {
- public Java2Weak(Object o) { super(o); }
- }
-
- private String __getClipBoard() { return super._getClipBoard(); }
- protected String _getClipBoard() {
- return (String)java.security.AccessController.doPrivileged(new java.security.PrivilegedAction() {
- public Object run() { return __getClipBoard(); }
- });
- }
-
- private void __setClipBoard(String s) { super._setClipBoard(s); }
- protected void _setClipBoard(final String s) {
- java.security.AccessController.doPrivileged(new java.security.PrivilegedAction() {
- public Object run() {
- __setClipBoard(s);
- return null;
- }
- });
- }
-