[][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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.