SankeyLink
struct · ferroui-controls-livecharts · v0.5.0
struct SankeyLink
A directed weighted edge of a Sankey series (SankeyLink) between two node objects and, in
place of the source's LinkColorMapper, an optional colour of its own. A link without both
ends, or with an end that is not a node of the series, is skipped by the layout.
Members
TYPEto_refconstructnewwith_nodesentity_idsnapshotsourceset_sourcetargetset_targetweightset_weightcolorset_colorsource_propertytarget_propertyweight_propertycolor_property
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<SankeyLink>
Returns a strong reference to this object.
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
with_nodes
fn with_nodes(source: &Ref<SankeyNode>, target: &Ref<SankeyNode>, weight: f64) -> Ref<Self>
A link of the given weight from source to target (SankeyLink(source, target, weight)).
entity_id
fn entity_id(self: &Self) -> u64
snapshot
fn snapshot(self: &Self) -> ferroui_livecharts::SankeyLink
The engine link. A missing end takes the identity 0, which no node has.
source
fn source(self: &Self) -> Option<Ref<SankeyNode>>
set_source
fn set_source(self: &Self, value: Option<Ref<SankeyNode>>)
target
fn target(self: &Self) -> Option<Ref<SankeyNode>>
set_target
fn set_target(self: &Self, value: Option<Ref<SankeyNode>>)
weight
fn weight(self: &Self) -> f64
set_weight
fn set_weight(self: &Self, value: f64)
color
fn color(self: &Self) -> Option<Color>
set_color
fn set_color(self: &Self, value: Option<Color>)
source_property
fn source_property() -> &'static StyledProperty<Option<Ref<SankeyNode>>>
target_property
fn target_property() -> &'static StyledProperty<Option<Ref<SankeyNode>>>
weight_property
fn weight_property() -> &'static StyledProperty<f64>
color_property
fn color_property() -> &'static StyledProperty<Option<Color>>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<SankeyLink>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.