1 package org.catacomb.graph.gui;
2
3 import java.awt.GridLayout;
4
5 import javax.swing.JSplitPane;
6 import javax.swing.border.EmptyBorder;
7
8 public class LeftRightSplitPanel extends BasePanel {
9 static final long serialVersionUID = 1001;
10
11 JSplitPane jsp;
12
13 GraphColors gcols;
14
15 public LeftRightSplitPanel(AboveBelowSplitPanel c1,
16 AboveBelowSplitPanel c2, GraphColors gc) {
17 super();
18 gcols = gc;
19
20 boolean CONTINUOUS_LAYOUT = true;
21
22 setLayout(new GridLayout(1, 1, 0, 0));
23 jsp = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
24 CONTINUOUS_LAYOUT, c1, c2);
25
26 jsp.setUI(new LeftRightSplitPanelUI(c1, gcols));
27
28 jsp.setBorder(new EmptyBorder(0, 0, 0, 0));
29 jsp.setDividerSize(3);
30 add(jsp);
31 }
32
33
34 public void setResizeWeight(double d) {
35 jsp.setResizeWeight(d);
36 }
37
38
39 public void applyLAF() {
40
41
42 }
43
44
45 }
46
47