Class IndexedChartReference<RT extends org.eclipse.emf.ecore.EObject>
- java.lang.Object
-
- com._1c.g5.v8.dt.form.ui.chart.aef.models.reference.IndexedChartReference<RT>
-
- Direct Known Subclasses:
IndexedChartReferenceBand
,IndexedChartReferenceLine
public abstract class IndexedChartReference<RT extends org.eclipse.emf.ecore.EObject> extends Object
Supplemental class for associating chart reference lines / bands with index and models.
-
-
Constructor Summary
Constructors Constructor Description IndexedChartReference(int index, Runnable notifier, Chart chart)
The constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes associated models.abstract RT
get()
Gets the chart reference line / band.Chart
getChart()
Returns chart model.int
getIndex()
Gets the index.<T1> IValue<T1>
getModel(org.eclipse.emf.ecore.EStructuralFeature feature)
Gets model for given feature.<T extends Model>
TgetModel(org.eclipse.emf.ecore.EStructuralFeature feature, Supplier<T> supplier)
Gets model for given feature.Collection<Model>
getModels()
Gets all accosiated models.
-
-
-
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 featuresupplier
- 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
-
-