1 7 package org.ejtools.graph.renderer; 8 9 import java.awt.GridBagConstraints ; 10 import java.awt.GridBagLayout ; 11 12 import javax.swing.JComponent ; 13 14 import org.ejtools.graph.GraphRenderer; 15 16 21 public class GridBagLayoutRenderer extends JPanelGraphRenderer 22 { 23 24 public GridBagLayoutRenderer() 25 { 26 super(new GridBagLayout ()); 27 } 28 29 30 36 public void addRenderer(GraphRenderer renderer, GridBagConstraints constraints) 37 { 38 renderer.setGraphElement(this.element); 39 this.renderers.add(renderer); 40 this.add((JComponent ) renderer, constraints); 41 } 42 43 } 44 | Popular Tags |