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


Java ChartResizeEvent类代码示例

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


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

示例1: configureChart

import com.ait.lienzo.charts.client.core.resizer.ChartResizeEvent; //导入依赖的package包/类
protected void configureChart(C chart) {
    chart.setWidth(width);
    chart.setHeight(height);
    chart.setMarginLeft(marginLeft);
    chart.setMarginRight(marginRight);
    chart.setMarginTop(marginTop);
    chart.setMarginBottom(marginBottom);
    chart.setFontFamily(fontFamily);
    chart.setFontStyle(fontStyle);
    chart.setFontSize(fontSize);
    chart.setShowTitle(true); // TODO: Bug in Lienzo charting -> If title not visible -> javascript error (nullpointer)
    chart.setResizable(resizeEnabled);

    if (resizeEnabled) {
        chart.addChartResizeEventHandler(new ChartResizeEventHandler() {
            public void onChartResize(ChartResizeEvent event) {
                resizePanel((int) event.getWidth(), (int) event.getHeight());
            }
        });
    }

    chart.draw();

    // Create the Chart using animations.
    chart.init(AnimationTweener.LINEAR, ANIMATION_DURATION);
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:27,代码来源:LienzoCategoriesDisplayerView.java

示例2: onChartResize

import com.ait.lienzo.charts.client.core.resizer.ChartResizeEvent; //导入依赖的package包/类
@Override
protected void onChartResize(ChartResizeEvent event)
{
    boolean apply = event.isApply();

    if (apply)
    {
        final double w = event.getWidth() - getMarginLeft() - getMarginRight();
        final double h = event.getHeight() - getMarginTop() - getMarginBottom();
        // Apply resize to bar chart.
        new PieChartResizeAnimation(this, w, h, LINEAR, getDefaultAnimationDuration(), null).run();
    }
    super.onChartResize(event);
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:15,代码来源:PieChart.java

示例3: onChartResize

import com.ait.lienzo.charts.client.core.resizer.ChartResizeEvent; //导入依赖的package包/类
@Override
protected void onChartResize(ChartResizeEvent event)
{
    final boolean apply = event.isApply();

    if (apply)
    {
        final double w = event.getWidth() - getMarginLeft() - getMarginRight();
        final double h = event.getHeight() - getMarginTop() - getMarginBottom();
        // Apply resize to line chart.
        new LineChartResizeAnimation(this, w, h, LINEAR, getDefaultAnimationDuration(), null).run();
    }
    super.onChartResize(event);
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:15,代码来源:LineChart.java

示例4: onChartResize

import com.ait.lienzo.charts.client.core.resizer.ChartResizeEvent; //导入依赖的package包/类
@Override
protected void onChartResize(ChartResizeEvent event)
{
    boolean apply = event.isApply();

    if (apply)
    {
        final double w = event.getWidth() - getMarginLeft() - getMarginRight();
        final double h = event.getHeight() - getMarginTop() - getMarginBottom();
        // Apply resize to bar chart.
        new BarChartResizeAnimation(this, w, h, LINEAR, getDefaultAnimationDuration(), null).run();
    }
    super.onChartResize(event);
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:15,代码来源:BarChart.java

示例5: onChartResize

import com.ait.lienzo.charts.client.core.resizer.ChartResizeEvent; //导入依赖的package包/类
protected void onChartResize(ChartResizeEvent event)
{
    // Fire event for chart resize.
    fireEvent(event);
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:6,代码来源:AbstractChart.java

示例6: addChartResizeEventHandler

import com.ait.lienzo.charts.client.core.resizer.ChartResizeEvent; //导入依赖的package包/类
public HandlerRegistration addChartResizeEventHandler(ChartResizeEventHandler handler)
{
    return addEnsureHandler(ChartResizeEvent.TYPE, handler);
}
 
开发者ID:ahome-it,项目名称:lienzo-charts,代码行数:5,代码来源:AbstractChart.java


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