Class GraphicalSchemePictureModelFactory.PictureService
- java.lang.Object
-
- com._1c.g5.v8.dt.bp.scheme.ui.aef.models.GraphicalSchemePictureModelFactory.PictureService
-
- All Implemented Interfaces:
IPictureService
- Enclosing class:
- GraphicalSchemePictureModelFactory
public static class GraphicalSchemePictureModelFactory.PictureService extends Object implements IPictureService
AnIPictureService
implementation for graphical scheme pictures.
-
-
Constructor Summary
Constructors Constructor Description PictureService(IResourceLookup resourceLookup, IProjectFileSystemSupportProvider fileSystemSupportProvider, org.eclipse.emf.ecore.EObject owner)
Constructor ofGraphicalSchemePictureModelFactory.PictureService
.
-
Method Summary
All 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.
-
-
-
Constructor Detail
-
PictureService
public PictureService(IResourceLookup resourceLookup, IProjectFileSystemSupportProvider fileSystemSupportProvider, org.eclipse.emf.ecore.EObject owner)
Constructor ofGraphicalSchemePictureModelFactory.PictureService
.- Parameters:
resourceLookup
- - resource lookup, cannot benull
fileSystemSupportProvider
- - file system support, cannot benull
owner
- the scheme owner, cannot benull
-
-
Method Detail
-
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
-
-