當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。