本文整理汇总了Java中com.ait.lienzo.charts.client.core.xy.XYChartData类的典型用法代码示例。如果您正苦于以下问题:Java XYChartData类的具体用法?Java XYChartData怎么用?Java XYChartData使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
XYChartData类属于com.ait.lienzo.charts.client.core.xy包,在下文中一共展示了XYChartData类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: reload
import com.ait.lienzo.charts.client.core.xy.XYChartData; //导入依赖的package包/类
public static final LineChart reload(final LineChart lineChart, final XYChartData data, final AnimationTweener tweener, final double duration, final IAnimationCallback callback)
{
if (isCleanRequired(lineChart.getData(), data))
{
new LineChartClearAnimation(lineChart, tweener, duration, new AnimationCallback()
{
@Override
public void onClose(IAnimation animation, IAnimationHandle handle)
{
super.onClose(animation, handle);
lineChart.setData(data);
create(lineChart, tweener, duration, callback);
}
}).run();
}
else if (lineChart.getData() != null && data != null)
{
// Reload data as may have been updated.
new LineChartReloadAnimation(lineChart, data, tweener, duration, callback).run();
}
return lineChart;
}
示例2: reload
import com.ait.lienzo.charts.client.core.xy.XYChartData; //导入依赖的package包/类
public static final BarChart reload(final BarChart barChart, final XYChartData data, final AnimationTweener tweener, final double duration, final IAnimationCallback callback)
{
if (isCleanRequired(barChart.getData(), data))
{
new BarChartClearAnimation(barChart, tweener, duration, new AnimationCallback()
{
@Override
public void onClose(IAnimation animation, IAnimationHandle handle)
{
super.onClose(animation, handle);
barChart.setData(data);
create(barChart, tweener, duration, callback);
}
}).run();
}
else if (barChart.getData() != null && data != null)
{
// Reload data as may have been updated.
new BarChartReloadAnimation(barChart, data, tweener, duration, callback).run();
}
return barChart;
}
示例3: LineChartReloadAnimation
import com.ait.lienzo.charts.client.core.xy.XYChartData; //导入依赖的package包/类
public LineChartReloadAnimation(final LineChart lineChart, final XYChartData data, final AnimationTweener tweener, final double duration, final IAnimationCallback callback)
{
super(lineChart, lineChart.getChartWidth(), lineChart.getChartHeight(), tweener, duration, callback);
add(lineChart, buildAnimationProperties(null, null, lineChart.getChartWidth(), lineChart.getChartHeight()));
lineChart.setData(data);
reloadBuilders(data, lineChart.getChartWidth(), lineChart.getChartHeight());
calculate(m_width, m_height);
}
示例4: reloadBuilders
import com.ait.lienzo.charts.client.core.xy.XYChartData; //导入依赖的package包/类
protected void reloadBuilders(final XYChartData data, final double chartWidth, final double chartHeight)
{
Set<String> currentSeries = null;
if (!getLineChart().getSeriesValues().isEmpty()) currentSeries = getLineChart().getSeriesValues().keySet();
getLineChart().getCategoriesAxisBuilder().reload(data, currentSeries, isVertical() ? chartWidth : chartHeight);
getLineChart().getValuesAxisBuilder().reload(data, currentSeries, isVertical() ? chartHeight : chartWidth);
}
示例5: isCleanRequired
import com.ait.lienzo.charts.client.core.xy.XYChartData; //导入依赖的package包/类
private static boolean isCleanRequired(final XYChartData currentData, final XYChartData newData)
{
if (currentData == null && newData == null) return false;
if (currentData == null && newData != null) return false;
if (newData == null && currentData != null) return true;
String currentCategoryAxisProperty = currentData.getCategoryAxisProperty();
String newCategoryAxisProperty = newData.getCategoryAxisProperty();
if (currentCategoryAxisProperty == null && newCategoryAxisProperty != null) return true;
if (currentCategoryAxisProperty == null && newCategoryAxisProperty == null) return false;
if (currentCategoryAxisProperty != null && newCategoryAxisProperty == null) return true;
if (currentCategoryAxisProperty != null && !currentCategoryAxisProperty.equals(newCategoryAxisProperty)) return true;
if (currentData.getDataTable() != null && newData.getDataTable() != null && currentData.getDataTable().size() != newData.getDataTable().size()) return true;
return false;
}
示例6: BarChartReloadAnimation
import com.ait.lienzo.charts.client.core.xy.XYChartData; //导入依赖的package包/类
public BarChartReloadAnimation(final BarChart barChart, final XYChartData data, final AnimationTweener tweener, final double duration, final IAnimationCallback callback)
{
super(barChart, barChart.getChartWidth(), barChart.getChartHeight(), tweener, duration, callback);
add(barChart, buildAnimationProperties(null, null, barChart.getChartWidth(), barChart.getChartHeight()));
barChart.setData(data);
reloadBuilders(data, barChart.getChartWidth(), barChart.getChartHeight());
calculate(m_width, m_height);
}
示例7: reloadBuilders
import com.ait.lienzo.charts.client.core.xy.XYChartData; //导入依赖的package包/类
protected void reloadBuilders(final XYChartData data, final double chartWidth, final double chartHeight)
{
Set<String> currentSeries = null;
if (!getBarChart().getSeriesValues().isEmpty()) currentSeries = getBarChart().getSeriesValues().keySet();
getBarChart().getCategoriesAxisBuilder().reload(data, currentSeries, isVertical() ? chartWidth : chartHeight);
getBarChart().getValuesAxisBuilder().reload(data, currentSeries, isVertical() ? chartHeight : chartWidth);
}
示例8: AxisBuilder
import com.ait.lienzo.charts.client.core.xy.XYChartData; //导入依赖的package包/类
public AxisBuilder(XYChartData data, double chartSizeAttribute, AxisDirection axisDirection)
{
m_dataSummary = new XYChartDataSummary(data);
m_chartSizeAttribute = chartSizeAttribute;
m_axisDirection = axisDirection;
}
示例9: reload
import com.ait.lienzo.charts.client.core.xy.XYChartData; //导入依赖的package包/类
public void reload(XYChartData data, Collection<String> currentSeries, double chartSizeAttribute)
{
// Rebuild data summary as columns, series and values can have been modified.
m_dataSummary = new XYChartDataSummary(data, currentSeries);
m_chartSizeAttribute = chartSizeAttribute;
}
示例10: reload
import com.ait.lienzo.charts.client.core.xy.XYChartData; //导入依赖的package包/类
public LineChart reload(XYChartData data)
{
return LineChartAnimationHelper.reload(this, data, LINEAR, getDefaultAnimationDuration());
}
示例11: reload
import com.ait.lienzo.charts.client.core.xy.XYChartData; //导入依赖的package包/类
public BarChart reload(XYChartData data)
{
return BarChartAnimationHelper.reload(this, data, LINEAR, getDefaultAnimationDuration());
}
示例12: CachedAxisBuilder
import com.ait.lienzo.charts.client.core.xy.XYChartData; //导入依赖的package包/类
public CachedAxisBuilder(XYChartData data, double chartSizeAttribute)
{
super(data, chartSizeAttribute);
clear();
}
示例13: reload
import com.ait.lienzo.charts.client.core.xy.XYChartData; //导入依赖的package包/类
@Override
public void reload(XYChartData data, Collection<String> currentSeries, double chartSizeAttribute)
{
clear();
super.reload(data, currentSeries, chartSizeAttribute);
}
示例14: NumericAxisBuilder
import com.ait.lienzo.charts.client.core.xy.XYChartData; //导入依赖的package包/类
public NumericAxisBuilder(XYChartData data, double chartSizeAttribute, Axis.AxisJSO jso)
{
super(data, chartSizeAttribute);
buildAxis(jso);
}
示例15: CategoryAxisBuilder
import com.ait.lienzo.charts.client.core.xy.XYChartData; //导入依赖的package包/类
public CategoryAxisBuilder(XYChartData data, double chartSizeAttribute, Axis.AxisJSO jso)
{
super(data, chartSizeAttribute);
buildAxis(jso);
}