src/share/classes/com/sun/java/swing/plaf/gtk/GTKIconFactory.java

Print this page

        

*** 149,159 **** } } private static class DelegatingIcon extends SynthIcon implements UIResource { ! private static final Class[] PARAM_TYPES = new Class[] { SynthContext.class, Graphics.class, int.class, int.class, int.class, int.class, int.class }; private Object method; --- 149,159 ---- } } private static class DelegatingIcon extends SynthIcon implements UIResource { ! private static final Class<?>[] PARAM_TYPES = new Class<?>[] { SynthContext.class, Graphics.class, int.class, int.class, int.class, int.class, int.class }; private Object method;
*** 188,198 **** method = resolveMethod((String)method); } return (Method)method; } ! protected Class[] getMethodParamTypes() { return PARAM_TYPES; } private Method resolveMethod(String name) { try { --- 188,198 ---- method = resolveMethod((String)method); } return (Method)method; } ! protected Class<?>[] getMethodParamTypes() { return PARAM_TYPES; } private Method resolveMethod(String name) { try {
*** 260,281 **** // GTK has a separate widget for the handle box, to mirror this // we create a unique icon per ToolBar and lookup the style for the // HandleBox. private static class ToolBarHandleIcon extends DelegatingIcon { ! private static final Class[] PARAM_TYPES = new Class[] { SynthContext.class, Graphics.class, int.class, int.class, int.class, int.class, int.class, Orientation.class, }; private SynthStyle style; public ToolBarHandleIcon() { super(TOOL_BAR_HANDLE_ICON); } ! protected Class[] getMethodParamTypes() { return PARAM_TYPES; } public void paintIcon(SynthContext context, Graphics g, int x, int y, int w, int h) { --- 260,281 ---- // GTK has a separate widget for the handle box, to mirror this // we create a unique icon per ToolBar and lookup the style for the // HandleBox. private static class ToolBarHandleIcon extends DelegatingIcon { ! private static final Class<?>[] PARAM_TYPES = new Class<?>[] { SynthContext.class, Graphics.class, int.class, int.class, int.class, int.class, int.class, Orientation.class, }; private SynthStyle style; public ToolBarHandleIcon() { super(TOOL_BAR_HANDLE_ICON); } ! protected Class<?>[] getMethodParamTypes() { return PARAM_TYPES; } public void paintIcon(SynthContext context, Graphics g, int x, int y, int w, int h) {
*** 321,340 **** } } } private static class MenuArrowIcon extends DelegatingIcon { ! private static final Class[] PARAM_TYPES = new Class[] { SynthContext.class, Graphics.class, int.class, int.class, int.class, int.class, int.class, ArrowType.class, }; public MenuArrowIcon() { super(MENU_ARROW_ICON); } ! protected Class[] getMethodParamTypes() { return PARAM_TYPES; } public void paintIcon(SynthContext context, Graphics g, int x, int y, int w, int h) { --- 321,340 ---- } } } private static class MenuArrowIcon extends DelegatingIcon { ! private static final Class<?>[] PARAM_TYPES = new Class<?>[] { SynthContext.class, Graphics.class, int.class, int.class, int.class, int.class, int.class, ArrowType.class, }; public MenuArrowIcon() { super(MENU_ARROW_ICON); } ! protected Class<?>[] getMethodParamTypes() { return PARAM_TYPES; } public void paintIcon(SynthContext context, Graphics g, int x, int y, int w, int h) {