Examples of runValidate()


Examples of net.sf.jiga.xtended.impl.Sprite.runValidate()

                                            w.addIIOWriteProgressListener(uiprg);
                                            w.addIIOWriteWarningListener(uiwarn);
                                            while (!newImg.empty()) {
                                                if (spriteIo) {
                                                    Sprite sp = new Sprite(newImg.peek(), selectedConversion, new Dimension(newImg.peek().getWidth(), newImg.peek().getHeight()));
                                                    sp.runValidate();
                                                    sp.writeImageToOutput(outputFile, compression_quality);
                                                } else {
                                                    raf = new RandomAccessFile(outputFile, "rw");
                                                    try {
                                                        raf.setLength(0);
View Full Code Here

Examples of net.sf.jiga.xtended.impl.Sprite.runValidate()

                                FX fx = fxMap.containsKey(key) ? fxMap.get(key) : defaultFX;
                                if (isFXEnabled(key)) {
                                        picBds.grow(-Math.abs(fx.fx_loc.x), -Math.abs(fx.fx_loc.y));
                                }
                                picture.setBounds(picBds);
                                picture.runValidate();
                                g.translate(-bounds.x, -bounds.y);
                                picture.draw(this, (Graphics2D) g, fx.fx, fx.fx_loc, fx.fx_clr);
                                g.translate(bounds.x, bounds.y);
                                picture.setBounds(origPicBds);
                                picture.setTileModeEnabled(tiled);
View Full Code Here

Examples of net.sf.jiga.xtended.impl.Sprite.runValidate()

                if (hasPicture(key, thumbnail)) {
                        picture = thumbnail ? (Sprite) tbCollection.get(key).get(ATTRIBUTE_SPRITE) : (Sprite) collection.get(key).get(ATTRIBUTE_SPRITE);
                } else {
                        picture = new Sprite();
                        picture.setSize(thumbnailSize);
                        picture.runValidate();
                        Image im = picture.getImage(obs);
                        Graphics2D g = Sprite.wrapRendering(Sprite._createImageGraphics(im));
                        Icon ic = UIMessage._getIcon(UIMessage.LOAD_TYPE, false);
                        ic.paintIcon(obs, g, (int) ((float) (picture.getWidth() - ic.getIconWidth()) / 2f), (int) ((float) (picture.getWidth() - ic.getIconWidth()) / 2f));
                        g.dispose();
View Full Code Here

Examples of net.sf.jiga.xtended.impl.Sprite.runValidate()

                                        Shape glyph = gv.getGlyphOutline(i, -(float) glyphBounds.getX(), -(float) glyphBounds.getY());
                                        GLHandler.sTex.genVRAMBuffersMap(1);
                                        Sprite textCanvas = new Sprite();
                                        textCanvas.setBounds(glyphBounds.getBounds());
                                        textCanvas.setLocation((int) Math.round(glyphBounds.getX() + x), (int) Math.round(glyphBounds.getY() + y));
                                        textCanvas.runValidate();
                                        textCanvas.clearImageGraphics();
                                        Graphics2D g = Sprite.wrapRendering(textCanvas.getImage(gld).getGraphics());
                                        g.setFont(font);
                                        g.fill(glyph);
                                        g.draw(glyph);
View Full Code Here

Examples of net.sf.jiga.xtended.impl.Sprite.runValidate()

                        }
                }
                Sprite sprite = frames.get(0);
                sprite.setRenderingScene(scene);
                sprite.setTexPty(anim.getTexPty());
                sprite.runValidate();
                Sf3Texture tex = sprite.getTexData().get(0);
                /**
                 * always try texture 3d mode (for smoother playback)
                 */
                if (tex.getWidth() <= GLHandler._GLgetMax3DTextureSize() && tex.getHeight() <= GLHandler._GLgetMax3DTextureSize()) {
View Full Code Here

Examples of net.sf.jiga.xtended.impl.Sprite.runValidate()

                                                public void run() {
                                                        Sprite sprite = frames.get(spriteFrame);
                                                        if (sprite != null) {
                                                                sprite.setTexPty(anim.getTexPty());
                                                                sprite.setRenderingScene(scene);
                                                                sprite.runValidate();
                                                                try {
                                                                        if (anim.isTexture3D()) {
                                                                                _GLSprites.getHandler(sprite);
                                                                                /**
                                                                                 * add
 
View Full Code Here

Examples of net.sf.jiga.xtended.impl.Sprite.runValidate()

            /*
             * model.setAttribute(ATTR_CUSTOMIZED, false);
             */
            if (model.getAttribute("icon") instanceof Sprite) {
                Sprite sp = (Sprite) model.getAttribute("icon");
                sp.runValidate();
                sw_icon = Display._Display(sp.getImage(iconPanel), null, _iconSize).getJComponentDisplay();
                iconFile = new File("icon.png");
                sp.writeImageToOutput(iconFile, .8f);
                updateIconPanel();
                customizeFrame.pack();
View Full Code Here

Examples of net.sf.jiga.xtended.impl.Sprite.runValidate()

            } else {
                textureSize.width = Sf3Texture._getNextPowerOfTwo(imageSize.width);
                textureSize.height = Sf3Texture._getNextPowerOfTwo(imageSize.height);
            }
            sp.setSize(textureSize);
            sp.runValidate();
            data = sp.toBuffered();
            textureSize.setSize(data.getWidth(), data.getHeight());
            Raster dataRaster = data.getRaster();
            dataBuffer = dataRaster.getDataBuffer();
            bands = dataRaster.getNumBands();
View Full Code Here

Examples of net.sf.jiga.xtended.impl.Sprite.runValidate()

        }
        /**
         * display anim bounds
         */
        Sprite animSp = animRecord.getCurrentSprite();
        animSp.runValidate();
        Rectangle animBounds = animSp.getBounds();
        g.draw(animBounds);
        animSp.clearResource();
        /**
         * display default animBounds
View Full Code Here

Examples of net.sf.jiga.xtended.impl.game.gl.AnimationGLHandler.runValidate()

                    if ((RenderingSceneGL._GLgetLoadState(cursor) & RenderingSceneGL._GLLOADSTATE_Cleared) != 0) {
                        RenderingSceneGL._GLloadAnim(cursor, (RenderingSceneGL) getRenderingScene(), RenderingSceneGL.PTY_ANIM);
                    }
                    AnimationGLHandler hdr = Animation._GLHandlers.getHandler(cursor);
                    hdr.play();
                    hdr.runValidate();
                    Animation._GLRenderAnimation((RenderingSceneGL) g, hdr, cursor.getBounds(new Rectangle()), z, 0, null, null, null, GLGeom.getCWrgbaColors(getRenderingScene().getForeground(), alpha));
                    GL11.glMatrixMode(GL11.GL_MODELVIEW);
                    GL11.glPopMatrix();
                }
                monitor0.notify();
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.