Class Style

java.lang.Object
org.moeaframework.analysis.plot.Style

public class Style extends Object
Collection of style constants.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final double
    The default size.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a style attribute to render the series in a black color.
    Returns a style attribute to render the series in a blue color.
    Returns a style attribute to render the series shape as a circle.
    color(Color color)
    Returns a style attribute to render the series in a custom color.
    gradient(Color baseColor)
    Returns a style attribute to render the series in the specified color gradient paint scale.
    Returns a style attribute to render the series in a green color.
    hsb(float h, float s, float b)
    Returns a style attribute to render the series in the specified HSB color.
    Returns a style attribute to render the series line and/or shape in a large size.
    Returns a style attribute to render the series line and/or shape in a medium size.
    Returns a style attribute to render the series using a rainbow paint scale.
    red()
    Returns a style attribute to render the series in a red color.
    rgb(int r, int g, int b)
    Returns a style attribute to render the series in the specified RGB color.
    Returns a style attribute that renders labels alongside data points.
    Returns a style attribute that displays tooltips when hovering the mouse over data points.
    size(double size)
    Returns a style attribute to render the series line and/or shape in a custom size.
    Returns a style attribute to render the series line and/or shape in a small size.
    Returns a style attribute to render the series shape as a square.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_SIZE

      public static final double DEFAULT_SIZE
      The default size.
      See Also:
  • Method Details

    • circle

      public static ShapeAttribute circle()
      Returns a style attribute to render the series shape as a circle.
      Returns:
      the resulting style attribute
    • square

      public static ShapeAttribute square()
      Returns a style attribute to render the series shape as a square.
      Returns:
      the resulting style attribute
    • size

      public static SizeAttribute size(double size)
      Returns a style attribute to render the series line and/or shape in a custom size.
      Parameters:
      size - the size
      Returns:
      the resulting style attribute
    • small

      public static SizeAttribute small()
      Returns a style attribute to render the series line and/or shape in a small size.
      Returns:
      the resulting style attribute
    • medium

      public static SizeAttribute medium()
      Returns a style attribute to render the series line and/or shape in a medium size.
      Returns:
      the resulting style attribute
    • large

      public static SizeAttribute large()
      Returns a style attribute to render the series line and/or shape in a large size.
      Returns:
      the resulting style attribute
    • color

      public static PaintAttribute color(Color color)
      Returns a style attribute to render the series in a custom color.
      Parameters:
      color - the color
      Returns:
      the resulting style attribute
    • black

      public static PaintAttribute black()
      Returns a style attribute to render the series in a black color.
      Returns:
      the resulting style attribute
    • red

      public static PaintAttribute red()
      Returns a style attribute to render the series in a red color.
      Returns:
      the resulting style attribute
    • green

      public static PaintAttribute green()
      Returns a style attribute to render the series in a green color.
      Returns:
      the resulting style attribute
    • blue

      public static PaintAttribute blue()
      Returns a style attribute to render the series in a blue color.
      Returns:
      the resulting style attribute
    • rgb

      public static PaintAttribute rgb(int r, int g, int b)
      Returns a style attribute to render the series in the specified RGB color.
      Parameters:
      r - the red component (0 - 255)
      g - the green component (0 - 255)
      b - the blue component (0 - 255)
      Returns:
      the resulting style attribute
      See Also:
    • hsb

      public static PaintAttribute hsb(float h, float s, float b)
      Returns a style attribute to render the series in the specified HSB color.
      Parameters:
      h - the hue
      s - the saturation
      b - the brightness
      Returns:
      the resulting style attribute
      See Also:
    • gradient

      public static PaintScaleAttribute gradient(Color baseColor)
      Returns a style attribute to render the series in the specified color gradient paint scale.
      Parameters:
      baseColor - the base color
      Returns:
      the resulting style attribute
    • rainbow

      public static PaintScaleAttribute rainbow()
      Returns a style attribute to render the series using a rainbow paint scale.
      Returns:
      the resulting style attribute
    • showLabels

      public static LabelAttribute showLabels()
      Returns a style attribute that renders labels alongside data points.
      Returns:
      the resulting style attribute
    • showToolTips

      public static TooltipAttribute showToolTips()
      Returns a style attribute that displays tooltips when hovering the mouse over data points.
      Returns:
      the resulting style attribute