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


Java XYChartData类代码示例

本文整理汇总了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;
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:23,代码来源:LineChartAnimationHelper.java

示例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;
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:23,代码来源:BarChartAnimationHelper.java

示例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);
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:9,代码来源:LineChartReloadAnimation.java

示例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);
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:8,代码来源:LineChartReloadAnimation.java

示例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;
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:15,代码来源:LineChartAnimationHelper.java

示例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);
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:9,代码来源:BarChartReloadAnimation.java

示例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);
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:8,代码来源:BarChartReloadAnimation.java

示例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;
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:9,代码来源:AxisBuilder.java

示例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;
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:8,代码来源:AxisBuilder.java

示例10: reload

import com.ait.lienzo.charts.client.core.xy.XYChartData; //导入依赖的package包/类
public LineChart reload(XYChartData data)
{
    return LineChartAnimationHelper.reload(this, data, LINEAR, getDefaultAnimationDuration());
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:5,代码来源:LineChart.java

示例11: reload

import com.ait.lienzo.charts.client.core.xy.XYChartData; //导入依赖的package包/类
public BarChart reload(XYChartData data)
{
    return BarChartAnimationHelper.reload(this, data, LINEAR, getDefaultAnimationDuration());
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:5,代码来源:BarChart.java

示例12: CachedAxisBuilder

import com.ait.lienzo.charts.client.core.xy.XYChartData; //导入依赖的package包/类
public CachedAxisBuilder(XYChartData data, double chartSizeAttribute)
{
    super(data, chartSizeAttribute);
    clear();
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:6,代码来源:CachedAxisBuilder.java

示例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);
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:7,代码来源:CachedAxisBuilder.java

示例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);
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:7,代码来源:NumericAxisBuilder.java

示例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);
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:7,代码来源:CategoryAxisBuilder.java


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