public class LegendNavigation extends AbstractConfigurationObject
Constructor and Description |
---|
LegendNavigation() |
LegendNavigation(Boolean enabled) |
Modifier and Type | Method and Description |
---|---|
Color |
getActiveColor() |
Boolean |
getAnimation() |
Number |
getArrowSize() |
Boolean |
getEnabled() |
Color |
getInactiveColor() |
Style |
getStyle() |
void |
setActiveColor(Color activeColor)
The color for the active up or down arrow in the legend page navigation.
|
void |
setAnimation(Boolean animation)
How to animate the pages when navigating up or down.
|
void |
setArrowSize(Number arrowSize)
The pixel size of the up and down arrows in the legend paging navigation.
|
void |
setEnabled(Boolean enabled)
Whether to enable the legend navigation.
|
void |
setInactiveColor(Color inactiveColor)
The color of the inactive up or down arrow in the legend page navigation.
|
void |
setStyle(Style style)
Text styles for the legend page navigation.
|
public LegendNavigation()
public LegendNavigation(Boolean enabled)
public Color getActiveColor()
setActiveColor(Color)
public void setActiveColor(Color activeColor)
Defaults to: #003399
public Boolean getAnimation()
setAnimation(Boolean)
public void setAnimation(Boolean animation)
true
applies the default navigation given in the
chart.animation option. Additional options can be given as an object
containing values for easing and duration. .
Defaults to: true
public Number getArrowSize()
setArrowSize(Number)
public void setArrowSize(Number arrowSize)
Defaults to: 12
public Boolean getEnabled()
setEnabled(Boolean)
public void setEnabled(Boolean enabled)
Whether to enable the legend navigation. In most cases, disabling the navigation results in an unwanted overflow.
See also the adapt chart to legend plugin for a solution to extend the chart height to make room for the legend, optionally in exported charts only.
Defaults to: true
public Color getInactiveColor()
setInactiveColor(Color)
public void setInactiveColor(Color inactiveColor)
Defaults to: #cccccc
public Style getStyle()
setStyle(Style)
public void setStyle(Style style)
Copyright © 2021. All rights reserved.