fsleyes.controls.plotlistpanel¶
This module provides the PlotListPanel a FSLeyes control panel
which allows the user to add/remove DataSeries from an
OverlayPlotPanel.
-
class
fsleyes.controls.plotlistpanel.PlotListPanel(parent, overlayList, displayCtx, plotPanel)[source]¶ Bases:
fsleyes.controls.controlpanel.ControlPanelThe
PlotListPanelis a FSLeyes control panel for use withOverlayPlotPanelviews. It allows the user to add and removeDataSeriesinstances from thePlotPanel.dataSerieslist.For every
DataSeriesinstance in thePlotPanel.dataSerieslist of theOverlayPlotPanel, thePlotListPanelcreates aDataSeriesWidget, which allows the user to change the display settings of theDataSeriesinstance. AEditableListBoxis used to display the labels for eachDataSeriesinstance, and the associatedDataSeriesWidgetcontrols.-
static
supportedViews()[source]¶ The
PlotListPanelis restricted for use withOverlayPlotPanelviews. This method may be overridden by sub-classes.
-
static
defaultLayout()[source]¶ Returns a dictionary containing layout settings to be passed to
ViewPanel.togglePanel.
-
__init__(parent, overlayList, displayCtx, plotPanel)[source]¶ Create a
PlotListPanel.- Parameters
parent – The
wxparent object.overlayList – The
OverlayList.displayCtx – The
DisplayContextinstance.plotPanel – The
OverlayPlotPanelassociated with thisPlotListPanel.
-
destroy()[source]¶ Must be called when this
PlotListPanelis no longer needed. Removes some property listeners, and calls theControlPanel.destroy()method.
-
property
dsList¶ Return a reference to the
EditableListBoxwidget that contains the list ofDataSeries.
-
dataSeriesChanged(*a)[source]¶ Called when the
PlotPanel.dataSerieslist of theOverlayPlotPanelchanges. Updates the list ofTimeSeriesWidgetcontrols.
-
onListAdd(ev)[source]¶ Called when the user pushes the add button on the
EditableListBox. Adds theDataSeriesassociated with the currently selected overlay to thePlotPanel.dataSerieslist of theOverlayPlotPanel.
-
onListEdit(ev)[source]¶ Called when the user edits a label on the
EditableListBox. Updates theDataSeries.labelproperty of the correspondingDataSeriesinstance.
-
onListSelect(ev)[source]¶ Called when the user selects an item in the
EditableListBox. Sets theDisplayContext.selectedOverlayto the overlay associated with the correspondingDataSeriesinstance.
-
onListRemove(ev)[source]¶ Called when the user removes an item from the
EditableListBox. Removes the correspondingDataSeriesinstance from thePlotPanel.dataSerieslist of theOverlayPlotPanel.
-
__module__= 'fsleyes.controls.plotlistpanel'¶
-
static
-
class
fsleyes.controls.plotlistpanel.DataSeriesWidget(parent, dataSeries)[source]¶ Bases:
__main__.docbuilder.run.<locals>.MockClassThe
DataSeriesWidgetclass is a panel which contains controls that modify the properties of aDataSeriesinstance. ADataSeriesWidgetis created by thePlotListPanelfor everyDataSeriesin thePlotPanel.dataSerieslist.-
__init__(parent, dataSeries)[source]¶ Create a
DataSeriesWidget.- Parameters
parent – The
wxparent object.dataSeries – The
DataSeriesinstance.
-
__module__= 'fsleyes.controls.plotlistpanel'¶
-