Esempio n. 1
0
 private static DotDiagram setupDiagram(int v, int[] d1, int[] d2, int[] d3, int mode) {
   DotDiagram bd = new DotDiagram(v, mode);
   bd.setDotColor(0, Color.red);
   bd.setDotColor(1, Color.green);
   bd.setDotColor(2, Color.blue);
   bd.addConstant(Color.yellow, 100);
   bd.setShowGrid(true);
   bd.setYLabel("The Y-Axis (" + (mode == NORMAL ? "normal" : "additive") + ')');
   bd.setData(0, d1, 0, 60);
   bd.setData(1, d2, 0, 60);
   bd.setData(2, d3, 0, 60);
   return bd;
 }