Examples of addFrame()


Examples of Ocarina2D.TextEngine.TextBox.addFrame()

        TextBox text = new TextBox();
        //text.textInstant();
        text.addTextField("You're reading a sign!");
        text.addTextField("This is the second page of text, not that signs ever have that, but just thought it might be nice anyway...");

        text.addFrame(new Sprite("Resources/Sprites/Text/sign.png"));
            text=null;

        // Sleep so that things are not stupidly fast.
        try{    Thread.sleep(300);   }
        catch( InterruptedException e ) {  }
View Full Code Here

Examples of com.jidesoft.docking.DockingManager.addFrame()

    else {
      if (logger.isDebugEnabled()) {
        logger.debug("Adding new dockable frame " + frameName);
      }
      DockableFrame frame = createDockableFrame(pageComponent, viewDescriptor);
      manager.addFrame(frame);
      if(viewDescriptor.getShowTitleBar() != null){
        frame.setShowTitleBar(viewDescriptor.getShowTitleBar().booleanValue());
      }
    }
  }
View Full Code Here

Examples of edu.smu.tspell.wordnet.impl.ExampleSentences.addFrame()

        }
        //  Frame applies only to a particular word
        else
        {
          wordForm = senseKeys[sourceWord - 1].getLemma();
          sentences.addFrame(frameText, wordForm);
        }
      }
      //  We should be finished with frames now; get the frame terminator
      nextToken = tokenizer.nextToken();
    }
View Full Code Here

Examples of nodebox.movie.Movie.addFrame()

        final int height = (int) Math.round(bounds.getHeight());
        final Movie movie = new Movie(file.getAbsolutePath(), videoFormat, width, height, false);
        exportThreadedRange(controller.getNodeLibrary(), fromValue, toValue, new ExportDelegate() {
            @Override
            public void frameDone(double frame, Iterable<?> results) {
                movie.addFrame(ObjectsRenderer.createMovieImage(results, bounds));
            }

            @Override
            void exportDone() {
                progressDialog.setTitle("Converting frames to movie...");
View Full Code Here

Examples of org.ajax4jsf.resource.image.animatedgif.AnimatedGifEncoder.addFrame()

          frame = renderer.createImage(frameSize.width,
              frameSize.height);
          Graphics2D graphics = frame.createGraphics();
          paint(context, graphics, currFrameIndex++);
          graphics.dispose();
          encoder.addFrame(frame);
          if (delays != null && delays.length > currFrameIndex) {
            encoder.setDelay(delays[currFrameIndex]);
          }
        }
        encoder.finish();
View Full Code Here

Examples of org.apache.flex.swf.SWF.addFrame()

                {
                    return unLinked;
                }
                accumulatedABC.clear();
            }
            result.addFrame(resultFrame);
        }
       
        return result;
    }
View Full Code Here

Examples of org.apache.flex.swf.tags.DefineSceneAndFrameLabelDataTag.addFrame()

        final long frameLabelCount = bitStream.readEncodedU32();
        for (long i = 0; i < frameLabelCount; i++)
        {
            final long frameNum = bitStream.readEncodedU32();
            final String frameLabel = bitStream.readString();
            tag.addFrame(frameLabel, frameNum);
        }

        return tag;
    }
View Full Code Here

Examples of org.newdawn.slick.Animation.addFrame()

                try {
                    Image sprite = getEmergencySpriteSheet(emergencyType).getSprite(row, frame);
                    if (numberOfPeople != null) {
                        sprite.getGraphics().drawString("" + numberOfPeople, sprite.getWidth() / 2, sprite.getHeight() / 2);
                    }
                    emergencyAnimation.addFrame(sprite, 250);
                } catch (SlickException ex) {
                    Logger.getLogger(AnimationFactory.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        }
View Full Code Here

Examples of org.newdawn.slick.Animation.addFrame()

    }

    public static Animation getMenuBarAnimation() {
        Animation menuBarAnimation = new Animation();
     
        menuBarAnimation.addFrame(getMenuBarSpriteSheet().getSprite(0, 0), 1000);

        return menuBarAnimation;
    }

    public static Animation getEmergencyStatusAnimation( EmergencyType type, int total, int remaining) {
View Full Code Here

Examples of org.newdawn.slick.Animation.addFrame()

        Animation emergencyStatusAnimation = new Animation();
        emergencyStatusAnimation.setLooping(true);
        emergencyStatusAnimation.setAutoUpdate(true);
        if (type == EmergencyType.FIRE) {
            String percentage = calculatePercentage(total, remaining);
            emergencyStatusAnimation.addFrame(getFireEmergencyStatusSpriteSheet(percentage).getSprite(0, 0), 1000);
        }
        if (type == EmergencyType.HEART_ATTACK) {
            String percentage = calculatePercentage(total, remaining);
            emergencyStatusAnimation.addFrame(getHeartAttackEmergencyStatusSpriteSheet(percentage).getSprite(0, 0), 1000);
        }
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.