Package es.upm.etsisi.cf4j.util.plot
Class PlotSettings
- java.lang.Object
-
- es.upm.etsisi.cf4j.util.plot.PlotSettings
-
public class PlotSettings extends Object
This class contains global plot settings.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Color
getBackgroundColor()
Gets the plot's background colorstatic double
getClearInset()
Gets the inset for a clear borderstatic Color
getColor(int i)
Gets a color from the palettestatic Color[]
getColorPalette()
Gets the color palettestatic int
getHeight()
Get the plot height in pixelsstatic double
getLegendDistance()
Gets the legend distancestatic double
getLegendInset()
Gets the inset for the legendstatic Font
getPrimaryFont()
Gets the primary fontstatic Font
getSecondaryFont()
Gets the secondary fontstatic int
getWidth()
Get plot with in pixelsstatic double
getxAxisInset()
Gets the inset for the x axisstatic double
getxAxisLabelDistance()
Gets the label distance in the x axisstatic double
getyAxisInset()
Gets the inset for the y axisstatic double
getyAxisLabelDistance()
Gets the label distance in the y axisstatic void
setBackgroundColor(Color backgroundColor)
Sets the plot's background colorstatic void
setClearInset(double clearInset)
Sets the inset for a clear borderstatic void
setColorPalette(Color[] colorPalette)
Sets the color paleteestatic void
setHeight(int height)
Sets the plot height in pixelsstatic void
setLegendDistance(double legendDistance)
Sets the legend distancestatic void
setLegendInset(double legendInset)
Sets the inset for the legendstatic void
setPrimaryFont(Font primaryFont)
Sets the primary fontstatic void
setSecondaryFont(Font secondaryFont)
Sets the secondary fontstatic void
setWidth(int width)
Sets the plot width in pixelsstatic void
setxAxisInset(double xAxisInset)
Sets the inset for the x axisstatic void
setxAxisLabelDistance(double xAxisLabelDistance)
Sets the label distance in the x axisstatic void
setyAxisInset(double yAxisInset)
Sets the inset for the y axisstatic void
setyAxisLabelDistance(double yAxisLabelDistance)
Sets the label distance in the y axis
-
-
-
Method Detail
-
getColorPalette
public static Color[] getColorPalette()
Gets the color palette- Returns:
- Color palette
-
setColorPalette
public static void setColorPalette(Color[] colorPalette)
Sets the color paletee- Parameters:
colorPalette
- Color palette
-
getColor
public static Color getColor(int i)
Gets a color from the palette- Parameters:
i
- Color index- Returns:
- Color
-
getBackgroundColor
public static Color getBackgroundColor()
Gets the plot's background color- Returns:
- Plot's background color
-
setBackgroundColor
public static void setBackgroundColor(Color backgroundColor)
Sets the plot's background color- Parameters:
backgroundColor
- Plot's background color
-
getLegendInset
public static double getLegendInset()
Gets the inset for the legend- Returns:
- Inset for the legend
-
setLegendInset
public static void setLegendInset(double legendInset)
Sets the inset for the legend- Parameters:
legendInset
- Insets for the legend
-
getyAxisInset
public static double getyAxisInset()
Gets the inset for the y axis- Returns:
- Inset for the y axis
-
setyAxisInset
public static void setyAxisInset(double yAxisInset)
Sets the inset for the y axis- Parameters:
yAxisInset
- Inset for the y axis
-
getxAxisInset
public static double getxAxisInset()
Gets the inset for the x axis- Returns:
- Inset for the x axis
-
setxAxisInset
public static void setxAxisInset(double xAxisInset)
Sets the inset for the x axis- Parameters:
xAxisInset
- Inset for the x axis
-
getClearInset
public static double getClearInset()
Gets the inset for a clear border- Returns:
- Inset for a clear border
-
setClearInset
public static void setClearInset(double clearInset)
Sets the inset for a clear border- Parameters:
clearInset
- Inset for a clear border
-
getPrimaryFont
public static Font getPrimaryFont()
Gets the primary font- Returns:
- Primary font
-
setPrimaryFont
public static void setPrimaryFont(Font primaryFont)
Sets the primary font- Parameters:
primaryFont
- Primary font
-
getSecondaryFont
public static Font getSecondaryFont()
Gets the secondary font- Returns:
- Secondary font
-
setSecondaryFont
public static void setSecondaryFont(Font secondaryFont)
Sets the secondary font- Parameters:
secondaryFont
- Secondary font
-
getxAxisLabelDistance
public static double getxAxisLabelDistance()
Gets the label distance in the x axis- Returns:
- Label distance in the x axis
-
setxAxisLabelDistance
public static void setxAxisLabelDistance(double xAxisLabelDistance)
Sets the label distance in the x axis- Parameters:
xAxisLabelDistance
- Label distance in the x axis
-
getyAxisLabelDistance
public static double getyAxisLabelDistance()
Gets the label distance in the y axis- Returns:
- Label distance in the y axis
-
setyAxisLabelDistance
public static void setyAxisLabelDistance(double yAxisLabelDistance)
Sets the label distance in the y axis- Parameters:
yAxisLabelDistance
- Label distance in the y axis
-
getLegendDistance
public static double getLegendDistance()
Gets the legend distance- Returns:
- Legend distance
-
setLegendDistance
public static void setLegendDistance(double legendDistance)
Sets the legend distance- Parameters:
legendDistance
- Legend distance
-
getWidth
public static int getWidth()
Get plot with in pixels- Returns:
- Plot with in pixels
-
setWidth
public static void setWidth(int width)
Sets the plot width in pixels- Parameters:
width
- Plot width in pixels
-
getHeight
public static int getHeight()
Get the plot height in pixels- Returns:
- Plot height in pixels
-
setHeight
public static void setHeight(int height)
Sets the plot height in pixels- Parameters:
height
- Plot height in pixels
-
-