35 import sun.util.logging.PlatformLogger; 36 37 public class XMenuWindow extends XBaseMenuWindow { 38 39 /************************************************ 40 * 41 * Data members 42 * 43 ************************************************/ 44 45 private static PlatformLogger log = PlatformLogger.getLogger("sun.awt.X11.XMenuWindow"); 46 47 /* 48 * Primary members 49 */ 50 private XMenuPeer menuPeer; 51 52 /* 53 * dimension constants 54 */ 55 private final static int WINDOW_SPACING_LEFT = 2; 56 private final static int WINDOW_SPACING_RIGHT = 2; 57 private final static int WINDOW_SPACING_TOP = 2; 58 private final static int WINDOW_SPACING_BOTTOM = 2; 59 private final static int WINDOW_ITEM_INDENT = 15; 60 private final static int WINDOW_ITEM_MARGIN_LEFT = 2; 61 private final static int WINDOW_ITEM_MARGIN_RIGHT = 2; 62 private final static int WINDOW_ITEM_MARGIN_TOP = 2; 63 private final static int WINDOW_ITEM_MARGIN_BOTTOM = 2; 64 private final static int WINDOW_SHORTCUT_SPACING = 10; 65 66 /* 67 * Checkmark 68 */ 69 private static final int CHECKMARK_SIZE = 128; 70 private static final int[] CHECKMARK_X = new int[] {1, 25,56,124,124,85, 64}; // X-coords 71 private static final int[] CHECKMARK_Y = new int[] {59,35,67, 0, 12,66,123}; // Y-coords 72 73 /************************************************ 74 * 75 * Mapping data 76 * 77 ************************************************/ 78 79 static class MappingData extends XBaseMenuWindow.MappingData { 80 /** 81 * Rectangle for the caption 82 * Necessary to fix 6267144: PIT: Popup menu label is not shown, XToolkit 83 */ 84 private Rectangle captionRect; | 35 import sun.util.logging.PlatformLogger; 36 37 public class XMenuWindow extends XBaseMenuWindow { 38 39 /************************************************ 40 * 41 * Data members 42 * 43 ************************************************/ 44 45 private static PlatformLogger log = PlatformLogger.getLogger("sun.awt.X11.XMenuWindow"); 46 47 /* 48 * Primary members 49 */ 50 private XMenuPeer menuPeer; 51 52 /* 53 * dimension constants 54 */ 55 private static final int WINDOW_SPACING_LEFT = 2; 56 private static final int WINDOW_SPACING_RIGHT = 2; 57 private static final int WINDOW_SPACING_TOP = 2; 58 private static final int WINDOW_SPACING_BOTTOM = 2; 59 private static final int WINDOW_ITEM_INDENT = 15; 60 private static final int WINDOW_ITEM_MARGIN_LEFT = 2; 61 private static final int WINDOW_ITEM_MARGIN_RIGHT = 2; 62 private static final int WINDOW_ITEM_MARGIN_TOP = 2; 63 private static final int WINDOW_ITEM_MARGIN_BOTTOM = 2; 64 private static final int WINDOW_SHORTCUT_SPACING = 10; 65 66 /* 67 * Checkmark 68 */ 69 private static final int CHECKMARK_SIZE = 128; 70 private static final int[] CHECKMARK_X = new int[] {1, 25,56,124,124,85, 64}; // X-coords 71 private static final int[] CHECKMARK_Y = new int[] {59,35,67, 0, 12,66,123}; // Y-coords 72 73 /************************************************ 74 * 75 * Mapping data 76 * 77 ************************************************/ 78 79 static class MappingData extends XBaseMenuWindow.MappingData { 80 /** 81 * Rectangle for the caption 82 * Necessary to fix 6267144: PIT: Popup menu label is not shown, XToolkit 83 */ 84 private Rectangle captionRect; |