org.eclipse.ohf.stem.definitions.adapters.relativevalue
Class RelativeValueProviderAdapter

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterImpl
      extended by org.eclipse.ohf.stem.definitions.adapters.relativevalue.RelativeValueProviderAdapter
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal, RelativeValueProvider
Direct Known Subclasses:
StandardRelativeValueProviderAdapterFactory.DiseaseModelLabelRelativeValueProvider, StandardRelativeValueProviderAdapterFactory.DiseaseModelLabelValueRelativeValueProvider

public abstract class RelativeValueProviderAdapter
extends org.eclipse.emf.common.notify.impl.AdapterImpl
implements RelativeValueProvider

This class adapts EObjects's to RelativeValueProvider's.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Constructor Summary
RelativeValueProviderAdapter()
           
 
Method Summary
abstract  java.util.List<org.eclipse.emf.edit.provider.IItemPropertyDescriptor> getProperties()
           
abstract  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.
 double getRelativeValue(org.eclipse.emf.edit.provider.ItemPropertyDescriptor property)
          Determine the relative (0.0 to 1.0) value of the property as compared to the other properties.
 boolean isAdapterForType(java.lang.Object type)
           
 
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
 

Constructor Detail

RelativeValueProviderAdapter

public RelativeValueProviderAdapter()
Method Detail

getProperties

public abstract java.util.List<org.eclipse.emf.edit.provider.IItemPropertyDescriptor> getProperties()
Specified by:
getProperties in interface RelativeValueProvider
Returns:
the properties of the provider
See Also:
RelativeValueProvider.getProperties()

getRelativeValue

public double getRelativeValue(org.eclipse.emf.edit.provider.ItemPropertyDescriptor property)
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
Parameters:
property - 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:
RelativeValueProvider.getRelativeValue(org.eclipse.emf.edit.provider.ItemPropertyDescriptor)

getRelativeValue

public abstract 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
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:
RelativeValueProvider.getRelativeValue(org.eclipse.emf.ecore.EStructuralFeature)

isAdapterForType

public boolean isAdapterForType(java.lang.Object type)
Specified by:
isAdapterForType in interface org.eclipse.emf.common.notify.Adapter
Overrides:
isAdapterForType in class org.eclipse.emf.common.notify.impl.AdapterImpl
See Also:
AdapterImpl.isAdapterForType(java.lang.Object)