Package org.pepstock.charba.client
Class UpdateConfigurationBuilder
- java.lang.Object
-
- org.pepstock.charba.client.commons.AbstractBaseBuilder
-
- org.pepstock.charba.client.UpdateConfigurationBuilder
-
- All Implemented Interfaces:
IsBuilder
public final class UpdateConfigurationBuilder extends AbstractBaseBuilder
Comfortable object to createUpdateConfigurationitem.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateConfigurationbuild()Returns a update configuration item.static UpdateConfigurationBuildercreate()Returns new builder instance.UpdateConfigurationBuildersetAnimateRotate(boolean animateRotate)Iftrue, the chart will animate in with a rotation animation.UpdateConfigurationBuildersetAnimateScale(boolean animateScale)Iftrue, will animate scaling the chart from the center outwards.UpdateConfigurationBuildersetDelay(int delay)Sets the delay before starting the animations.UpdateConfigurationBuildersetDuration(int milliseconds)Sets the time for the animation of the redraw in milliseconds.UpdateConfigurationBuildersetEasing(Easing easing)Sets the animation easing function.UpdateConfigurationBuildersetLoop(boolean loop)If set totrue, loops the animations endlessly.-
Methods inherited from class org.pepstock.charba.client.commons.AbstractBaseBuilder
isBuilt, setBuilt
-
-
-
-
Method Detail
-
create
public static UpdateConfigurationBuilder create()
Returns new builder instance.- Returns:
- new builder instance
-
setEasing
public UpdateConfigurationBuilder setEasing(Easing easing)
Sets the animation easing function.- Parameters:
easing- animation easing function.- Returns:
- builder instance
-
setDuration
public UpdateConfigurationBuilder setDuration(int milliseconds)
Sets the time for the animation of the redraw in milliseconds.- Parameters:
milliseconds- time for the animation of the redraw in milliseconds.- Returns:
- builder instance
-
setDelay
public UpdateConfigurationBuilder setDelay(int delay)
Sets the delay before starting the animations.- Parameters:
delay- the delay before starting the animations- Returns:
- builder instance
-
setLoop
public UpdateConfigurationBuilder setLoop(boolean loop)
If set totrue, loops the animations endlessly.- Parameters:
loop-trueif loops the animations endlessly.- Returns:
- builder instance
-
setAnimateRotate
public UpdateConfigurationBuilder setAnimateRotate(boolean animateRotate)
Iftrue, the chart will animate in with a rotation animation.- Parameters:
animateRotate- Iftrue, the chart will animate in with a rotation animation.- Returns:
- builder instance
-
setAnimateScale
public UpdateConfigurationBuilder setAnimateScale(boolean animateScale)
Iftrue, will animate scaling the chart from the center outwards.- Parameters:
animateScale- Iftrue, will animate scaling the chart from the center outwards.- Returns:
- builder instance
-
build
public UpdateConfiguration build()
Returns a update configuration item.- Returns:
- a update configuration item
-
-