[−][src]Struct plotters::chart::SeriesLabelStyle
The struct to specify 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<S: SizeDesc>(&mut self, value: S) -> &mut Self
[src]
Set the margin of the series label drawing are
value
: The size specification
pub fn legend_area_size<S: SizeDesc>(&mut self, size: S) -> &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: IntoTextStyle<'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> Unpin for SeriesLabelStyle<'a, 'b, DB, CT> where
'a: 'b,
'a: 'b,
impl<'a, 'b, DB, CT> !Sync for SeriesLabelStyle<'a, 'b, DB, CT>
impl<'a, 'b, DB, CT> !UnwindSafe for SeriesLabelStyle<'a, 'b, DB, CT>
impl<'a, 'b, DB, CT> !RefUnwindSafe for SeriesLabelStyle<'a, 'b, DB, CT>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,