class documentation
class ACMEContainerDiagram(Container):
Constructor: ACMEContainerDiagram(refreshCallback, id)
The Diagram view for Container resources for the ACME text UI.
| Method | __init__ |
Initialize the Diagram view. |
| Method | bar |
Callback to switch to the bar diagram. |
| Method | compose |
Compose the diagram view. |
| Method | graph |
Callback to switch to the graph diagram. |
| Method | line |
Callback to switch to the line diagram. |
| Method | on |
Callback to refresh the diagram. |
| Method | on |
Callback when the view is hidden. |
| Method | on |
Callback when the view is mounted. |
| Method | on |
Callback when the view is shown. |
| Method | plot |
Plot the graph. |
| Method | refresh |
Callback to refresh the diagram. |
| Method | refresh |
Refresh the diagram. |
| Method | scatter |
Callback to switch to the scatter diagram. |
| Method | set |
Set the data to be displayed in the diagram. |
| Method | time |
Callback to switch to the timeline diagram. |
| Instance Variable | auto |
Whether the diagram should be refreshed automatically. |
| Instance Variable | buttons |
The buttons to switch between the diagram types. |
| Instance Variable | color |
The color of the diagram. |
| Instance Variable | dates |
The dates for the values. |
| Instance Variable | plot |
The plot widget. |
| Instance Variable | plot |
The container widget for the plot. |
| Instance Variable | refresh |
The callback to refresh the diagram. |
| Instance Variable | refresh |
The checkbox to enable/disable the automatic refresh. |
| Instance Variable | refresh |
The timer for the automatic refresh. |
| Instance Variable | type |
The type of the diagram. |
| Instance Variable | values |
The values to be displayed in the diagram. |
| Method | _activate |
Activate a button. |
| Method | _new |
Create a new plot instance and update the container. |
| Method | _refresh |
Refresh the chart. |
| Method | _start |
Start the refresh timer. |
| Method | _stop |
Stop the refresh timer. |
Initialize the Diagram view.
| Parameters | |
refreshCallable | The callback to refresh the diagram. |
id:str | The ID of the view. |
Set the data to be displayed in the diagram.
| Parameters | |
values:list[ | The data to be displayed. |
dates:list[ | The dates for the data. If not given, the current time is used. |