class

CrImage::Draw::LegendStyle

Inherits Reference / Object

LegendStyle defines the appearance of a chart legend.

Constructors

new(background : CrImage::Color::Color | Nil = nil, border_color : CrImage::Color::Color | Nil = nil, text_color : CrImage::Color::Color = Color::BLACK, font_size : Int32 = 12, swatch_size : Int32 = 16, padding : Int32 = 8, spacing : Int32 = 4, orientation : Symbol = :vertical)
Source

Instance methods

background
Source
background=(background : Color::Color | Nil)
Source
border_color
Source
border_color=(border_color : Color::Color | Nil)
Source
font_size
Source
font_size=(font_size : Int32)
Source
orientation
Source
orientation=(orientation : Symbol)
Source
padding
Source
padding=(padding : Int32)
Source
spacing
Source
spacing=(spacing : Int32)
Source
swatch_size
Source
swatch_size=(swatch_size : Int32)
Source
text_color
Source
text_color=(text_color : Color::Color)
Source