Ejemplo n.º 1
0
    def __init__(self, view: SpreadsheetView):
        self.__columns: int = 0
        self.__rows: int = 0
        self.__onCellSelectionChanged: InvokableEvent = InvokableEvent()
        self.__view: SpreadsheetView = view

        self.__data: List[List[Any]] = []
        self.__selectedCells: List[Tuple[int, int]] = list()
    def __init__(self, availableFilters: List[SeriesFilter]):
        self.__onSaveEvent: InvokableEvent = InvokableEvent()
        self.__filters: List[SeriesFilter] = availableFilters

        self._initUI()
        self.__transferWidget: TransferWidget[
            SeriesFilter] = self._getTransferWidget()
        self.__transferWidget.setLeftHeader("Included Filters")
        self.__transferWidget.setRightHeader("Available Filters")
        self.__transferWidget.setRightTableItems(self.__filters)
        self.__compositeFilter: CompositeFilter = CompositeFilter()
Ejemplo n.º 3
0
    def __init__(self, initialSeries: Iterable[Series]):
        self._graph: Graph = self._makeGraph()
        self.__series: List[Series] = list(initialSeries)
        self.__title: str = ""

        self.__titleChangedEvent: InvokableEvent = InvokableEvent()

        for series in self.__series:
            self._addEntryToListView(series.title)
            self._graph.addPlot(series)

        self.__actions: List[Action] = list()
    def __init__(self, seriesRepo: SeriesRepository):
        self.__onSavedEvent: InvokableEvent = InvokableEvent()
        self.__listFilter: SeriesFilter = None
        self._initUI()
        self.__transferWidget: TransferWidget[
            Series] = self._getTransferWidget()
        self.__transferWidget.setLeftHeader("Selected Series")
        self.__transferWidget.setRightHeader("Available Series")

        filterableSeries: List[FilterableSeries] = list(
            filter(lambda series: isinstance(series, FilterableSeries),
                   seriesRepo.getSeries()))
        self.__transferWidget.setRightTableItems(filterableSeries)
Ejemplo n.º 5
0
    def __init__(self,
                 graphViewFactory: GraphViewFactory,
                 toolBar: Toolbar = None,
                 menuBar: MenuBar = None):
        self.__menuBar: MenuBar = menuBar
        self.__toolbar: Toolbar = toolBar
        self.__actions: List[Action] = list()
        self._onClose: InvokableEvent = InvokableEvent()

        self.__graphViewFactory: GraphViewFactory = graphViewFactory
        self.__currentViews: List[GraphView] = list()
        self.__activeView: GraphView = None
        self.__linearGraphCount: int = 0
        self.__boxGraphCount: int = 0
 def __init__(self):
     self.__onSavedEvent: InvokableEvent = InvokableEvent()
     self.__listFilter: SeriesFilter = None
Ejemplo n.º 7
0
 def __init__(self):
     super().__init__()
     self.__onClose = InvokableEvent()