本文整理汇总了Java中com.googlecode.gwt.charts.client.options.Animation类的典型用法代码示例。如果您正苦于以下问题:Java Animation类的具体用法?Java Animation怎么用?Java Animation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Animation类属于com.googlecode.gwt.charts.client.options包,在下文中一共展示了Animation类的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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}