Exemple #1
0
  private void createAnimatedModels() throws ParseException {
    animatedModel1 = initLinearModel1();
    animatedModel1.setTitle("Valores según medidas");
    animatedModel1.setAnimate(true);
    animatedModel1.setLegendPosition("ne");
    animatedModel1.setLegendPlacement(LegendPlacement.OUTSIDEGRID);
    Axis yAxis = animatedModel1.getAxis(AxisType.Y);
    yAxis.setMin(0);
    yAxis.setMax(50);

    animatedModel2 = initLinearModel2();
    animatedModel2.setTitle("Valores según sensores");
    animatedModel2.setAnimate(true);
    animatedModel2.setLegendPosition("ne");
    animatedModel2.setLegendPlacement(LegendPlacement.OUTSIDEGRID);
    Axis yAxis2 = animatedModel2.getAxis(AxisType.Y);
    yAxis2.setMin(0);
    yAxis2.setMax(50);

    animatedModel3 = initBarModel1();
    animatedModel3.setTitle("Medidas por fecha");
    animatedModel3.setAnimate(true);
    animatedModel3.setLegendPosition("ne");
    animatedModel3.setLegendPlacement(LegendPlacement.OUTSIDEGRID);
    yAxis = animatedModel3.getAxis(AxisType.Y);
    yAxis.setMin(0);
    yAxis.setMax(30);

    animatedModel4 = initBarModel2();
    animatedModel4.setTitle("Sensores por fecha");
    animatedModel4.setAnimate(true);
    animatedModel4.setLegendPosition("ne");
    animatedModel4.setLegendPlacement(LegendPlacement.OUTSIDEGRID);
    yAxis = animatedModel4.getAxis(AxisType.Y);
    yAxis.setMin(0);
    yAxis.setMax(30);
  }