Examples of AxisInfo


Examples of com.odb.collector.AxisInfo

      dsConfig.setDsTimeoutInterval((long) dc.getTimeoutInterval());
      dsConfig.setSeriesCount(dc.getNumberOfSeries());
      int axisCount = dc.getAxisDetails().size();
      AxisInfo[] xsInfoList = new AxisInfo[axisCount];
      for (int i = 0; i < axisCount; i++) {
        xsInfoList[i] = new AxisInfo();
        ArrayList<String> axisLabels = new ArrayList<String>();
        xsInfoList[i].setDataSourceAxisName(dc.getAxisDetails().get(i).getAxisName());
        axisLabels.add(new Integer((int) dc.getAxisDetails().get(i).getMinima()).toString());
        axisLabels.add(new Integer((int) dc.getAxisDetails().get(i).getMaxima()).toString());
        xsInfoList[i].setAxisLabels(axisLabels.toArray(new String[axisLabels.size()]));
View Full Code Here

Examples of com.odb.core.service.AxisInfo

   * @return the mobily chart
   * @throws ChartSettingsNotValidException
   *             the chart settings not valid exception
   */
  private static ODBChart constructLiveChart(DataSourceConfiguration dsConfig, ArrayList<TimeSeriesDataVO> dataList, ChartType chartType) throws ChartSettingsNotValidException {
    AxisInfo dataSourceAxisInfo = null;
    ODBChart liveChart = null;
    Integer min, max, minIndex, maxIndex;
    try {
      for (AxisInfo dsai : dsConfig.getXsInfo()) {
        if ("Y".equals(dsai.getDataSourceAxisType())) {
          dataSourceAxisInfo = dsai;
        }
      }
      ArrayList<String> axisLabels = dataSourceAxisInfo.getAxisLabels();
      min = Integer.parseInt(axisLabels.get(0));
      max = Integer.parseInt(axisLabels.get(axisLabels.size() - 1));
    } catch (Exception e) {
      throw new ChartSettingsNotValidException("The data Source Axis Setting is not valied for Live Chart, please contact your admin");
    }
View Full Code Here

Examples of org.saiku.service.olap.totals.AxisInfo

        if (!cellSet.getAxes().get(0).getAxisOrdinal().equals(Axis.ROWS)) {
          rowsIndex = rowsIndex + 1 & 1;
        }
        // TODO - refactor this using axis ordinals etc.
        //@formatter:off
        final AxisInfo[] axisInfos = new AxisInfo[] { new AxisInfo(cellSet.getAxes().get(rowsIndex)),
          new AxisInfo(cellSet.getAxes().get(rowsIndex + 1 & 1)) };
        //@formatter:on
        List<TotalNode>[][] totals = new List[2][];
        TotalsListsBuilder builder = null;
        for (int index = 0; index < 2; index++) {
          final int second = index + 1 & 1;
View Full Code Here

Examples of org.saiku.service.olap.totals.AxisInfo

      if (!cellSet.getAxes().get(0).getAxisOrdinal().equals(Axis.ROWS)) {
        rowsIndex = rowsIndex + 1 & 1;
      }
      // TODO - refactor this using axis ordinals etc.
      //@formatter:off
      final AxisInfo[] axisInfos = new AxisInfo[] { new AxisInfo(cellSet.getAxes().get(rowsIndex)),
        new AxisInfo(cellSet.getAxes().get(rowsIndex + 1 & 1)) };
      //@formatter:on
      List<TotalNode>[][] totals = new List[2][];
      TotalsListsBuilder builder = null;
      for (int index = 0; index < 2; index++) {
        final int second = index + 1 & 1;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.