Struct rstk::chart::gantt_chart::TkGanttChart
source · pub struct TkGanttChart {
pub id: String,
}
Expand description
Refers to a gantt chart
Fields§
§id: String
Implementations§
source§impl TkGanttChart
impl TkGanttChart
sourcepub fn description_colour(&self, colour: &str)
pub fn description_colour(&self, colour: &str)
Sets colour of description.
sourcepub fn description_font(&self, font: &TkFont)
pub fn description_font(&self, font: &TkFont)
Sets colour of description.
sourcepub fn completed_colour(&self, colour: &str)
pub fn completed_colour(&self, colour: &str)
Sets colour of completed part of task.
sourcepub fn uncompleted_colour(&self, colour: &str)
pub fn uncompleted_colour(&self, colour: &str)
Sets colour of uncompleted part of task.
sourcepub fn odd_colour(&self, colour: &str)
pub fn odd_colour(&self, colour: &str)
Sets background colour of odd entries.
sourcepub fn even_colour(&self, colour: &str)
pub fn even_colour(&self, colour: &str)
Sets background colour of even entries.
sourcepub fn summary_colour(&self, colour: &str)
pub fn summary_colour(&self, colour: &str)
Sets colour of summary text.
sourcepub fn summary_font(&self, font: &TkFont)
pub fn summary_font(&self, font: &TkFont)
Sets font of summary text.
sourcepub fn summary_bar_colour(&self, colour: &str)
pub fn summary_bar_colour(&self, colour: &str)
Sets colour of summary bar.
sourcepub fn scale_font(&self, font: &TkFont)
pub fn scale_font(&self, font: &TkFont)
Sets font of time scale.
sourcepub fn draw_line(&self, text: &str, time_point: &str, colour: &str)
pub fn draw_line(&self, text: &str, time_point: &str, colour: &str)
Draws a vertical line on the chart.
text
- the text to display at top of linetime_point
- the time coordinate at which to draw the linecolour
- colour for line
sourcepub fn milestone(&self, text: &str, time_point: &str, colour: &str)
pub fn milestone(&self, text: &str, time_point: &str, colour: &str)
Adds a new row to the chart with the given milestone.
sourcepub fn period(
&self,
text: &str,
(time_begin, time_end): (&str, &str),
colour: &str
)
pub fn period( &self, text: &str, (time_begin, time_end): (&str, &str), colour: &str )
Adds a new row to the chart with the given period.
sourcepub fn scrollbar_horizontal(&self, scroll_bar: &TkScrollbar)
pub fn scrollbar_horizontal(&self, scroll_bar: &TkScrollbar)
Adds a horizontal scrollbar to the chart.
sourcepub fn scrollbar_vertical(&self, scroll_bar: &TkScrollbar)
pub fn scrollbar_vertical(&self, scroll_bar: &TkScrollbar)
Adds a vertical scrollbar to the chart.
sourcepub fn connect(&self, from_task: &TkGanttTask, to_task: &TkGanttTask)
pub fn connect(&self, from_task: &TkGanttTask, to_task: &TkGanttTask)
Connect two tasks.
sourcepub fn summary(&self, text: &str, tasks: &[&TkGanttTask])
pub fn summary(&self, text: &str, tasks: &[&TkGanttTask])
Summary for given tasks.
Trait Implementations§
source§impl Clone for TkGanttChart
impl Clone for TkGanttChart
source§fn clone(&self) -> TkGanttChart
fn clone(&self) -> TkGanttChart
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TkGanttChart
impl Debug for TkGanttChart
source§impl PartialEq for TkGanttChart
impl PartialEq for TkGanttChart
source§fn eq(&self, other: &TkGanttChart) -> bool
fn eq(&self, other: &TkGanttChart) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TkPlotchart for TkGanttChart
impl TkPlotchart for TkGanttChart
source§fn background_axes_colour(&self, colour: &str)
fn background_axes_colour(&self, colour: &str)
Sets the background colour for the axes.
source§fn background_gradient_colour(
&self,
colour: &str,
direction: GradientDirection,
brightness: Brightness
)
fn background_gradient_colour( &self, colour: &str, direction: GradientDirection, brightness: Brightness )
Sets a background gradient.
source§fn background_image(&self, image: &TkImage)
fn background_image(&self, image: &TkImage)
Sets a background image.
source§fn background_plot_colour(&self, colour: &str)
fn background_plot_colour(&self, colour: &str)
Sets the background colour for the plot area.
source§fn balloon(&self, (x, y): (f64, f64), text: &str, direction: Direction)
fn balloon(&self, (x, y): (f64, f64), text: &str, direction: Direction)
Creates balloon text (does not work for 3D plots).
source§fn balloon_arrow_size(&self, value: u64)
fn balloon_arrow_size(&self, value: u64)
Sets arrow-length, in pixels, for balloon text.
source§fn balloon_background_colour(&self, colour: &str)
fn balloon_background_colour(&self, colour: &str)
Sets background colour of balloon text.
source§fn balloon_font(&self, font: &TkFont)
fn balloon_font(&self, font: &TkFont)
Sets font for balloon text.
source§fn balloon_justify(&self, value: Justify)
fn balloon_justify(&self, value: Justify)
Sets justification for balloon text.
source§fn balloon_outline_colour(&self, colour: &str)
fn balloon_outline_colour(&self, colour: &str)
Sets outline colour of balloon text.
source§fn balloon_margin(&self, value: u64)
fn balloon_margin(&self, value: u64)
Sets width of margin, in pixels, around balloon text.
source§fn balloon_rim_width(&self, value: u64)
fn balloon_rim_width(&self, value: u64)
Sets margin size, in pixels, around balloon text.
source§fn balloon_text_colour(&self, colour: &str)
fn balloon_text_colour(&self, colour: &str)
Sets colour of balloon text.
source§fn draw_x_band(&self, y_min: f64, y_max: f64)
fn draw_x_band(&self, y_min: f64, y_max: f64)
Draws a horizontal light-grey band.
source§fn draw_y_band(&self, y_min: f64, y_max: f64)
fn draw_y_band(&self, y_min: f64, y_max: f64)
Draws a vertical light-grey band.
source§fn legend_background(&self, colour: &str)
fn legend_background(&self, colour: &str)
Sets background colour for legend.
source§fn legend_border(&self, colour: &str)
fn legend_border(&self, colour: &str)
Sets border colour for legend.
source§fn legend_canvas(&self, canvas: &TkCanvas)
fn legend_canvas(&self, canvas: &TkCanvas)
Sets canvas on which to draw legend.
source§fn legend_font(&self, font: &TkFont)
fn legend_font(&self, font: &TkFont)
Sets font with which to draw legend.
source§fn legend_position(&self, value: Position)
fn legend_position(&self, value: Position)
Position of legend on display.
source§fn legend_remove(&self, series: &str)
fn legend_remove(&self, series: &str)
Removes legend entry for given series.
source§fn legend_spacing(&self, value: u64)
fn legend_spacing(&self, value: u64)
Sets spacing between rows in legend.
source§fn legend_type(&mut self, value: LegendType)
fn legend_type(&mut self, value: LegendType)
Type of legend to display - series identified by line or colour rectangle.
source§fn plaintext(&self, (x, y): (f64, f64), text: &str, direction: Direction)
fn plaintext(&self, (x, y): (f64, f64), text: &str, direction: Direction)
Starts definition of plain text (does not work for 3D plots).
source§fn plaintext_colour(&self, colour: &str)
fn plaintext_colour(&self, colour: &str)
Sets colour of plain text.
source§fn plaintext_font(&self, font: &TkFont)
fn plaintext_font(&self, font: &TkFont)
Sets font for plain text.
source§fn plaintext_justify(&self, value: Justify)
fn plaintext_justify(&self, value: Justify)
Sets justification for plain text.
source§fn v_subtitle(&self, text: &str)
fn v_subtitle(&self, text: &str)
Sets subtitle of the (vertical) y-axis, and displays vertically
along axis.
source§fn v_title(&self, text: &str)
fn v_title(&self, text: &str)
Sets title of the (vertical) y-axis, and displays vertically
along axis.
source§fn x_label_offset(&self, value: f64)
fn x_label_offset(&self, value: f64)
Sets space in pixels between label and tickmark.
source§fn x_minor_ticks(&self, value: u64)
fn x_minor_ticks(&self, value: u64)
Sets number of minor tick marks.
source§fn x_scale(&self, (min, max, step): (f64, f64, f64))
fn x_scale(&self, (min, max, step): (f64, f64, f64))
Changes x-axis definition to (min, max, step).
source§fn x_subtitle(&self, text: &str)
fn x_subtitle(&self, text: &str)
Sets subtitle of the (horizontal) x-axis.
source§fn x_tick_lines(&self, colour: &str, dash: ChartDash)
fn x_tick_lines(&self, colour: &str, dash: ChartDash)
Turns on display of vertical ticklines at each tick location.
source§fn x_tick_length(&self, value: u64)
fn x_tick_length(&self, value: u64)
Sets length in pixels of tick lines.
source§fn y_label_offset(&self, value: f64)
fn y_label_offset(&self, value: f64)
Sets space in pixels between label and tickmark.
source§fn y_minor_ticks(&self, value: u64)
fn y_minor_ticks(&self, value: u64)
Sets number of minor tick marks.
source§fn y_scale(&self, (min, max, step): (f64, f64, f64))
fn y_scale(&self, (min, max, step): (f64, f64, f64))
Changes y-axis definition to (min, max, step).
source§fn y_subtitle(&self, text: &str)
fn y_subtitle(&self, text: &str)
Sets subtitle of the (vertical) y-axis.
source§fn y_tick_lines(&self, colour: &str, dash: ChartDash)
fn y_tick_lines(&self, colour: &str, dash: ChartDash)
Turns on display of vertical ticklines at each tick location.
source§fn y_tick_length(&self, value: u64)
fn y_tick_length(&self, value: u64)
Sets length in pixels of tick lines.
impl StructuralPartialEq for TkGanttChart
Auto Trait Implementations§
impl RefUnwindSafe for TkGanttChart
impl Send for TkGanttChart
impl Sync for TkGanttChart
impl Unpin for TkGanttChart
impl UnwindSafe for TkGanttChart
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