当前位置: 首页>>代码示例>>Java>>正文


Java DataTable类代码示例

本文整理汇总了Java中com.ait.lienzo.charts.client.core.model.DataTable的典型用法代码示例。如果您正苦于以下问题:Java DataTable类的具体用法?Java DataTable怎么用?Java DataTable使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


DataTable类属于com.ait.lienzo.charts.client.core.model包,在下文中一共展示了DataTable类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getDataTable

import com.ait.lienzo.charts.client.core.model.DataTable; //导入依赖的package包/类
public DataTable getDataTable() {
    return dataTable;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:4,代码来源:LienzoDisplayerView.java

示例2: dataClear

import com.ait.lienzo.charts.client.core.model.DataTable; //导入依赖的package包/类
@Override
public void dataClear() {
    dataTable = new DataTable();
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:5,代码来源:LienzoDisplayerView.java

示例3: buildValuesAxisSummary

import com.ait.lienzo.charts.client.core.model.DataTable; //导入依赖的package包/类
public void buildValuesAxisSummary()
{
    if (data == null) return;

    // Obtain limit values for number and date columns, for each series.
    final XYChartSeries[] series = data.getSeries();
    this.numSeries = series.length;
    final DataTable dataTable = data.getDataTable();
    for (int i = 0; i < series.length; i++)
    {
        final XYChartSeries serie = series[i];
        final String valuesAxisProperty = serie.getValuesAxisProperty();
        final DataTableColumn valuesColumn = dataTable.getColumn(valuesAxisProperty);
        final DataTableColumn.DataTableColumnType valuesColumnType = valuesColumn.getType();
        switch (valuesColumnType) {
            case NUMBER:
                final Double[] columnLimits = (Double[]) getLimitValues(valuesColumn, maxNumericValue[1], minNumericValue[1]);
                if (columnLimits[0] <= minNumericValue[1]) minNumericValue[1] = columnLimits[0];
                if (columnLimits[1] >= maxNumericValue[1]) maxNumericValue[1] = columnLimits[1];
                break;
            case DATE:
                final Date[] _columnLimits = (Date[]) getLimitValues(valuesColumn, maxDateValue[1], minDateValue[1]);
                if (_columnLimits[1].after(maxDateValue[1])) maxDateValue[1] = _columnLimits[1];
                if (_columnLimits[0].before(minDateValue[1])) minDateValue[1] = _columnLimits[0];
                break;
            case STRING:
                break;
            default:
                break;
        }
    }
    
    // Build the axis summary instance.
    this.valuesAxisSummary  = new AxisSummary() {
        @Override
        public double getMaxNumericValue() {
            return maxNumericValue[1];
        }

        @Override
        public Date getMaxDateValue() {
            return maxDateValue[1];
        }

        @Override
        public double getMinNumericValue() {
            return minNumericValue[1];
        }

        @Override
        public Date getMinDateValue() {
            return minDateValue[1];
        }
    };
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:56,代码来源:XYChartDataSummary.java

示例4: buildCategoriesAxisSummary

import com.ait.lienzo.charts.client.core.model.DataTable; //导入依赖的package包/类
private void buildCategoriesAxisSummary() {
    final DataTable dataTable = data.getDataTable();
    final DataTableColumn valuesColumn = dataTable.getColumn(getData().getCategoryAxisProperty());
    final DataTableColumn.DataTableColumnType valuesColumnType = valuesColumn.getType();

    // Obtain limit values for number and date columns, for category axis column,
    switch (valuesColumnType) {
        case NUMBER:
            final Double[] columnLimits = (Double[]) getLimitValues(valuesColumn, maxNumericValue[0], minNumericValue[0]);
            if (columnLimits[0] <= minNumericValue[0]) minNumericValue[0] = columnLimits[0];
            if (columnLimits[1] >= maxNumericValue[0]) maxNumericValue[0] = columnLimits[1];
            break;
        case DATE:
            final Date[] _columnLimits = (Date[]) getLimitValues(valuesColumn, maxDateValue[0], minDateValue[0]);
            if (_columnLimits[1].after(maxDateValue[0])) maxDateValue[0] = _columnLimits[1];
            if (_columnLimits[0].before(minDateValue[0])) minDateValue[0] = _columnLimits[0];
            break;
        case STRING:
            break;
        default:
            break;
    }
    
    // Build the axis summary instance.
    this.categoriesAxisSummary = new AxisSummary() {
        @Override
        public double getMaxNumericValue() {
            return maxNumericValue[0];
        }

        @Override
        public Date getMaxDateValue() {
            return maxDateValue[0];
        }

        @Override
        public double getMinNumericValue() {
            return minNumericValue[0];
        }

        @Override
        public Date getMinDateValue() {
            return minDateValue[0];
        }
    };
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:47,代码来源:XYChartDataSummary.java

示例5: XYChartData

import com.ait.lienzo.charts.client.core.model.DataTable; //导入依赖的package包/类
public XYChartData(DataTable dataTable)
{
    this(XYChartDataJSO.make());

    m_jso.setDataTable(dataTable);
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:7,代码来源:XYChartData.java

示例6: getDataTable

import com.ait.lienzo.charts.client.core.model.DataTable; //导入依赖的package包/类
public final DataTable getDataTable()
{
    return m_jso.getDataTable();
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:5,代码来源:XYChartData.java

示例7: setDataTable

import com.ait.lienzo.charts.client.core.model.DataTable; //导入依赖的package包/类
public final native void setDataTable(DataTable dataTable) /*-{
this.dataTable = dataTable;
     }-*/;
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:4,代码来源:XYChartData.java


注:本文中的com.ait.lienzo.charts.client.core.model.DataTable类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。