public class Loading extends Configurable<Loading>
BaseChart.setLoading(Loading) method.)
The loading options control the appearance of the loading screen that covers the plot area
on chart operations. This screen only appears after an explicit call to
BaseChart.showLoading(String). It is a utility for developers to communicate to
the end user that something is going on, for example while retrieving new data via GWT remoting
requests. The "Loading..." text itself is not part of this configuration object, but part of
the Lang object.
Example usage:
chart.setLoading(
new Loading()
.setShowDuration(500)
.setStyle(
new Style()
.setColor("red")
.setFontSize("16px")
)
);
| Constructor and Description |
|---|
Loading() |
| Modifier and Type | Method and Description |
|---|---|
Loading |
setHideDuration(Number hideDuration)
Convenience method for setting the 'hideDuration' option of the loading options.
|
Loading |
setLabelStyle(Style labelStyle)
Convenience method for setting the 'labelStyle' options of the loading options.
|
Loading |
setShowDuration(Number showDuration)
Convenience method for setting the 'showDuration' option of the loading options.
|
Loading |
setStyle(Style style)
Convenience method for setting the 'labelStyle' options of the loading options.
|
getOptions, setOptionpublic Loading setHideDuration(Number hideDuration)
loading.setOption("hideDuration", 150);
The duration in milliseconds of the fade out effect. Defaults to 100.hideDuration - The duration in milliseconds of the fade out effect.Loading instance for convenient method chaining.public Loading setLabelStyle(Style labelStyle)
loading.setOption("labelStyle/fontSize", "16px");
loading.setOption("labelStyle/color", "red");
CSS styles for the loading label span. Defaults to:
labelStyle - The CSS styles for the loading label span.Loading instance for convenient method chaining.public Loading setShowDuration(Number showDuration)
loading.setOption("showDuration", 150);
The duration in milliseconds of the fade in effect. Defaults to 100.showDuration - The duration in milliseconds of the fade in effect.Loading instance for convenient method chaining.public Loading setStyle(Style style)
loading.setOption("style/backgroundColor", "red");
loading.setOption("style/opacity", "0.8
CSS styles for the loading screen that covers the plot area. Defaults to:
style - The CSS styles for the loading screen that covers the plot area.Loading instance for convenient method chaining.Copyright © 2015. All Rights Reserved.