org.eclipse.ohf.stem.diseasemodels.standard.provider
Class StandardRelativeValueProviderAdapterFactory.DiseaseModelLabelRelativeValueProvider
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterImpl
org.eclipse.ohf.stem.definitions.adapters.relativevalue.RelativeValueProviderAdapter
org.eclipse.ohf.stem.diseasemodels.standard.provider.StandardRelativeValueProviderAdapterFactory.DiseaseModelLabelRelativeValueProvider
- All Implemented Interfaces:
- org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal, RelativeValueProvider
- Enclosing class:
- StandardRelativeValueProviderAdapterFactory
public static class StandardRelativeValueProviderAdapterFactory.DiseaseModelLabelRelativeValueProvider
- extends RelativeValueProviderAdapter
- implements RelativeValueProvider
This class is a Relative Value Provider for DiseaseModelLabel instances.
It provides a collection of the properites that can have relative values
and will compute the value between 0.0 and 1.0 for any of those
properties.
- See Also:
StandardRelativeValueProviderAdapterFactory.DiseaseModelLabelValueRelativeValueProvider
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
org.eclipse.emf.common.notify.Adapter.Internal |
Method Summary |
java.util.List<org.eclipse.emf.edit.provider.IItemPropertyDescriptor> |
getProperties()
|
double |
getRelativeValue(org.eclipse.emf.ecore.EStructuralFeature feature)
Determine the relative (0.0 to 1.0) value of the property as compared to
the other properties. |
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
getTarget, notifyChanged, setTarget, unsetTarget |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardRelativeValueProviderAdapterFactory.DiseaseModelLabelRelativeValueProvider
public StandardRelativeValueProviderAdapterFactory.DiseaseModelLabelRelativeValueProvider()
getProperties
public java.util.List<org.eclipse.emf.edit.provider.IItemPropertyDescriptor> getProperties()
- Specified by:
getProperties
in interface RelativeValueProvider
- Specified by:
getProperties
in class RelativeValueProviderAdapter
- Returns:
- the properties of the provider
- See Also:
RelativeValueProviderAdapter.getProperties()
getRelativeValue
public double getRelativeValue(org.eclipse.emf.ecore.EStructuralFeature feature)
- Description copied from interface:
RelativeValueProvider
- Determine the relative (0.0 to 1.0) value of the property as compared to
the other properties.
- Specified by:
getRelativeValue
in interface RelativeValueProvider
- Specified by:
getRelativeValue
in class RelativeValueProviderAdapter
- Parameters:
feature
- feature of the property whose relative value is to be
determined
- Returns:
- relative (0.0-1.0) value of the property as compared to the other
properties.
- See Also:
RelativeValueProviderAdapter.getRelativeValue(org.eclipse.emf.ecore.EStructuralFeature)