- All Implemented Interfaces:
Serializable, Comparable<SVGGraphics2D.Theme>, java.lang.constant.Constable
- Enclosing class:
SVGGraphics2D
Identifies the I2P console theme for SVG post-processing. Each theme requires different gradient fills, stroke colors, and CSS class overrides in the generated SVG output.
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClassic theme — no gradient fill (uses inline RGB), dark gray axis/stroke colors.Dark theme — green gradient fill, yellow-green axis/stroke colors.Light theme — blue gradient fill, dark gray axis/stroke colors.Midnight theme — blue gradient fill, lavender axis/stroke colors.Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionstatic SVGGraphics2D.ThemeReturns the enum constant of this class with the specified name.static SVGGraphics2D.Theme[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
DARK
Dark theme — green gradient fill, yellow-green axis/stroke colors.LIGHT
Light theme — blue gradient fill, dark gray axis/stroke colors.MIDNIGHT
Midnight theme — blue gradient fill, lavender axis/stroke colors.CLASSIC
Classic theme — no gradient fill (uses inline RGB), dark gray axis/stroke colors.
Constructor Details
Theme
private Theme()
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null