Class AbstractImageResolution

java.lang.Object
com.iizix.prop.GProp<GProp<?>[]>
com.iizix.prop.PropCnr
com.iizix.prop.image.AbstractImageResolution
All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, Cloneable
Direct Known Subclasses:
ImageResolution, ImagesResolution, ImageStylesResolution

public class AbstractImageResolution extends PropCnr
This Image Resolution property only holds the image reference for an additional Device Pixel Ratio.
  • Constructor Details

    • AbstractImageResolution

      protected AbstractImageResolution()
      Creates the Image Resolution property container without a name. The name must be set in all cases using the setPropertyAtom call.
    • AbstractImageResolution

      protected AbstractImageResolution(Atom propertyAtom)
      Creates the Image Resolution property container with the specified name. All system-reserved names for components begins with "$".
      Parameters:
      propertyAtom - the name of the component, unique within it's parent.
  • Method Details

    • getDevicePixelRatio

      public double getDevicePixelRatio()
      Gets the Device Pixel Ratio.
      Returns:
      zero if not set, otherwise a ratio that normally is between 0.7 and 2.
    • setDevicePixelRatio

      public boolean setDevicePixelRatio(Double dpr)
      Sets the Device Pixel Ratio.
      Parameters:
      dpr - The Device Pixel Ratio.
      Returns:
      true for change, false for no change to the value.