Package org.moeaframework.analysis.plot
Class Style
java.lang.Object
org.moeaframework.analysis.plot.Style
Collection of style constants.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PaintAttribute
black()
Returns a style attribute to render the series in a black color.static PaintAttribute
blue()
Returns a style attribute to render the series in a blue color.static ShapeAttribute
circle()
Returns a style attribute to render the series shape as a circle.static PaintAttribute
Returns a style attribute to render the series in a custom color.static PaintScaleAttribute
Returns a style attribute to render the series in the specified color gradient paint scale.static PaintAttribute
green()
Returns a style attribute to render the series in a green color.static PaintAttribute
hsb
(float h, float s, float b) Returns a style attribute to render the series in the specified HSB color.static SizeAttribute
large()
Returns a style attribute to render the series line and/or shape in a large size.static SizeAttribute
medium()
Returns a style attribute to render the series line and/or shape in a medium size.static PaintScaleAttribute
rainbow()
Returns a style attribute to render the series using a rainbow paint scale.static PaintAttribute
red()
Returns a style attribute to render the series in a red color.static PaintAttribute
rgb
(int r, int g, int b) Returns a style attribute to render the series in the specified RGB color.static LabelAttribute
Returns a style attribute that renders labels alongside data points.static TooltipAttribute
Returns a style attribute that displays tooltips when hovering the mouse over data points.static SizeAttribute
size
(double size) Returns a style attribute to render the series line and/or shape in a custom size.static SizeAttribute
small()
Returns a style attribute to render the series line and/or shape in a small size.static ShapeAttribute
square()
Returns a style attribute to render the series shape as a square.
-
Field Details
-
DEFAULT_SIZE
public static final double DEFAULT_SIZEThe default size.- See Also:
-
-
Method Details
-
circle
Returns a style attribute to render the series shape as a circle.- Returns:
- the resulting style attribute
-
square
Returns a style attribute to render the series shape as a square.- Returns:
- the resulting style attribute
-
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
Returns a style attribute to render the series line and/or shape in a small size.- Returns:
- the resulting style attribute
-
medium
Returns a style attribute to render the series line and/or shape in a medium size.- Returns:
- the resulting style attribute
-
large
Returns a style attribute to render the series line and/or shape in a large size.- Returns:
- the resulting style attribute
-
color
Returns a style attribute to render the series in a custom color.- Parameters:
color
- the color- Returns:
- the resulting style attribute
-
black
Returns a style attribute to render the series in a black color.- Returns:
- the resulting style attribute
-
red
Returns a style attribute to render the series in a red color.- Returns:
- the resulting style attribute
-
green
Returns a style attribute to render the series in a green color.- Returns:
- the resulting style attribute
-
blue
Returns a style attribute to render the series in a blue color.- Returns:
- the resulting style attribute
-
rgb
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
Returns a style attribute to render the series in the specified HSB color.- Parameters:
h
- the hues
- the saturationb
- the brightness- Returns:
- the resulting style attribute
- See Also:
-
gradient
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
Returns a style attribute to render the series using a rainbow paint scale.- Returns:
- the resulting style attribute
-
showLabels
Returns a style attribute that renders labels alongside data points.- Returns:
- the resulting style attribute
-
showToolTips
Returns a style attribute that displays tooltips when hovering the mouse over data points.- Returns:
- the resulting style attribute
-