public class PanelsSettings extends AbstractChartObject implements HasMargins<PanelsSettings>, HasStartEffect<PanelsSettings>
StockPanel
class will be used.
Constructor and Description |
---|
PanelsSettings() |
Modifier and Type | Method and Description |
---|---|
PanelsSettings |
addPlotAreaFillColors(Color... plotAreaFillColors)
Adds colors.
|
java.lang.Integer |
getAngle() |
java.lang.Double |
getBackgroundAlpha() |
Color |
getBackgroundColor() |
java.lang.Integer |
getColumnSpacing() |
java.lang.Integer |
getColumnWidth() |
CreditsPosition |
getCreditsPosition() |
java.lang.String |
getDecimalSeparator() |
java.lang.Integer |
getDepth3D() |
java.lang.String |
getFontFamily() |
java.lang.Integer |
getFontSize() |
java.lang.Integer |
getMarginBottom() |
java.lang.Integer |
getMarginLeft() |
java.lang.Integer |
getMarginRight() |
java.lang.Integer |
getMarginTop() |
java.lang.Long |
getMaxSelectedTime() |
java.lang.Long |
getMinSelectedTime() |
java.lang.Integer |
getPanelSpacing() |
java.lang.Boolean |
getPanEventsEnabled() |
java.lang.Double |
getPercentPrecision() |
java.lang.Double |
getPlotAreaBorderAlpha() |
Color |
getPlotAreaBorderColor() |
java.lang.Double |
getPlotAreaFillAlphas() |
java.util.List<Color> |
getPlotAreaFillColors() |
java.lang.Double |
getPrecision() |
java.util.List<BigNumberPrefix> |
getPrefixesOfBigNumbers() |
java.util.List<SmallNumberPrefix> |
getPrefixesOfSmallNumbers() |
RecalculateToPercents |
getRecalculateToPercents() |
java.lang.Boolean |
getSequencedAnimation() |
java.lang.Double |
getStartAlpha() |
java.lang.Double |
getStartDuration() |
AnimationEffect |
getStartEffect() |
java.lang.String |
getThousandsSeparator() |
java.lang.Boolean |
getUsePrefixes() |
java.lang.Boolean |
getZoomOutAxes() |
PanelsSettings |
setAngle(java.lang.Integer angle)
Sets the angle of the 3D part of plot area.
|
PanelsSettings |
setBackgroundAlpha(java.lang.Double backgroundAlpha)
Sets opacity of panel background.
|
PanelsSettings |
setBackgroundColor(Color backgroundColor)
Sets background color of panels.
|
PanelsSettings |
setColumnSpacing(java.lang.Integer columnSpacing)
Sets the gap in pixels between two columns of the same category.
|
PanelsSettings |
setColumnWidth(java.lang.Integer columnWidth)
Sets relative width of columns.
|
PanelsSettings |
setCreditsPosition(CreditsPosition creditsPosition)
Sets position of amCharts link (free version only).
|
PanelsSettings |
setDecimalSeparator(java.lang.String decimalSeparator)
Sets separator of decimal values.
|
PanelsSettings |
setDepth3D(java.lang.Integer depth3D)
Sets the depth of the 3D part of plot area.
|
PanelsSettings |
setFontFamily(java.lang.String fontFamily)
Sets font family.
|
PanelsSettings |
setFontSize(java.lang.Integer fontSize)
Sets font size.
|
PanelsSettings |
setMarginBottom(java.lang.Integer marginBottom)
Sets bottom spacing.
|
PanelsSettings |
setMarginLeft(java.lang.Integer marginLeft)
Sets left-hand spacing.
|
PanelsSettings |
setMarginRight(java.lang.Integer marginRight)
Sets right-hand spacing.
|
PanelsSettings |
setMarginTop(java.lang.Integer marginTop)
Sets top spacing.
|
PanelsSettings |
setMaxSelectedTime(java.lang.Long maxSelectedTime)
Sets the longest time span allowed to select (in milliseconds).
|
PanelsSettings |
setMinSelectedTime(java.lang.Long minSelectedTime)
Sets the shortest time span allowed to select (in milliseconds).
|
PanelsSettings |
setPanelSpacing(java.lang.Integer panelSpacing)
Sets gap between panels.
|
PanelsSettings |
setPanEventsEnabled(java.lang.Boolean panEventsEnabled)
This setting affects touch-screen devices only.
|
PanelsSettings |
setPercentPrecision(java.lang.Double percentPrecision)
Sets precision of percent values.
|
PanelsSettings |
setPlotAreaBorderAlpha(java.lang.Double plotAreaBorderAlpha)
Sets the opacity of plot area's border.
|
PanelsSettings |
setPlotAreaBorderColor(Color plotAreaBorderColor)
Sets the color of the plot area's border.
|
PanelsSettings |
setPlotAreaFillAlphas(java.lang.Double plotAreaFillAlphas)
Sets opacity of plot area fill.
|
PanelsSettings |
setPlotAreaFillColors(java.util.List<Color> plotAreaFillColors)
Sets list of the colors used to tint the background gradient fill of the plot area.
|
PanelsSettings |
setPrecision(java.lang.Double precision)
Sets precision of values.
|
PanelsSettings |
setPrefixesOfBigNumbers(java.util.List<BigNumberPrefix> prefixesOfBigNumbers)
Sets list of big number prefixes.
|
PanelsSettings |
setPrefixesOfSmallNumbers(java.util.List<SmallNumberPrefix> prefixesOfSmallNumbers)
Sets prefixes which are used to make small numbers shorter: 2μ instead of 0.000002, etc.
|
PanelsSettings |
setRecalculateToPercents(RecalculateToPercents recalculateToPercents)
Specifies when values should be recalculated to percents.
|
PanelsSettings |
setSequencedAnimation(java.lang.Boolean sequencedAnimation)
Set sequencedAnimation to true if in the animation all objects should appear at once.
|
PanelsSettings |
setStartAlpha(java.lang.Double startAlpha)
Sets the initial opacity of the column/line.
|
PanelsSettings |
setStartDuration(java.lang.Double startDuration)
Sets duration of the animation, in seconds.
|
PanelsSettings |
setStartEffect(AnimationEffect startEffect)
Sets animation effect.
|
PanelsSettings |
setThousandsSeparator(java.lang.String thousandsSeparator)
Sets separator of thousand values.
|
PanelsSettings |
setUsePrefixes(java.lang.Boolean usePrefixes)
Set usePrefixes to true if prefixes should be used for big and small numbers.
|
PanelsSettings |
setZoomOutAxes(java.lang.Boolean zoomOutAxes)
Set zoomOutAxes to false if zoomed-in value axes shouldn't be zoomed-out when user changes selected period with
PeriodSelector . |
public java.lang.Integer getAngle()
public PanelsSettings setAngle(java.lang.Integer angle)
angle
- anglepublic java.lang.Double getBackgroundAlpha()
public PanelsSettings setBackgroundAlpha(java.lang.Double backgroundAlpha)
backgroundAlpha
- opacitypublic Color getBackgroundColor()
public PanelsSettings setBackgroundColor(Color backgroundColor)
backgroundColor
- colorpublic java.lang.Integer getColumnSpacing()
public PanelsSettings setColumnSpacing(java.lang.Integer columnSpacing)
columnSpacing
- column spacingpublic java.lang.Integer getColumnWidth()
public PanelsSettings setColumnWidth(java.lang.Integer columnWidth)
columnWidth
- column relative widthpublic CreditsPosition getCreditsPosition()
public PanelsSettings setCreditsPosition(CreditsPosition creditsPosition)
creditsPosition
- credits positionpublic java.lang.String getDecimalSeparator()
public PanelsSettings setDecimalSeparator(java.lang.String decimalSeparator)
decimalSeparator
- decimal separatorpublic java.lang.Integer getDepth3D()
public PanelsSettings setDepth3D(java.lang.Integer depth3D)
depth3D
- depth 3Dpublic java.lang.String getFontFamily()
public PanelsSettings setFontFamily(java.lang.String fontFamily)
fontFamily
- font familypublic java.lang.Integer getFontSize()
public PanelsSettings setFontSize(java.lang.Integer fontSize)
fontSize
- font sizepublic java.lang.Integer getMarginBottom()
getMarginBottom
in interface HasMargins<PanelsSettings>
public PanelsSettings setMarginBottom(java.lang.Integer marginBottom)
HasMargins
If is used for Legend
default value is 0.
If is used for RadarChartModelImpl
the default value is 0.
If is used for chart based on RectangularChartModelImpl
(GanttChart, SerialChart, XYChart) the default value is 20.
If is used for chart based on SlicedChartModelImpl
(FunnelChart, PieChart) the default value is 10.
If is used for PanelsSettings
the default value is 0.
setMarginBottom
in interface HasMargins<PanelsSettings>
marginBottom
- bottom spacingpublic java.lang.Integer getMarginLeft()
getMarginLeft
in interface HasMargins<PanelsSettings>
public PanelsSettings setMarginLeft(java.lang.Integer marginLeft)
HasMargins
marginLeft will be ignored if chart is SerialChart
or XYChartModelImpl
and AbstractLegend.autoMargins
is true.
If is used for Legend
the default value is 20.
If is used for RadarChartModelImpl
the default value is 0.
If is used for chart based on RectangularChartModelImpl
(GanttChart, SerialChart, XYChart) the default value is
20.
If is used for chart based on SlicedChartModelImpl
the default value is 0.
If is used for PanelsSettings
the default value is 0.
setMarginLeft
in interface HasMargins<PanelsSettings>
marginLeft
- left-hand spacingpublic java.lang.Integer getMarginRight()
getMarginRight
in interface HasMargins<PanelsSettings>
public PanelsSettings setMarginRight(java.lang.Integer marginRight)
HasMargins
marginRight will be ignored if chart is SerialChart
or XYChartModelImpl
and AbstractLegend.autoMargins
is true.
If is used for Legend
the default value is 20.
If is used for RadarChartModelImpl
the default value is 0.
If is used for chart based on RectangularChartModelImpl
(GanttChart, SerialChart, XYChart) the default value is
20.
If is used for chart based on SlicedChartModelImpl
(FunnelChart, PieChart) the default value is 0.
If is used for PanelsSettings
the default value is 0.
setMarginRight
in interface HasMargins<PanelsSettings>
marginRight
- right-hand spacingpublic java.lang.Integer getMarginTop()
getMarginTop
in interface HasMargins<PanelsSettings>
public PanelsSettings setMarginTop(java.lang.Integer marginTop)
HasMargins
If is used for Legend
the default value is 0.
If is used for RadarChartModelImpl
the default value is 0.
If is used for chart based on RectangularChartModelImpl
(GanttChart, SerialChart, XYChart) the default value is 20.
If is used for chart based on SlicedChartModelImpl
the default value is 10.
If is used for PanelsSettings
the default value is 0.
setMarginTop
in interface HasMargins<PanelsSettings>
marginTop
- top spacingpublic java.lang.Long getMaxSelectedTime()
public PanelsSettings setMaxSelectedTime(java.lang.Long maxSelectedTime)
CategoryAxesSettings.equalSpacing
is set to false.maxSelectedTime
- maximum selected timepublic java.lang.Long getMinSelectedTime()
public PanelsSettings setMinSelectedTime(java.lang.Long minSelectedTime)
CategoryAxesSettings.equalSpacing
is set to false. If not set the default value is 0.minSelectedTime
- minimum selected timepublic java.lang.Integer getPanelSpacing()
public PanelsSettings setPanelSpacing(java.lang.Integer panelSpacing)
panelSpacing
- panel spacingpublic java.lang.Boolean getPanEventsEnabled()
public PanelsSettings setPanEventsEnabled(java.lang.Boolean panEventsEnabled)
panEventsEnabled
- panEventsEnabled optionpublic java.lang.Double getPercentPrecision()
public PanelsSettings setPercentPrecision(java.lang.Double percentPrecision)
percentPrecision
- percent precisionpublic java.lang.Double getPlotAreaBorderAlpha()
public PanelsSettings setPlotAreaBorderAlpha(java.lang.Double plotAreaBorderAlpha)
plotAreaBorderAlpha
- opacitypublic Color getPlotAreaBorderColor()
public PanelsSettings setPlotAreaBorderColor(Color plotAreaBorderColor)
plotAreaBorderColor
- colorpublic java.lang.Double getPlotAreaFillAlphas()
public PanelsSettings setPlotAreaFillAlphas(java.lang.Double plotAreaFillAlphas)
plotAreaFillAlphas
- opacitypublic java.util.List<Color> getPlotAreaFillColors()
public PanelsSettings setPlotAreaFillColors(java.util.List<Color> plotAreaFillColors)
plotAreaFillColors
- list of colorspublic PanelsSettings addPlotAreaFillColors(Color... plotAreaFillColors)
plotAreaFillColors
- colorspublic java.lang.Double getPrecision()
public PanelsSettings setPrecision(java.lang.Double precision)
precision
- precisionpublic java.util.List<BigNumberPrefix> getPrefixesOfBigNumbers()
public PanelsSettings setPrefixesOfBigNumbers(java.util.List<BigNumberPrefix> prefixesOfBigNumbers)
[{number:1e+3, prefix:"k"},
{number:1e+6, prefix:"M"},
{number:1e+9, prefix:"G"},
{number:1e+12, prefix:"T"},
{number:1e+15, prefix:"P"},
{number:1e+18, prefix:"E"},
{number:1e+21, prefix:"Z"},
{number:1e+24, prefix:"Y"}]
prefixesOfBigNumbers
- list of big number prefixespublic java.util.List<SmallNumberPrefix> getPrefixesOfSmallNumbers()
public PanelsSettings setPrefixesOfSmallNumbers(java.util.List<SmallNumberPrefix> prefixesOfSmallNumbers)
[{number:1e-24, prefix:"y"},
{number:1e-21, prefix:"z"},
{number:1e-18, prefix:"a"},
{number:1e-15, prefix:"f"},
{number:1e-12, prefix:"p"},
{number:1e-9, prefix:"n"},
{number:1e-6, prefix:"μ"},
{number:1e-3, prefix:"m"}]
prefixesOfSmallNumbers
- list of small number prefixespublic RecalculateToPercents getRecalculateToPercents()
public PanelsSettings setRecalculateToPercents(RecalculateToPercents recalculateToPercents)
recalculateToPercents
- recalculate to percentspublic java.lang.Boolean getSequencedAnimation()
public PanelsSettings setSequencedAnimation(java.lang.Boolean sequencedAnimation)
sequencedAnimation
- sequencedAnimation optionpublic java.lang.Double getStartAlpha()
public PanelsSettings setStartAlpha(java.lang.Double startAlpha)
startAlpha
- initial opacitypublic java.lang.Double getStartDuration()
getStartDuration
in interface HasStartEffect<PanelsSettings>
public PanelsSettings setStartDuration(java.lang.Double startDuration)
HasStartEffect
If you use AngularGaugeChartModelImpl
default value is 1.
If you use charts based on CoordinateChartModel
(GanttChart, RadarChart, SerialChart, XYChart) default
value is 0.
If you use chart based on SlicedChartModelImpl
default value is 1.
setStartDuration
in interface HasStartEffect<PanelsSettings>
startDuration
- the start durationpublic AnimationEffect getStartEffect()
getStartEffect
in interface HasStartEffect<PanelsSettings>
public PanelsSettings setStartEffect(AnimationEffect startEffect)
HasStartEffect
If you use AngularGaugeChartModelImpl
animation effect will be applied for the arrow. If not set the default
value is EASE_IN_SINE.
If you use charts based on CoordinateChartModel
(GanttChart, RadarChart, SerialChart, XYChart) default
value is ELASTIC.
If you use chart based on SlicedChartModelImpl
default value is BOUNCE.
setStartEffect
in interface HasStartEffect<PanelsSettings>
startEffect
- the start effectpublic java.lang.String getThousandsSeparator()
public PanelsSettings setThousandsSeparator(java.lang.String thousandsSeparator)
thousandsSeparator
- thousands separatorpublic java.lang.Boolean getUsePrefixes()
public PanelsSettings setUsePrefixes(java.lang.Boolean usePrefixes)
usePrefixes
- usePrefixes optionpublic java.lang.Boolean getZoomOutAxes()
public PanelsSettings setZoomOutAxes(java.lang.Boolean zoomOutAxes)
PeriodSelector
. If not set the default value is true.zoomOutAxes
- zoomOutAxes option