Class ImageResolution

All Implemented Interfaces:
EventListener, IAssetReferenceListener, IGProp<GProp<?>[]>, IPropCnr, Cloneable
Direct Known Subclasses:
EditorImageResolution

public class ImageResolution extends AbstractImageResolution implements IAssetReferenceListener
This Image Resolution property only holds the image reference for an additional Device Pixel Ratio.
  • Constructor Details Link icon

    • ImageResolution Link icon

      public ImageResolution()
      Creates the Image Resolution property container without a name. The name must be set in all cases using the setPropertyAtom call.
    • ImageResolution Link icon

      public ImageResolution(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 Link icon

    • getAssetReference Link icon

      public AssetReference getAssetReference()
      Gets the asset reference.
      Returns:
      The reference, or null for failure.
    • onAssetReferenceChanged Link icon

      public void onAssetReferenceChanged(AssetReference ref)
      Called when an asset file has been changed, either using new reference or the file contents. This enables verification of e.g. image size.
      Specified by:
      onAssetReferenceChanged in interface IAssetReferenceListener