Class RuntimeImageDefinition

All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IImageTarget, IPropCnr, Cloneable

public class RuntimeImageDefinition extends AbstractImageDefinition implements IImageTarget
The runtime image definition is used to provide images at runtime that are images located in other files than the asset files. These images may support various formats that are defined at runtime only.

This class is typically used in conjunction with the com.iizix.server.wsfile.WSFile's on the server side.

This class is not stored in XML files nor communicated to a remote part, it is intended to be used for pure dynamic runtime image provider purposes.

Author:
Christopher Mindus
  • Field Details

    • name

      public final String name
      The image name.
  • Constructor Details

    • RuntimeImageDefinition

      public RuntimeImageDefinition(String name, ClientImageData imageData)
      Creates a new image definition.
      Parameters:
      name - The image name, must be a valid Atom name.
      imageData - The allocated and initialized image data.
      Throws:
      NullPointerException - If the name is null.
      IllegalArgumentException - If the name is invalid as Atom name.
  • Method Details

    • isImageTargetValid

      public boolean isImageTargetValid()
      Checks if this target is valid.
      Specified by:
      isImageTargetValid in interface IImageTarget
    • getClientImageData

      public ClientImageData getClientImageData()
      Gets the Client image data.
      Specified by:
      getClientImageData in interface IImageTarget
    • hashCode

      public int hashCode()
      The hash code.
      Overrides:
      hashCode in class Object
      Returns:
      This object's hashCode.
    • equalsTree

      protected Object equalsTree(PropCnr pc, int how)
      Compares two runtime image definitions.
      Overrides:
      equalsTree in class PropCnr
      Parameters:
      pc - Other property to compare with.
      how - How to compare the two objects.
      Returns:
      Equality flag = null, otherwise the pc object that is different.