Package com.volantis.mcs.components

Examples of com.volantis.mcs.components.ImageComponent


        XMLRepositoryManager xmlRepositoryMgr = new XMLRepositoryManager();
        xmlRepositoryMgr.executeWith(new XMLRepositoryManager.RepositoryCommand() {
            public void execute(RepositoryConnection repositoryConnection,
                                XMLRepository repository,
                                String repositoryDir) throws Exception {
                ImageComponent ic = new ImageComponent("/testAddImageComponent.mimg");
                ImageRepositoryManager manager =
                        new ImageRepositoryManager(repository);
                manager.addImageComponent(repositoryConnection, ic);

                containerExists(ic.getName(), false, repositoryConnection,
                        repository);
            }
        });
    }
View Full Code Here


        XMLRepositoryManager xmlRepositoryMgr = new XMLRepositoryManager();
        xmlRepositoryMgr.executeWith(new XMLRepositoryManager.RepositoryCommand() {
            public void execute(RepositoryConnection repositoryConnection,
                                XMLRepository repository,
                                String repositoryDir) throws Exception {
                ImageComponent ic = new ImageComponent("/testRemoveImageComponent.mimg");
                ImageRepositoryManager manager =
                        new ImageRepositoryManager(repository);
                manager.addImageComponent(repositoryConnection, ic);
                containerExists(ic.getName(), false, repositoryConnection,
                        repository);

                manager.removeImageComponent(repositoryConnection,
                        ic.getName());

                containerExists(ic.getName(), true, repositoryConnection,
                        repository);
            }
        });
    }
View Full Code Here

    String assetValue="MyValue";

    ImageRepositoryManager imageRepositoryManager=
        new ImageRepositoryManager(repository);

    ImageComponent component=
        new ImageComponent(assetName);
    ConvertibleImageAsset asset =
        new ConvertibleImageAsset(assetName,
                                  pixelsX,
                                  pixelsY,
                                  pixelDepth,
View Full Code Here

    String assetValue="MyValue";

    ImageRepositoryManager imageRepositoryManager=
        new ImageRepositoryManager(repository);

    ImageComponent component=
        new ImageComponent(assetName);
    ConvertibleImageAsset asset =
        new ConvertibleImageAsset(assetName,
                                  pixelsX,
                                  pixelsY,
                                  pixelDepth,
                                  rendering,
                                  encoding,
                                  assetGroup,
                                  assetValue);

    imageRepositoryManager.addImageComponent(repositoryConnection,component);
    imageRepositoryManager.addConvertibleImageAsset(repositoryConnection,asset);
    //
    // Make a copy of our convertible image asset.
    //
    component.setName(newAssetName);
    imageRepositoryManager.addImageComponent(repositoryConnection,component);
    imageRepositoryManager.copyConvertibleImageAsset(repositoryConnection,
                                                     assetName,
                                                     newAssetName);
    ConvertibleImageAsset asset2 = imageRepositoryManager.
View Full Code Here

    String assetValue="MyValue";

    ImageRepositoryManager imageRepositoryManager=
        new ImageRepositoryManager(repository);

    ImageComponent component=
        new ImageComponent(assetName);
    ConvertibleImageAsset asset =
        new ConvertibleImageAsset(assetName,
                                  pixelsX,
                                  pixelsY,
                                  pixelDepth,
View Full Code Here

    String assetValue="MyValue";

    ImageRepositoryManager imageRepositoryManager=
        new ImageRepositoryManager(repository);

    ImageComponent component=
        new ImageComponent(assetName);
    ConvertibleImageAsset asset =
        new ConvertibleImageAsset(assetName,
                                  pixelsX,
                                  pixelsY,
                                  pixelDepth,
View Full Code Here

TOP

Related Classes of com.volantis.mcs.components.ImageComponent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.