Class PlotSettings


  • public class PlotSettings
    extends Object
    This class contains global plot settings.
    • 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
      • getLabelsFont

        public static Font getLabelsFont()
        Gets the labels font
        Returns:
        Labels font
      • setPrimaryFont

        public static void setPrimaryFont​(Font labelsFont)
        Sets the labels font
        Parameters:
        labelsFont - Labels font
      • getTicksFont

        public static Font getTicksFont()
        Gets the ticks font
        Returns:
        Ticks font
      • setTicksFont

        public static void setTicksFont​(Font ticksFont)
        Sets the ticks font
        Parameters:
        ticksFont - Ticks font
      • getLegendFont

        public static Font getLegendFont()
        Gets the legend font
        Returns:
        Legend font
      • setLegendFont

        public static void setLegendFont​(Font legendFont)
        Sets the legend font
        Parameters:
        legendFont - Legend font
      • getPointsFont

        public static Font getPointsFont()
        Gets the points font
        Returns:
        Points font
      • setPointsFont

        public static void setPointsFont​(Font pointsFont)
        Sets the points font
        Parameters:
        pointsFont - Points 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