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


Java Animation.setEasing方法代码示例

本文整理汇总了Java中com.googlecode.gwt.charts.client.options.Animation.setEasing方法的典型用法代码示例。如果您正苦于以下问题:Java Animation.setEasing方法的具体用法?Java Animation.setEasing怎么用?Java Animation.setEasing使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.googlecode.gwt.charts.client.options.Animation的用法示例。


在下文中一共展示了Animation.setEasing方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createOptions

import com.googlecode.gwt.charts.client.options.Animation; //导入方法依赖的package包/类
@Override
protected Options createOptions() {
    boolean isLine = DisplayerSubType.LINE.equals(subType);

    LineChartOptions options = LineChartOptions.create();
    options.setCurveType(isLine ? CurveType.NONE : CurveType.FUNCTION);
    options.setWidth(width);
    options.setHeight(height);
    options.setBackgroundColor(bgColor);
    options.setChartArea(createChartArea());
    options.setLegend(createChartLegend());
    options.setColors(colors);
    options.setHAxis(createHAxis());
    options.setVAxis(createVAxis());

    if (animationOn) {
        Animation anim = Animation.create();
        anim.setDuration(animationDuration);
        anim.setEasing(AnimationEasing.IN_AND_OUT);
        options.setAnimation(anim);
    }
    return options;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:24,代码来源:GoogleLineChartDisplayerView.java

示例2: createBarOptions

import com.googlecode.gwt.charts.client.options.Animation; //导入方法依赖的package包/类
protected CoreOptions createBarOptions() {
    BarChartOptions options = BarChartOptions.create();
    options.setWidth(width);
    options.setHeight(height);
    options.setBackgroundColor(bgColor);
    options.setLegend(createChartLegend());
    options.setIsStacked(isStacked);
    options.setHAxis(createHAxis());
    options.setVAxis(createVAxis());

    if (animationOn) {
        Animation anim = Animation.create();
        anim.setDuration(animationDuration);
        anim.setEasing(AnimationEasing.IN_AND_OUT);
        options.setAnimation(anim);
    }
    // TODO: options.set3D(displayerSettings.is3d());
    options.setChartArea(createChartArea());
    options.setColors(colors);
    return options;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:22,代码来源:GoogleBarChartDisplayerView.java

示例3: createColumnOptions

import com.googlecode.gwt.charts.client.options.Animation; //导入方法依赖的package包/类
protected CoreOptions createColumnOptions() {
    ColumnChartOptions options = ColumnChartOptions.create();
    options.setWidth(width);
    options.setHeight(height);
    options.setBackgroundColor(bgColor);
    options.setLegend(createChartLegend());
    options.setIsStacked(isStacked);
    options.setChartArea(createChartArea());
    options.setColors(colors);

    if (showXLabels) {
        options.setHAxis(createHAxis());
    }
    if (showYLabels) {
        options.setVAxis(createVAxis());
    }
    if (animationOn) {
        Animation anim = Animation.create();
        anim.setDuration(animationDuration);
        anim.setEasing(AnimationEasing.IN_AND_OUT);
        options.setAnimation(anim);
    }
    return options;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:25,代码来源:GoogleBarChartDisplayerView.java

示例4: createMeterOptions

import com.googlecode.gwt.charts.client.options.Animation; //导入方法依赖的package包/类
protected GaugeOptions createMeterOptions() {
    GaugeOptions options = GaugeOptions.create();
    options.setWidth(width);
    options.setWidth(width);
    options.setHeight(height);
    options.setMin(meterStart);
    options.setMax(meterEnd);
    options.setGreenFrom(meterStart);
    options.setGreenTo(meterWarning);
    options.setYellowFrom(meterWarning);
    options.setYellowTo(meterCritical);
    options.setRedFrom(meterCritical);
    options.setRedTo(meterEnd);
    options.setGreenColor("#0088CE");
    options.setYellowColor("#EC7A08");
    options.setRedColor("#CC0000");
    if (animationOn) {
        Animation anim = Animation.create();
        anim.setDuration(animationDuration);
        anim.setEasing(AnimationEasing.IN_AND_OUT);
        options.setAnimation(anim);
    }
    return options;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:25,代码来源:GoogleMeterChartDisplayerView.java

示例5: createOptions

import com.googlecode.gwt.charts.client.options.Animation; //导入方法依赖的package包/类
@Override
protected Options createOptions() {
    BubbleChartOptions options = BubbleChartOptions.create();
    options.setWidth(width);
    options.setHeight(height);
    options.setBackgroundColor(bgColor);
    options.setChartArea(createChartArea());
    options.setLegend(createChartLegend());
    options.setColors(colors);
    options.setHAxis(createHAxis());
    options.setVAxis(createVAxis());

    if (animationOn) {
        Animation anim = Animation.create();
        anim.setDuration(animationDuration);
        anim.setEasing(AnimationEasing.IN_AND_OUT);
        options.setAnimation(anim);
    }
    return options;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:21,代码来源:GoogleBubbleChartDisplayerView.java

示例6: createOptions

import com.googlecode.gwt.charts.client.options.Animation; //导入方法依赖的package包/类
@Override
protected AreaChartOptions createOptions() {
    AreaChartOptions options = AreaChartOptions.create();
    options.setWidth(width);
    options.setHeight(height);
    options.setBackgroundColor(bgColor);
    options.setLegend(createChartLegend());
    options.setChartArea(createChartArea());
    options.setColors(colors);
    options.setIsStacked(isStacked);
    options.setHAxis(createHAxis());
    options.setVAxis(createVAxis());

    if (animationOn) {
        Animation anim = Animation.create();
        anim.setDuration(animationDuration);
        anim.setEasing(AnimationEasing.IN_AND_OUT);
        options.setAnimation(anim);
    }
    return options;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:22,代码来源:GoogleAreaChartDisplayerView.java

示例7: getOptions

import com.googlecode.gwt.charts.client.options.Animation; //导入方法依赖的package包/类
private BarChartOptions getOptions() {
	// Grid Lines
	Gridlines lines = Gridlines.create();
	lines.setColor("fff");

	// Text Positions X and Y Axis
	HAxis hAxis = HAxis.create();
	hAxis.setTextPosition(TextPosition.NONE);

	VAxis vAxis = VAxis.create();
	vAxis.setGridlines(lines);
	hAxis.setGridlines(lines);

	// Legend
	Legend legend = Legend.create();
	legend.setPosition(LegendPosition.NONE);
	legend.setAligment(LegendAlignment.START);

	// Set options
	BarChartOptions options = BarChartOptions.create();
	options.setHAxis(HAxis.create("Cups"));
	options.setVAxis(VAxis.create("Year"));
	options.setColors("#2196f3", "#42a5f5", "#64b5f6", "#90caf9");
	options.setVAxis(vAxis);
	options.setHAxis(hAxis);
	options.setLegend(legend);
	
	// Set Animation
	Animation animation = Animation.create();
	animation.setDuration(500);
	animation.setEasing(AnimationEasing.OUT);
	options.setAnimation(animation);
	
	// Set Bar
	Bar bar = Bar.create();
	bar.setGroupWidth("50%");
	
	return options;
}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material-demo,代码行数:40,代码来源:MaterialBarChart.java

示例8: getOptions

import com.googlecode.gwt.charts.client.options.Animation; //导入方法依赖的package包/类
private LineChartOptions getOptions() {
	// Options
	LineChartOptions options = LineChartOptions.create();
	options.setBackgroundColor("#2196F3");

	// Legends
	Legend legend = Legend.create();
	legend.setPosition(LegendPosition.NONE);
	options.setLegend(legend);

	// Text Styles
	TextStyle hStyle = TextStyle.create();
	hStyle.setColor("90caf9");

	// Grid Lines
	Gridlines lines = Gridlines.create();
	lines.setColor("1e88e5");

	// HAxis and VAxis
	HAxis hAxis = HAxis.create("");
	VAxis vAxis = VAxis.create("");
	hAxis.setTextStyle(hStyle);
	hAxis.setGridlines(lines);
	vAxis.setTextStyle(hStyle);
	vAxis.setGridlines(lines);

	options.setHAxis(hAxis);
	options.setVAxis(vAxis);

	CurveType type = CurveType.NONE;

	options.setColors("white");
	options.setEnableInteractivity(true);
	options.setCurveType(type);
	options.setPointSize(5);

	// Set Animation
	Animation animation = Animation.create();
	animation.setEasing(AnimationEasing.OUT);
	animation.setDuration(250);

	options.setAnimation(animation);
	return options;
}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material-demo,代码行数:45,代码来源:MaterialColoredLineChart.java

示例9: getOptions

import com.googlecode.gwt.charts.client.options.Animation; //导入方法依赖的package包/类
private AreaChartOptions getOptions() {
	//Grid Lines
	Gridlines lines = Gridlines.create();
	lines.setColor("fff");

	// Text Positions X and Y Axis
	HAxis hAxis = HAxis.create();
	hAxis.setTextPosition(TextPosition.NONE);

	VAxis vAxis = VAxis.create();
	vAxis.setTextPosition(TextPosition.NONE);
	vAxis.setGridlines(lines);
	hAxis.setGridlines(lines);
	// Legend
	Legend legend = Legend.create();
	legend.setPosition(LegendPosition.TOP);
	legend.setAligment(LegendAlignment.END);

	// Set options
	AreaChartOptions options = AreaChartOptions.create();
	options.setIsStacked(true);
	options.setAreaOpacity(1);
	options.setVAxis(vAxis);
	options.setHAxis(hAxis);
	options.setLegend(legend);
	options.setColors("2196f3", "42a5f5", "64b5f6", "90caf9", "bbdefb");
	
	ChartArea area = ChartArea.create();
	area.setTop(0);
	area.setLeft(0);
	area.setWidth("100%");
	area.setHeight("100%");
	options.setChartArea(area);
	
	//Set Animation
	Animation animation = Animation.create();
	animation.setDuration(500);
	animation.setEasing(AnimationEasing.OUT);
	options.setAnimation(animation);
	
	return options;
}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material-demo,代码行数:43,代码来源:MaterialAreaChart.java


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