com.android.ide.common.rendering.api
Class DensityBasedResourceValue

java.lang.Object
  extended by com.android.ide.common.rendering.api.ResourceReference
      extended by com.android.ide.common.rendering.api.ResourceValue
          extended by com.android.ide.common.rendering.api.DensityBasedResourceValue
All Implemented Interfaces:
IDensityBasedResourceValue, IResourceValue

public class DensityBasedResourceValue
extends ResourceValue
implements IDensityBasedResourceValue


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.android.layoutlib.api.IDensityBasedResourceValue
IDensityBasedResourceValue.Density
 
Field Summary
 
Fields inherited from class com.android.ide.common.rendering.api.ResourceValue
mValue
 
Constructor Summary
DensityBasedResourceValue(ResourceType type, java.lang.String name, java.lang.String value, Density density, boolean isFramework)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 IDensityBasedResourceValue.Density getDensity()
          Deprecated. use getResourceDensity() instead.
 Density getResourceDensity()
          Returns the density for which this resource is configured.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class com.android.ide.common.rendering.api.ResourceValue
getRawXmlValue, getResourceType, getType, getValue, replaceWith, setValue
 
Methods inherited from class com.android.ide.common.rendering.api.ResourceReference
getName, isFramework
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.android.layoutlib.api.IResourceValue
getName, getType, getValue, isFramework
 

Constructor Detail

DensityBasedResourceValue

public DensityBasedResourceValue(ResourceType type,
                                 java.lang.String name,
                                 java.lang.String value,
                                 Density density,
                                 boolean isFramework)
Method Detail

getResourceDensity

public Density getResourceDensity()
Returns the density for which this resource is configured.

Returns:
the density.

getDensity

@Deprecated
public IDensityBasedResourceValue.Density getDensity()
Deprecated. use getResourceDensity() instead.

Legacy method, do not call

Specified by:
getDensity in interface IDensityBasedResourceValue

toString

public java.lang.String toString()
Overrides:
toString in class ResourceValue

hashCode

public int hashCode()
Overrides:
hashCode in class ResourceValue

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class ResourceValue