org.eclipse.ohf.stem.diseasemodels.standard.provider
Class StandardRelativeValueProviderAdapterFactory.DiseaseModelLabelRelativeValueProvider

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterImpl
      extended by org.eclipse.ohf.stem.definitions.adapters.relativevalue.RelativeValueProviderAdapter
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Constructor Summary
StandardRelativeValueProviderAdapterFactory.DiseaseModelLabelRelativeValueProvider()
           
 
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.ohf.stem.definitions.adapters.relativevalue.RelativeValueProviderAdapter
getRelativeValue, isAdapterForType
 
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
 
Methods inherited from interface org.eclipse.ohf.stem.definitions.adapters.relativevalue.RelativeValueProvider
getRelativeValue
 

Constructor Detail

StandardRelativeValueProviderAdapterFactory.DiseaseModelLabelRelativeValueProvider

public StandardRelativeValueProviderAdapterFactory.DiseaseModelLabelRelativeValueProvider()
Method Detail

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)