1 /* |
1 /* |
2 * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
728 |
728 |
729 public int checkImage(Image img, int w, int h, ImageObserver o) { |
729 public int checkImage(Image img, int w, int h, ImageObserver o) { |
730 return Toolkit.getDefaultToolkit().checkImage(img, w, h, o); |
730 return Toolkit.getDefaultToolkit().checkImage(img, w, h, o); |
731 } |
731 } |
732 |
732 |
733 public Dimension preferredSize() { |
|
734 return getPreferredSize(); |
|
735 } |
|
736 |
|
737 public Dimension minimumSize() { |
|
738 return getMinimumSize(); |
|
739 } |
|
740 |
|
741 public Insets getInsets() { |
733 public Insets getInsets() { |
742 return new Insets(0, 0, 0, 0); |
734 return new Insets(0, 0, 0, 0); |
743 } |
735 } |
744 |
736 |
745 public void beginValidate() { |
737 public void beginValidate() { |
746 } |
738 } |
747 |
739 |
748 public void endValidate() { |
740 public void endValidate() { |
749 } |
|
750 |
|
751 |
|
752 /** |
|
753 * DEPRECATED: Replaced by getInsets(). |
|
754 */ |
|
755 |
|
756 public Insets insets() { |
|
757 return getInsets(); |
|
758 } |
741 } |
759 |
742 |
760 // Returns true if we are inside begin/endLayout and |
743 // Returns true if we are inside begin/endLayout and |
761 // are waiting for native painting |
744 // are waiting for native painting |
762 public boolean isPaintPending() { |
745 public boolean isPaintPending() { |