當前位置: 首頁>>代碼示例>>Java>>正文


Java Animation類代碼示例

本文整理匯總了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;
}
 
開發者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類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。