Package com.odb.core.service

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

TOP

Related Classes of com.odb.core.service.AxisInfo

Copyright © 2018 www.massapicom. 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.