Class IndexedChartReference<RT extends org.eclipse.emf.ecore.EObject>

    • Constructor Detail

      • IndexedChartReference

        public IndexedChartReference​(int index,
                                     Runnable notifier,
                                     Chart chart)
        The constructor.
        Parameters:
        index - the index
        notifier - the runnable notifier, will be run when submodels changed, cannot be null
        chart - the chart
    • Method Detail

      • dispose

        public void dispose()
        Disposes associated models.
      • getIndex

        public int getIndex()
        Gets the index.
        Returns:
        the index
      • get

        public abstract RT get()
        Gets the chart reference line / band.
        Returns:
        the the chart reference line / band, never null
      • getModel

        public <T1> IValue<T1> getModel​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Gets model for given feature. If no model for this feature accosiated with this object then new model will be created.
        Parameters:
        feature - The feature
        Returns:
        The model
      • getModel

        public <T extends Model> T getModel​(org.eclipse.emf.ecore.EStructuralFeature feature,
                                            Supplier<T> supplier)
        Gets model for given feature. If no model for this feature accosiated with this object then new model will be created using given supplier.
        Parameters:
        feature - The feature
        supplier - The supplier
        Returns:
        The model
      • getModels

        public Collection<Model> getModels()
        Gets all accosiated models.
        Returns:
        The models collection
      • getChart

        public Chart getChart()
        Returns chart model.
        Returns:
        chart model, never null