DisplayMode

Trait DisplayMode 

Source
pub trait DisplayMode {
    // Required methods
    fn axis(&self, cfg: &GraphConfig, dimension: Dimension) -> Axis<'_>;
    fn process(&mut self, cfg: &GraphConfig, data: &Matrix<f64>) -> Vec<DataSet>;
    fn mode_str(&self) -> &'static str;

    // Provided methods
    fn channel_name(&self, index: usize) -> String { ... }
    fn header(&self, _cfg: &GraphConfig) -> String { ... }
    fn references(&self, _cfg: &GraphConfig) -> Vec<DataSet> { ... }
    fn handle(&mut self, _event: Event) { ... }
}

Required Methods§

Source

fn axis(&self, cfg: &GraphConfig, dimension: Dimension) -> Axis<'_>

Source

fn process(&mut self, cfg: &GraphConfig, data: &Matrix<f64>) -> Vec<DataSet>

Source

fn mode_str(&self) -> &'static str

Provided Methods§

Source

fn channel_name(&self, index: usize) -> String

Source

fn header(&self, _cfg: &GraphConfig) -> String

Source

fn references(&self, _cfg: &GraphConfig) -> Vec<DataSet>

Source

fn handle(&mut self, _event: Event)

Implementors§