ColorSchemePerAttribute_float¶
Please refer to samson.DataModel.DataGraph.ColorScheme
.
See also
SAMSON API: SBDColorSchemePerAttribute
- class samson.DataModel.Color.ColorSchemePerAttribute_float(self: samson.DataModel.Color.ColorSchemePerAttribute_float) None ¶
Bases:
samson.DataModel.DataGraph.ColorScheme
This is a base class that describes a color scheme based on node attributes. Warning: Only for internal use.
- clone(self: samson.DataModel.DataGraph.ColorScheme) samson.DataModel.DataGraph.ColorScheme ¶
Returns a copy of the color scheme
- getColor(self: samson.DataModel.DataGraph.ColorScheme, node: samson.DataModel.DataGraph.Node = None) List[float] ¶
Returns a color given a node
- getColorPalette(self: samson.DataModel.Color.ColorSchemePerAttribute_float) samson.DataModel.Color.ColorPalette ¶
Returns the color scheme’s color palette
- setColorPalette(self: samson.DataModel.Color.ColorSchemePerAttribute_float, colorPalette: samson.DataModel.Color.ColorPalette) None ¶
Sets the color scheme’s color palette
- property isSerializable¶
Returns true when the class is serializable