Enum Class AbsPictureService

java.lang.Object
java.lang.Enum<AbsPictureService>
com._1c.g5.v8.dt.md.pictures.AbsPictureService
All Implemented Interfaces:
IPictureService, Serializable, Comparable<AbsPictureService>, Constable

public enum AbsPictureService extends Enum<AbsPictureService> implements IPictureService
An IPictureService implementation for moxel pictures.
  • Enum Constant Details

  • Method Details

    • values

      public static AbsPictureService[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AbsPictureService valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • createPicture

      public PictureDef createPicture()
      Description copied from interface: IPictureService
      Creates a new PictureDef successor
      Specified by:
      createPicture in interface IPictureService
      Returns:
      a new PictureDef
    • setContent

      public PictureDef setContent(Picture picture, String fileName, Point transparent)
      Description copied from interface: IPictureService
      Sets content to the given picture. Content is taken from file with the given fileName.
      Specified by:
      setContent in interface IPictureService
      Parameters:
      picture - is the Picture
      fileName - is the file name
      transparent - is the transparent point for picture
      Returns:
    • getPictureName

      public String getPictureName(Picture picture)
      Description copied from interface: IPictureService
      Returns name for the given picture
      Specified by:
      getPictureName in interface IPictureService
      Parameters:
      picture - is the picture
      Returns:
      the picture name
    • deleteContent

      public void deleteContent(Picture picture)
      Description copied from interface: IPictureService
      Deletes content of the given picture
      Specified by:
      deleteContent in interface IPictureService
      Parameters:
      picture - is the picture