pub struct TreeMap { /* private fields */ }Expand description
TreeMap visualization component
Implementations§
Source§impl TreeMap
impl TreeMap
Sourcepub fn new(data: Vec<TreeMapNode>) -> Self
pub fn new(data: Vec<TreeMapNode>) -> Self
Create a new tree map
Sourcepub fn with_options(self, options: TreeMapOptions) -> Self
pub fn with_options(self, options: TreeMapOptions) -> Self
Set tree map options
Trait Implementations§
Source§impl DashboardComponent for TreeMap
impl DashboardComponent for TreeMap
Source§fn render(
&self,
page: &mut Page,
position: ComponentPosition,
theme: &DashboardTheme,
) -> Result<(), PdfError>
fn render( &self, page: &mut Page, position: ComponentPosition, theme: &DashboardTheme, ) -> Result<(), PdfError>
Render the component to a PDF page at the specified position
Source§fn get_span(&self) -> ComponentSpan
fn get_span(&self) -> ComponentSpan
Get the column span for this component (1-12)
Source§fn set_span(&mut self, span: ComponentSpan)
fn set_span(&mut self, span: ComponentSpan)
Set the column span for this component
Source§fn preferred_height(&self, _available_width: f64) -> f64
fn preferred_height(&self, _available_width: f64) -> f64
Get the preferred height for this component in points
Source§fn component_type(&self) -> &'static str
fn component_type(&self) -> &'static str
Get component type name for debugging
Source§fn complexity_score(&self) -> u8
fn complexity_score(&self) -> u8
Get complexity score (0-100)
Source§fn minimum_width(&self) -> f64
fn minimum_width(&self) -> f64
Get the minimum width required for this component
Source§fn estimated_render_time_ms(&self) -> u32
fn estimated_render_time_ms(&self) -> u32
Estimate rendering time in milliseconds
Source§fn estimated_memory_mb(&self) -> f64
fn estimated_memory_mb(&self) -> f64
Estimate memory usage in MB
Auto Trait Implementations§
impl Freeze for TreeMap
impl RefUnwindSafe for TreeMap
impl Send for TreeMap
impl Sync for TreeMap
impl Unpin for TreeMap
impl UnwindSafe for TreeMap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DashboardComponentClone for Twhere
T: 'static + DashboardComponent + Clone,
impl<T> DashboardComponentClone for Twhere
T: 'static + DashboardComponent + Clone,
fn clone_box(&self) -> Box<dyn DashboardComponent>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more