Class StyledImageDefinition

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

public class StyledImageDefinition extends AbstractImageDefinition implements IImageTarget, IAssetReferenceListener, IImageSize
Image States Definition property container when a single image file has one image in many states and possibly resolutions.
Author:
Christopher Mindus
  • Constructor Details Link icon

    • StyledImageDefinition Link icon

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

      public StyledImageDefinition(Atom propertyAtom)
      Creates the Image States Definition 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

    • getMultipleImageSize Link icon

      public Size getMultipleImageSize()
      Gets the size of the multiple-image.
    • getImageSize Link icon

      public Size getImageSize()
      Gets the part size.
      Specified by:
      getImageSize in interface IImageSize
      Returns:
      null If not set.
    • 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
    • onEventSelf Link icon

      public void onEventSelf(GEvent event)
      Overridden to check for cache clearing...
      Specified by:
      onEventSelf in interface IGProp<GProp<?>[]>
      Overrides:
      onEventSelf in class GProp<GProp<?>[]>
      Parameters:
      event - The property event.
    • isImageTargetValid Link icon

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

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