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 createUpdateConfiguration
item.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateConfiguration
build()
Returns a update configuration item.static UpdateConfigurationBuilder
create()
Returns new builder instance.UpdateConfigurationBuilder
setAnimateRotate(boolean animateRotate)
Iftrue
, the chart will animate in with a rotation animation.UpdateConfigurationBuilder
setAnimateScale(boolean animateScale)
Iftrue
, will animate scaling the chart from the center outwards.UpdateConfigurationBuilder
setDelay(int delay)
Sets the delay before starting the animations.UpdateConfigurationBuilder
setDuration(int milliseconds)
Sets the time for the animation of the redraw in milliseconds.UpdateConfigurationBuilder
setEasing(Easing easing)
Sets the animation easing function.UpdateConfigurationBuilder
setLoop(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
-true
if 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
-
-