Class ImageStyle

All Implemented Interfaces:
EventListener, IAssetReferenceListener, IGProp<GProp<?>[]>, IImageStyle, IPropCnr, Cloneable
Direct Known Subclasses:
EditorImageStyle, ImagesStyle, ImageStyleLocation

public class ImageStyle extends PropCnr implements IAssetReferenceListener, IImageStyle
This Image Style property container holds the image types, asset reference, and other settings.
  • Constructor Details Link icon

    • ImageStyle Link icon

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

      public ImageStyle(Atom propertyAtom)
      Creates the Image Style 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

    • 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.
    • getMatchMasks Link icon

      public int getMatchMasks()
      Gets the mask values for matching.

      The mask consists of two values in a single integer as:

      • Define mask: 0x0000-0x007F (in low byte).
      • Set mask : 0x0000-0x7F00 (in high byte shifted up 8 bits)..

      The values IT_* are:

      • 0x01 rtl (right-to-left)
      • 0x02 disable
      • 0x04 press
      • 0x08 select
      • 0x10 focus
      • 0x20 hover
      • 0x40 capture
      Specified by:
      getMatchMasks in interface IImageStyle
      Returns:
      -1 If it's the default default image, i.e. matching everything.
    • 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