Package com._1c.g5.v8.dt.md.pictures
Enum AbsPictureService
- java.lang.Object
-
- java.lang.Enum<AbsPictureService>
-
- com._1c.g5.v8.dt.md.pictures.AbsPictureService
-
- All Implemented Interfaces:
IPictureService
,Serializable
,Comparable<AbsPictureService>
public enum AbsPictureService extends Enum<AbsPictureService> implements IPictureService
AnIPictureService
implementation for moxel pictures.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PictureDef
createPicture()
Creates a newPictureDef
successorvoid
deleteContent(Picture picture)
Deletes content of the given pictureString
getPictureName(Picture picture)
Returns name for the given picturePictureDef
setContent(Picture picture, String fileName, Point transparent)
Sets content to the given picture.static AbsPictureService
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbsPictureService[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final AbsPictureService INSTANCE
-
-
Method Detail
-
values
public static AbsPictureService[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AbsPictureService c : AbsPictureService.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbsPictureService valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
createPicture
public PictureDef createPicture()
Description copied from interface:IPictureService
Creates a newPictureDef
successor- Specified by:
createPicture
in interfaceIPictureService
- 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 givenfileName
.- Specified by:
setContent
in interfaceIPictureService
- Parameters:
picture
- is thePicture
fileName
- is the file nametransparent
- 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 interfaceIPictureService
- 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 interfaceIPictureService
- Parameters:
picture
- is the picture
-
-