Exemple #1
0
 public PlotWindow(String title) {
   super(title);
   setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
   p = new Plot();
   p.init();
   add(p);
   p.setSize(800, 480);
   setSize(800, 480);
   setLocation(100 + 10 * I, 100 + 10 * I);
   I++;
   setVisible(true);
 }
Exemple #2
0
 private MutableTreeNode populatePlot(Plot p) throws SQLException {
   DefaultMutableTreeNode tree = new DefaultMutableTreeNode(p);
   // tree.add(populateAttributes(p));
   Statement stmt = db.statement();
   for (Tree t : p.loadTrees(stmt)) {
     tree.add(populateTree(t));
   }
   stmt.close();
   return tree;
 }
Exemple #3
0
 public void addPlot(String name, int[] data) {
   p.addPlot(name, data);
 }