Package org.knowm.xchart.style
Class DialStyler
- java.lang.Object
-
- org.knowm.xchart.style.Styler
-
- org.knowm.xchart.style.DialStyler
-
public class DialStyler extends Styler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.knowm.xchart.style.Styler
Styler.ChartButtonPosition, Styler.ChartTheme, Styler.LegendLayout, Styler.LegendPosition, Styler.ToolTipType, Styler.YAxisPosition
-
-
Field Summary
Fields Modifier and Type Field Description private doublearcAngleprivate doublearrowArcAngleprivate doublearrowArcPercentageprivate java.awt.ColorarrowColorprivate doublearrowLengthPercentageprivate java.lang.String[]axisTickLabelsprivate booleanaxisTickLabelsVisibleprivate java.awt.ColoraxisTickMarksColorprivate java.awt.BasicStrokeaxisTickMarksStrokeprivate booleanaxisTicksMarksVisibleprivate double[]axisTickValuesprivate java.awt.FontaxisTitleFontprivate intaxisTitlePaddingprivate booleanaxisTitleVisibleprivate doubledonutThicknessprivate booleanisCircularprivate booleanisLabelsVisibleprivate java.awt.FontlabelsFontprivate java.awt.ColorlowerColorprivate doublelowerFromprivate doublelowerToprivate java.awt.ColormiddleColorprivate doublemiddleFromprivate doublemiddleToprivate java.awt.ColorupperColorprivate doubleupperFromprivate doubleupperTo
-
Constructor Summary
Constructors Constructor Description DialStyler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetArcAngle()doublegetArrowArcAngle()doublegetArrowArcPercentage()java.awt.ColorgetArrowColor()doublegetArrowLengthPercentage()java.lang.String[]getAxisTickLabels()java.awt.ColorgetAxisTickMarksColor()java.awt.BasicStrokegetAxisTickMarksStroke()double[]getAxisTickValues()java.awt.FontgetAxisTitleFont()intgetAxisTitlePadding()doublegetDonutThickness()java.awt.FontgetLabelsFont()java.awt.ColorgetLowerColor()doublegetLowerFrom()doublegetLowerTo()java.awt.ColorgetMiddleColor()doublegetMiddleFrom()doublegetMiddleTo()java.awt.ColorgetUpperColor()doublegetUpperFrom()doublegetUpperTo()booleanisAxisTickLabelsVisible()booleanisAxisTicksMarksVisible()booleanisAxisTitleVisible()booleanisCircular()booleanisLabelsVisible()(package private) voidsetAllStyles()DialStylersetArcAngle(double arcAngle)DialStylersetArrowArcAngle(double arrowArcAngle)DialStylersetArrowArcPercentage(double arrowArcPercentage)DialStylersetArrowColor(java.awt.Color color)Set the line color of the seriesDialStylersetArrowLengthPercentage(double arrowLengthPercentage)DialStylersetAxisTickLabels(java.lang.String[] axisTickLabels)DialStylersetAxisTickLabelsVisible(boolean axisTickLabelsVisible)DialStylersetAxisTickMarksColor(java.awt.Color axisTickMarksColor)DialStylersetAxisTickMarksStroke(java.awt.BasicStroke axisTickMarksStroke)DialStylersetAxisTicksMarksVisible(boolean axisTicksMarksVisible)DialStylersetAxisTickValues(double[] axisTickValues)DialStylersetAxisTitleFont(java.awt.Font axisTitleFont)DialStylersetAxisTitlePadding(int axisTitlePadding)DialStylersetAxisTitleVisible(boolean axisTitleVisible)DialStylersetCircular(boolean isCircular)Sets whether or not the radar chart is forced to be circular.DialStylersetDonutThickness(double donutThickness)DialStylersetLabelFont(java.awt.Font labelsFont)Sets the Font used for chart labelsDialStylersetLabelVisible(boolean labelsVisible)Sets if labels should be added to charts.DialStylersetLowerColor(java.awt.Color lowerColor)DialStylersetLowerFrom(double lowerFrom)DialStylersetLowerTo(double lowerTo)DialStylersetMiddleColor(java.awt.Color middleColor)DialStylersetMiddleFrom(double middleFrom)DialStylersetMiddleTo(double middleTo)DialStylersetTheme(Theme theme)Set the theme the styler should useDialStylersetUpperColor(java.awt.Color upperColor)DialStylersetUpperFrom(double upperFrom)DialStylersetUpperTo(double upperTo)-
Methods inherited from class org.knowm.xchart.style.Styler
getAnnotationLineColor, getAnnotationLineStroke, getAnnotationTextFont, getAnnotationTextFontColor, getAnnotationTextPanelBackgroundColor, getAnnotationTextPanelBorderColor, getAnnotationTextPanelFont, getAnnotationTextPanelFontColor, getAnnotationTextPanelPadding, getAntiAlias, getBaseFont, getChartBackgroundColor, getChartButtonBackgroundColor, getChartButtonBorderColor, getChartButtonFont, getChartButtonFontColor, getChartButtonMargin, getChartButtonPosition, getChartFontColor, getChartPadding, getChartTitleBoxBackgroundColor, getChartTitleBoxBorderColor, getChartTitleFont, getChartTitlePadding, getDecimalPattern, getLegendBackgroundColor, getLegendBorderColor, getLegendFont, getLegendLayout, getLegendPadding, getLegendPosition, getLegendSeriesLineLength, getMarkerSize, getPlotBackgroundColor, getPlotBorderColor, getPlotContentSize, getSeriesColors, getSeriesLines, getSeriesMarkers, getShowWithinAreaPoint, getTheme, getToolTipBackgroundColor, getToolTipBorderColor, getToolTipFont, getToolTipHighlightColor, getToolTipType, getXAxisTitleColor, getYAxisGroupPosistion, getYAxisGroupTitleColor, getYAxisLeftWidthHint, getYAxisTitleColor, isChartTitleBoxVisible, isChartTitleVisible, isLegendVisible, isPlotBorderVisible, isToolTipsAlwaysVisible, isToolTipsEnabled, setAnnotationLineColor, setAnnotationLineStroke, setAnnotationTextFont, setAnnotationTextFontColor, setAnnotationTextPanelBackgroundColor, setAnnotationTextPanelBorderColor, setAnnotationTextPanelFont, setAnnotationTextPanelFontColor, setAnnotationTextPanelPadding, setAntiAlias, setBaseFont, setChartBackgroundColor, setChartButtonBackgroundColor, setChartButtonBorderColor, setChartButtonFont, setChartButtonFontColor, setChartButtonMargin, setChartButtonPosition, setChartFontColor, setChartPadding, setChartTitleBoxBackgroundColor, setChartTitleBoxBorderColor, setChartTitleBoxVisible, setChartTitleFont, setChartTitlePadding, setChartTitleVisible, setDecimalPattern, setLegendBackgroundColor, setLegendBorderColor, setLegendFont, setLegendLayout, setLegendPadding, setLegendPosition, setLegendSeriesLineLength, setLegendVisible, setMarkerSize, setPlotBackgroundColor, setPlotBorderColor, setPlotBorderVisible, setPlotContentSize, setSeriesColors, setSeriesLines, setSeriesMarkers, setShowWithinAreaPoint, setToolTipBackgroundColor, setToolTipBorderColor, setToolTipFont, setToolTipHighlightColor, setToolTipsAlwaysVisible, setToolTipsEnabled, setToolTipType, setXAxisTitleColor, setYAxisGroupPosition, setYAxisGroupTitleColor, setYAxisLeftWidthHint, setYAxisTitleColor
-
-
-
-
Field Detail
-
isCircular
private boolean isCircular
-
axisTicksMarksVisible
private boolean axisTicksMarksVisible
-
axisTickMarksColor
private java.awt.Color axisTickMarksColor
-
axisTickMarksStroke
private java.awt.BasicStroke axisTickMarksStroke
-
axisTickValues
private double[] axisTickValues
-
axisTickLabels
private java.lang.String[] axisTickLabels
-
axisTitleVisible
private boolean axisTitleVisible
-
axisTitleFont
private java.awt.Font axisTitleFont
-
axisTitlePadding
private int axisTitlePadding
-
axisTickLabelsVisible
private boolean axisTickLabelsVisible
-
arcAngle
private double arcAngle
-
donutThickness
private double donutThickness
-
lowerFrom
private double lowerFrom
-
lowerTo
private double lowerTo
-
lowerColor
private java.awt.Color lowerColor
-
middleFrom
private double middleFrom
-
middleTo
private double middleTo
-
middleColor
private java.awt.Color middleColor
-
upperFrom
private double upperFrom
-
upperTo
private double upperTo
-
upperColor
private java.awt.Color upperColor
-
arrowLengthPercentage
private double arrowLengthPercentage
-
arrowArcAngle
private double arrowArcAngle
-
arrowArcPercentage
private double arrowArcPercentage
-
arrowColor
private java.awt.Color arrowColor
-
isLabelsVisible
private boolean isLabelsVisible
-
labelsFont
private java.awt.Font labelsFont
-
-
Method Detail
-
setAllStyles
void setAllStyles()
- Overrides:
setAllStylesin classStyler
-
setTheme
public DialStyler setTheme(Theme theme)
Set the theme the styler should use- Parameters:
theme-
-
isCircular
public boolean isCircular()
-
setCircular
public DialStyler setCircular(boolean isCircular)
Sets whether or not the radar chart is forced to be circular. Otherwise it's shape is oval, matching the containing plot.- Parameters:
isCircular-
-
isAxisTicksMarksVisible
public boolean isAxisTicksMarksVisible()
-
setAxisTicksMarksVisible
public DialStyler setAxisTicksMarksVisible(boolean axisTicksMarksVisible)
-
getAxisTickMarksColor
public java.awt.Color getAxisTickMarksColor()
-
setAxisTickMarksColor
public DialStyler setAxisTickMarksColor(java.awt.Color axisTickMarksColor)
-
getAxisTickMarksStroke
public java.awt.BasicStroke getAxisTickMarksStroke()
-
setAxisTickMarksStroke
public DialStyler setAxisTickMarksStroke(java.awt.BasicStroke axisTickMarksStroke)
-
isAxisTitleVisible
public boolean isAxisTitleVisible()
-
setAxisTitleVisible
public DialStyler setAxisTitleVisible(boolean axisTitleVisible)
-
getAxisTitleFont
public java.awt.Font getAxisTitleFont()
-
setAxisTitleFont
public DialStyler setAxisTitleFont(java.awt.Font axisTitleFont)
-
getAxisTitlePadding
public int getAxisTitlePadding()
-
setAxisTitlePadding
public DialStyler setAxisTitlePadding(int axisTitlePadding)
-
getAxisTickValues
public double[] getAxisTickValues()
-
setAxisTickValues
public DialStyler setAxisTickValues(double[] axisTickValues)
-
getAxisTickLabels
public java.lang.String[] getAxisTickLabels()
-
setAxisTickLabels
public DialStyler setAxisTickLabels(java.lang.String[] axisTickLabels)
-
getMiddleFrom
public double getMiddleFrom()
-
setMiddleFrom
public DialStyler setMiddleFrom(double middleFrom)
-
getMiddleTo
public double getMiddleTo()
-
setMiddleTo
public DialStyler setMiddleTo(double middleTo)
-
getMiddleColor
public java.awt.Color getMiddleColor()
-
setMiddleColor
public DialStyler setMiddleColor(java.awt.Color middleColor)
-
getLowerFrom
public double getLowerFrom()
-
setLowerFrom
public DialStyler setLowerFrom(double lowerFrom)
-
getLowerTo
public double getLowerTo()
-
setLowerTo
public DialStyler setLowerTo(double lowerTo)
-
getLowerColor
public java.awt.Color getLowerColor()
-
setLowerColor
public DialStyler setLowerColor(java.awt.Color lowerColor)
-
getUpperFrom
public double getUpperFrom()
-
setUpperFrom
public DialStyler setUpperFrom(double upperFrom)
-
getUpperTo
public double getUpperTo()
-
setUpperTo
public DialStyler setUpperTo(double upperTo)
-
getUpperColor
public java.awt.Color getUpperColor()
-
setUpperColor
public DialStyler setUpperColor(java.awt.Color upperColor)
-
getArcAngle
public double getArcAngle()
-
setArcAngle
public DialStyler setArcAngle(double arcAngle)
-
isAxisTickLabelsVisible
public boolean isAxisTickLabelsVisible()
-
setAxisTickLabelsVisible
public DialStyler setAxisTickLabelsVisible(boolean axisTickLabelsVisible)
-
getDonutThickness
public double getDonutThickness()
-
setDonutThickness
public DialStyler setDonutThickness(double donutThickness)
-
getArrowLengthPercentage
public double getArrowLengthPercentage()
-
setArrowLengthPercentage
public DialStyler setArrowLengthPercentage(double arrowLengthPercentage)
-
getArrowArcAngle
public double getArrowArcAngle()
-
setArrowArcAngle
public DialStyler setArrowArcAngle(double arrowArcAngle)
-
getArrowArcPercentage
public double getArrowArcPercentage()
-
setArrowArcPercentage
public DialStyler setArrowArcPercentage(double arrowArcPercentage)
-
getArrowColor
public java.awt.Color getArrowColor()
-
setArrowColor
public DialStyler setArrowColor(java.awt.Color color)
Set the line color of the series- Parameters:
color-
-
isLabelsVisible
public boolean isLabelsVisible()
-
setLabelVisible
public DialStyler setLabelVisible(boolean labelsVisible)
Sets if labels should be added to charts.- Parameters:
labelsVisible-
-
getLabelsFont
public java.awt.Font getLabelsFont()
-
setLabelFont
public DialStyler setLabelFont(java.awt.Font labelsFont)
Sets the Font used for chart labels- Parameters:
labelsFont-
-
-