01: /*
02: * @(#)${NAME}
03: *
04: * Copyright 2002 - 2004 JIDE Software Inc. All rights reserved.
05: */
06:
07: package com.jidesoft.plaf.aqua;
08:
09: import com.jidesoft.plaf.basic.BasicJideSplitButtonUI;
10:
11: import javax.swing.*;
12: import javax.swing.plaf.ComponentUI;
13:
14: /**
15: * Menu UI implementation
16: */
17: public class AquaJideSplitButtonUI extends BasicJideSplitButtonUI {
18:
19: public static ComponentUI createUI(JComponent x) {
20: return new AquaJideSplitButtonUI();
21: }
22:
23: /**
24: * The gap between the button part and the drop down menu part.
25: *
26: * @return the gap.
27: */
28: @Override
29: protected int getOffset() {
30: return 2;
31: }
32: }
|