1 package org.catacomb.graph.gui; 2 3 import java.awt.Graphics; 4 5 import javax.swing.JComponent; 6 import javax.swing.plaf.ComponentUI; 7 import javax.swing.plaf.basic.BasicSplitPaneDivider; 8 import javax.swing.plaf.basic.BasicSplitPaneUI; 9 10 11 final class LeftRightSplitPanelUI extends BasicSplitPaneUI { 12 13 AboveBelowSplitPanel absp; 14 15 GraphColors gcols; 16 17 18 LeftRightSplitPanelUI(AboveBelowSplitPanel ap, GraphColors gc) { 19 super(); 20 21 gcols = gc; 22 23 absp = ap; 24 } 25 26 27 28 public static ComponentUI createUI(JComponent jcomponent) { 29 return (new LeftRightSplitPanelUI(null, null)); 30 } 31 32 public BasicSplitPaneDivider createDefaultDivider() { 33 return (new VerticalAxisGraphDivider(this, absp, gcols)); 34 } 35 36 37 public void paint(Graphics graphics, JComponent jcomponent) { 38 } 39 40 41 protected void uninstallDefaults() { 42 } 43 44 } 45