本文整理汇总了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;
}
示例2: dataClear
import com.ait.lienzo.charts.client.core.model.DataTable; //导入依赖的package包/类
@Override
public void dataClear() {
dataTable = new DataTable();
}
示例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];
}
};
}
示例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];
}
};
}
示例5: XYChartData
import com.ait.lienzo.charts.client.core.model.DataTable; //导入依赖的package包/类
public XYChartData(DataTable dataTable)
{
this(XYChartDataJSO.make());
m_jso.setDataTable(dataTable);
}
示例6: getDataTable
import com.ait.lienzo.charts.client.core.model.DataTable; //导入依赖的package包/类
public final DataTable getDataTable()
{
return m_jso.getDataTable();
}
示例7: setDataTable
import com.ait.lienzo.charts.client.core.model.DataTable; //导入依赖的package包/类
public final native void setDataTable(DataTable dataTable) /*-{
this.dataTable = dataTable;
}-*/;