Class MdPictureModel

    • Constructor Detail

      • MdPictureModel

        public MdPictureModel​(MdObject object,
                              org.eclipse.emf.ecore.EStructuralFeature feature,
                              IModelObjectFactory modelFactory,
                              IRuntimeVersionSupport runtimeVersionSupport)
        Instantiates a new picture model.
        object - the md-object, can not be null
        feature - the object feature, can not be null
        modelFactory - the model factory, can not be null
        runtimeVersionSupport - the version support, can not be null
    • Method Detail

      • setContent

        public void setContent​(byte[] content,
                               String fileExtension,
                               Point transparentPoint)
        Description copied from interface: IMdPictureModel
        Sets MdPicture content.
        Specified by:
        setContent in interface IMdPictureModel
        content - the picture content
        fileExtension - the picture file extension
        transparentPoint - the picture transparent point
      • commit

        public void commit()
        Description copied from interface: IModel
        Commits the changes to the data model.
        Specified by:
        commit in interface IModel
        commit in class Model