Table Of Contents

Previous topic

PieCtrlLegend

Next topic

ProgressPie

This Page

phoenix_title PiePart

This class handles the legend segments properties, such as value, colour and label.


class_hierarchy Inheritance Diagram

Inheritance diagram for class PiePart

Inheritance diagram of PiePart


method_summary Methods Summary

__init__ Default class constructor.
GetColour Returns the segment colour.
GetLabel Returns the segment label.
GetValue Returns the segment absolute value.
SetColour Sets the segment colour.
SetLabel Sets the segment label.
SetValue Sets the segment absolute value.

api Class API



class PiePart(object)

This class handles the legend segments properties, such as value, colour and label.


Methods



__init__(self, value=0, colour=BLACK, label="")

Default class constructor.

Parameters:
  • value – the pie part value;
  • colour – the pie part colour;
  • label – the pie part text label.


GetColour(self)

Returns the segment colour.



GetLabel(self)

Returns the segment label.



GetValue(self)

Returns the segment absolute value.



SetColour(self, colour)

Sets the segment colour.

Parameters:colour – a valid Colour object.


SetLabel(self, label)

Sets the segment label.

Parameters:label – the pie part text label.


SetValue(self, value)

Sets the segment absolute value.

Parameters:value – a floating point number representing the PiePart value.