本文整理匯總了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);
}