01: package com.jidesoft.plaf.aqua;
02:
03: import com.jidesoft.plaf.basic.BasicGripperUI;
04: import com.jidesoft.swing.Gripper;
05:
06: import javax.swing.*;
07: import javax.swing.plaf.ComponentUI;
08: import java.awt.*;
09:
10: /**
11: * @author olifink
12: */
13: public class AquaGripperUI extends BasicGripperUI {
14: public static ComponentUI createUI(JComponent c) {
15: return new AquaGripperUI();
16: }
17:
18: @Override
19: public void paint(Graphics g, JComponent c) {
20: Gripper gripper = (Gripper) c;
21: paintBackground(g, gripper);
22: getPainter().paintGripper(c, g,
23: new Rectangle(0, 0, c.getWidth(), c.getHeight()),
24: gripper.getOrientation(), 0);
25: }
26: }
|