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
AnIPictureServiceimplementation 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 PictureDefcreatePicture()Creates a newPictureDefsuccessorvoiddeleteContent(Picture picture)Deletes content of the given pictureStringgetPictureName(Picture picture)Returns name for the given picturePictureDefsetContent(Picture picture, String fileName, Point transparent)Sets content to the given picture.static AbsPictureServicevalueOf(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:IPictureServiceCreates a newPictureDefsuccessor- Specified by:
createPicturein interfaceIPictureService- Returns:
- a new
PictureDef
-
setContent
public PictureDef setContent(Picture picture, String fileName, Point transparent)
Description copied from interface:IPictureServiceSets content to the given picture. Content is taken from file with the givenfileName.- Specified by:
setContentin interfaceIPictureService- Parameters:
picture- is thePicturefileName- is the file nametransparent- is the transparent point for picture- Returns:
-
getPictureName
public String getPictureName(Picture picture)
Description copied from interface:IPictureServiceReturns name for the given picture- Specified by:
getPictureNamein interfaceIPictureService- Parameters:
picture- is the picture- Returns:
- the picture name
-
deleteContent
public void deleteContent(Picture picture)
Description copied from interface:IPictureServiceDeletes content of the given picture- Specified by:
deleteContentin interfaceIPictureService- Parameters:
picture- is the picture
-
-