public class PlotSettings extends Object
Constructor and Description |
---|
PlotSettings() |
Modifier and Type | Method and Description |
---|---|
static Color |
getBackgroundColor()
Gets the plot's background color
|
static double |
getClearInset()
Gets the inset for a clear border
|
static Color |
getColor(int i)
Gets a color from the palette
|
static Color[] |
getColorPalette()
Gets the color palette
|
static int |
getHeight()
Get the plot height in pixels
|
static double |
getLegendDistance()
Gets the legend distance
|
static double |
getLegendInset()
Gets the inset for the legend
|
static Font |
getPrimaryFont()
Gets the primary font
|
static Font |
getSecondaryFont()
Gets the secondary font
|
static int |
getWidth()
Get plot with in pixels
|
static double |
getxAxisInset()
Gets the inset for the x axis
|
static double |
getxAxisLabelDistance()
Gets the label distance in the x axis
|
static double |
getyAxisInset()
Gets the inset for the y axis
|
static double |
getyAxisLabelDistance()
Gets the label distance in the y axis
|
static PlotSettings |
setBackgroundColor(Color backgroundColor)
Sets the plot's background color
|
static PlotSettings |
setClearInset(double clearInset)
Sets the inset for a clear border
|
static PlotSettings |
setColorPalette(Color[] colorPalette)
Sets the color paletee
|
static PlotSettings |
setHeight(int height)
Sets the plot height in pixels
|
static PlotSettings |
setLegendDistance(double legendDistance)
Sets the legend distance
|
static PlotSettings |
setLegendInset(double legendInset)
Sets the inset for the legend
|
static PlotSettings |
setPrimaryFont(Font primaryFont)
Sets the primary font
|
static PlotSettings |
setSecondaryFont(Font secondaryFont)
Sets the secondary font
|
static PlotSettings |
setWidth(int width)
Sets the plot width in pixels
|
static PlotSettings |
setxAxisInset(double xAxisInset)
Sets the inset for the x axis
|
static PlotSettings |
setxAxisLabelDistance(double xAxisLabelDistance)
Sets the label distance in the x axis
|
static PlotSettings |
setyAxisInset(double yAxisInset)
Sets the inset for the y axis
|
static PlotSettings |
setyAxisLabelDistance(double yAxisLabelDistance)
Sets the label distance in the y axis
|
public static Color[] getColorPalette()
public static PlotSettings setColorPalette(Color[] colorPalette)
colorPalette
- Color palettepublic static Color getColor(int i)
i
- Color indexpublic static Color getBackgroundColor()
public static PlotSettings setBackgroundColor(Color backgroundColor)
backgroundColor
- Plot's background colorpublic static double getLegendInset()
public static PlotSettings setLegendInset(double legendInset)
legendInset
- Insets for the legendpublic static double getyAxisInset()
public static PlotSettings setyAxisInset(double yAxisInset)
yAxisInset
- Inset for the y axispublic static double getxAxisInset()
public static PlotSettings setxAxisInset(double xAxisInset)
xAxisInset
- Inset for the x axispublic static double getClearInset()
public static PlotSettings setClearInset(double clearInset)
clearInset
- Inset for a clear borderpublic static Font getPrimaryFont()
public static PlotSettings setPrimaryFont(Font primaryFont)
primaryFont
- Primary fontpublic static Font getSecondaryFont()
public static PlotSettings setSecondaryFont(Font secondaryFont)
secondaryFont
- Secondary fontpublic static double getxAxisLabelDistance()
public static PlotSettings setxAxisLabelDistance(double xAxisLabelDistance)
xAxisLabelDistance
- Label distance in the x axispublic static double getyAxisLabelDistance()
public static PlotSettings setyAxisLabelDistance(double yAxisLabelDistance)
yAxisLabelDistance
- Label distance in the y axispublic static double getLegendDistance()
public static PlotSettings setLegendDistance(double legendDistance)
legendDistance
- Legend distancepublic static int getWidth()
public static PlotSettings setWidth(int width)
width
- Plot width in pixelspublic static int getHeight()
public static PlotSettings setHeight(int height)
height
- Plot height in pixelsCopyright © 2020. All rights reserved.