Examples of ImageComponent

If intValue is greater than 127, then byteVariable will be negative. The correct value will be extracted when it is used (by masking off the upper bits).
  • org.olat.core.gui.components.image.ImageComponent
    Description:
    @author Felix Jost

  • 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

    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("/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

    Examples of com.volantis.mcs.components.ImageComponent

        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

    Examples of com.volantis.mcs.components.ImageComponent

        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

    Examples of com.volantis.mcs.components.ImageComponent

        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

    Examples of com.volantis.mcs.components.ImageComponent

        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

    Examples of csa.jmom.grafics.ImageComponent

            jPanelTileView.removeAll();
            if (mCurrentTile == null) return;
            if (mCurrentTile.mType == TILE_SINGLE)
            {
                ImageComponent oneTile = new ImageComponent();
                oneTile.setSequence(new ImageSequence(mData));


                oneTile.setBounds(2,2, mCurrentTile.getWidth(), mCurrentTile.getHeight());
                jPanelTileView.add(oneTile);
                oneTile.setVisible(true);
                jPanelTileView.repaint();
            }
            resetAttributeTable();
        }
    View Full Code Here

    Examples of csa.jmom.grafics.ImageComponent

            jPanelTileView.removeAll();
            if (mCurrentTile == null) return;
            if (mCurrentTile.mType == TILE_SINGLE)
            {
                ImageComponent oneTile = new ImageComponent();
                oneTile.setSequence(new ImageSequence(mData));


                oneTile.setBounds(2,2, mCurrentTile.getWidth(), mCurrentTile.getHeight());
                jPanelTileView.add(oneTile);
                oneTile.setVisible(true);
                jPanelTileView.repaint();
            }
            resetAttributeTable();
        }
    View Full Code Here

    Examples of javax.media.j3d.ImageComponent

    /*     */     }
    /*     */   }
    /*     */
    /*     */   private void updateText2D(String text, Color3f color, String fontName, int fontSize, int fontStyle)
    /*     */   {
    /* 152 */     ImageComponent imageComponent = setupImage(text, color, fontName, fontSize, fontStyle);
    /*     */
    /* 155 */     Texture2D t2d = setupTexture(imageComponent);
    /*     */
    /* 157 */     QuadArray rect = setupGeometry(imageComponent.getWidth(), imageComponent.getHeight());
    /*     */
    /* 159 */     setGeometry(rect);
    /*     */
    /* 161 */     Appearance appearance = setupAppearance(t2d);
    /* 162 */     setAppearance(appearance);
    View Full Code Here

    Examples of javax.media.j3d.ImageComponent

    /* 261 */     offscreenGraphics.setFont(font);
    /* 262 */     Color myTextColor = new Color(color.x, color.y, color.z, 1.0F);
    /* 263 */     offscreenGraphics.setColor(myTextColor);
    /* 264 */     offscreenGraphics.drawString(text, 0, height - descent);
    /*     */
    /* 266 */     ImageComponent imageComponent = new ImageComponent2D(2, bImage);
    /*     */
    /* 270 */     imageComponent.setCapability(0);
    /*     */
    /* 272 */     return imageComponent;
    /*     */   }
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. 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.