[][src]Struct plotters::chart::SeriesLabelStyle

pub struct SeriesLabelStyle<'a, 'b, DB: DrawingBackend, CT: CoordTranslate> { /* fields omitted */ }

The struct to sepcify the series label of a target chart context

Methods

impl<'a, 'b, DB: DrawingBackend + 'a, CT: CoordTranslate> SeriesLabelStyle<'a, 'b, DB, CT>[src]

pub fn position(&mut self, pos: SeriesLabelPosition) -> &mut Self[src]

Set the series label positioning style pos - The positioning style

pub fn margin(&mut self, value: u32) -> &mut Self[src]

pub fn legend_area_size(&mut self, size: u32) -> &mut Self[src]

Set the size of legend area size - The size of legend area in pixel

pub fn border_style<S: Into<ShapeStyle>>(&mut self, style: S) -> &mut Self[src]

Set the style of the label series area style - The style of the border

pub fn background_style<S: Into<ShapeStyle>>(&mut self, style: S) -> &mut Self[src]

Set the background style style - The style of the border

pub fn label_font<F: Into<TextStyle<'b>>>(&mut self, font: F) -> &mut Self[src]

Set the series label font font - The font

pub fn draw(&mut self) -> Result<(), DrawingAreaErrorKind<DB::ErrorType>>[src]

Draw the series label area

Auto Trait Implementations

impl<'a, 'b, DB, CT> !Send for SeriesLabelStyle<'a, 'b, DB, CT>

impl<'a, 'b, DB, CT> !Sync for SeriesLabelStyle<'a, 'b, DB, CT>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.