pub struct AutoLayoutManager { /* private fields */ }Expand description
Auto Layout Manager - Intelligent layout algorithm selection and management
This manager automatically selects the best layout algorithm based on graph characteristics and provides smooth transitions between different layouts.
Implementations§
Source§impl AutoLayoutManager
impl AutoLayoutManager
Sourcepub fn with_config(config: AutoLayoutConfig) -> Self
pub fn with_config(config: AutoLayoutConfig) -> Self
Create a new auto layout manager with custom configuration
Sourcepub fn select_layout_algorithm<N, E>(
&self,
graph: &Graph<N, E>,
) -> Result<String>
pub fn select_layout_algorithm<N, E>( &self, graph: &Graph<N, E>, ) -> Result<String>
Select the best layout algorithm for the given graph
Sourcepub fn apply_auto_layout<N: Clone, E>(
&mut self,
graph: &mut Graph<N, E>,
) -> Result<()>
pub fn apply_auto_layout<N: Clone, E>( &mut self, graph: &mut Graph<N, E>, ) -> Result<()>
Apply automatic layout to the graph
Sourcepub fn current_algorithm(&self) -> Option<&str>
pub fn current_algorithm(&self) -> Option<&str>
Get the currently selected layout algorithm name
Sourcepub fn is_transitioning(&self) -> bool
pub fn is_transitioning(&self) -> bool
Check if a layout transition is currently in progress
Sourcepub fn transition_progress(&self) -> Option<f64>
pub fn transition_progress(&self) -> Option<f64>
Get the progress of the current transition (0.0 to 1.0)
Trait Implementations§
Source§impl Debug for AutoLayoutManager
impl Debug for AutoLayoutManager
Auto Trait Implementations§
impl Freeze for AutoLayoutManager
impl RefUnwindSafe for AutoLayoutManager
impl Send for AutoLayoutManager
impl Sync for AutoLayoutManager
impl Unpin for AutoLayoutManager
impl UnwindSafe for AutoLayoutManager
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