Examples of Movie


Examples of com.anotherbigidea.flash.movie.Movie

         
         
          File file = new File(swfFileName);
         
          if(!file.exists()){
            Movie movie = new Movie( width+10, height+10, 12, 5, null );
            movie.appendFrame().placeSymbol( image, 5, 5 );
           
            movie.write( swfFileName);
          }
          else{
            //Parse
            MovieBuilder builder = new MovieBuilder();
            FileInputStream movieOut = new FileInputStream( swfFileName );
           
            TagParser parser = new TagParser( builder );
            SWFReader reader = new SWFReader( parser, movieOut );
           
            try{
              reader.readFile();
              movieOut.close();
            }
            catch(Exception e){System.out.println("ERROR : " + e.getMessage());}

            Movie movie = builder.getMovie();
           
            movie.appendFrame().placeSymbol( image, 5, 5 );
           
            movie.write( swfFileName);
           
          }
  }
View Full Code Here

Examples of com.anotherbigidea.flash.movie.Movie

    //----------------------------------------------------------------------------
    public void generateFile( String filename, LinkedList draw_list )
    {
        DrawObject draw_object;
        Frame frame;
        Movie movie = new Movie();
       
        // movie.setBackcolor(new Color(255,255,255)); // is default
        movie.setWidth( size_.width );
        movie.setHeight( size_.height );
       
        for( int count = 0; count < draw_list.size(); count++ )
        {
            draw_object = (DrawObject) draw_list.get(count);
            if ( draw_object != null )
            {
                draw_object.drawObject(movie, count + 1, speed_);
            }
        }

        frame = movie.appendFrame();
        frame.stop()
       
        try
        {
            movie.write(filename);
        }
        catch (IOException e)
        {
            e.printStackTrace();
        }
View Full Code Here

Examples of com.anotherbigidea.flash.movie.Movie

          width = size[0];
        if (height < size[1])
          height = size[1];
        jpegIn.close();
      }
      Movie movie = new Movie(width, height, 1, 5, null);
      for (int i = 0; i < image.length; i++) {
        if (DelayTime[i] > 1000) {
          for (int j = 0; j < (DelayTime[i]) / 1000; j++) {
            Frame frame = movie.appendFrame();

            frame.placeSymbol(image[i], 0, 0);
          }
        } else {
          Frame frame = movie.appendFrame();

          frame.placeSymbol(image[i], 0, 0);

        }
      }
      // 文件输出

      BufferedOutputStream out = new BufferedOutputStream(
          new FileOutputStream((String) Desc));
      movie.write(out);
      out.flush();
      out.close();

    }
  }
View Full Code Here

Examples of com.anotherbigidea.flash.movie.Movie

          width = size[0];
        if (height < size[1])
          height = size[1];
        jpegIn.close();
      }
      Movie movie = new Movie(width, height, 1, 5, null);
      for (int i = 0; i < image.length; i++) {
        if (DelayTime[i] > 1000) {
          for (int j = 0; j < (DelayTime[i]) / 1000; j++) {
            Frame frame = movie.appendFrame();

            frame.placeSymbol(image[i], 0, 0);
          }
        } else {
          Frame frame = movie.appendFrame();

          frame.placeSymbol(image[i], 0, 0);

        }
      }

      // Http输出

      ((HttpServletResponse) Desc)
          .setContentType("application/x-shockwave-flash");
      ((HttpServletResponse) Desc).setHeader("Content-Disposition",
          " filename=animate.swf");

      ServletOutputStream out = ((HttpServletResponse) Desc)
          .getOutputStream();
      movie.write(out);
      out.flush();
      out.close();

    }
  }
View Full Code Here

Examples of com.chine.kmeans.models.Movie

    SequenceFile.Reader reader = new SequenceFile.Reader(fs, path, conf);
   
    Text key = new Text();
    Text value = new Text();
    while(reader.next(key, value)) {
      Movie currentMovie = new Movie(Integer.valueOf(key.toString())
          , value.toString());
      if(currentMovie.getMap().size() > 5)
        canopyCenters.add(currentMovie);
    }
  }
View Full Code Here

Examples of com.flagstone.transform.Movie

      // the date to associate with the embedded, rewritten URLs:
      String datespec = result.getCaptureTimestamp();
      SWFUrlRewriter rw = new SWFUrlRewriter(uriConverter, url, datespec);

      // OK, try to read the input movie:
      Movie movie = getRobustMovie(RobustMovieDecoder.DECODE_RULE_NULLS);

      try {
        movie.decodeFromStream(payloadResource);
      } catch (DataFormatException e1) {
        throw new BadContentException(e1.getLocalizedMessage());
      }
      Movie outMovie = new Movie(movie);

      List<MovieTag> inTags = movie.getObjects();
      ArrayList<MovieTag> outTags = new ArrayList<MovieTag>();
      for (MovieTag tag : inTags) {
        outTags.add(rewriteTag(rw, tag));
      }
      outMovie.setObjects(outTags);
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      try {
        outMovie.encodeToStream(baos);
      } catch (DataFormatException e) {
        throw new BadContentException(e.getLocalizedMessage());
      }

      // put the new corrected length:
View Full Code Here

Examples of com.impetus.kundera.tests.crossdatastore.imdb.entities.Movie

        // Actors
        Actor actor1 = new Actor(1, "Tom Cruise");
        Actor actor2 = new Actor(2, "Emmanuelle Béart");

        // Movies
        Movie movie1 = new Movie("m1", "War of the Worlds", 2005);
        Movie movie2 = new Movie("m2", "Mission Impossible", 1996);
        Movie movie3 = new Movie("m3", "Hell", 2005);

        // Roles
        Role role1 = new Role("Ray Ferrier", "Lead Actor");
        role1.setActor(actor1);
        role1.setMovie(movie1);
        Role role2 = new Role("Ethan Hunt", "Lead Actor");
        role2.setActor(actor1);
        role2.setMovie(movie2);
        Role role3 = new Role("Claire Phelps", "Lead Actress");
        role3.setActor(actor2);
        role1.setMovie(movie2);
        Role role4 = new Role("Sophie", "Supporting Actress");
        role4.setActor(actor2);
        role1.setMovie(movie3);

        // Relationships
        actor1.addMovie(role1, movie1);
        actor1.addMovie(role2, movie2);
        actor2.addMovie(role3, movie2);
        actor2.addMovie(role4, movie3);

        movie1.addActor(role1, actor1);
        movie2.addActor(role2, actor1);
        movie2.addActor(role3, actor2);
        movie3.addActor(role4, actor2);

        actors.add(actor1);
        actors.add(actor2);
    }
View Full Code Here

Examples of com.logigear.spring.mvc.models.Movie

    public String loadMovie(@PathVariable int id) {
        UserInfo userInfo = (UserInfo) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
        int count = userInfo.getAuthorities().size();
        SimpleGrantedAuthority[] authorities = new SimpleGrantedAuthority[count];
        userInfo.getAuthorities().toArray(authorities);
        Movie movie = moviesService.loadMovie(id);
        return "You are watching movie <b>" + movie.getMovieName() + "</b> - [logged in as <b>" + userInfo.getUsername() + ", " + userInfo.getLastName() + "</b>]";
    }
View Full Code Here

Examples of com.logigear.spring.mvc.models.Movie

   
    @Override
    @PreAuthorize("hasRole('ROLE_USER')")
    @PostAuthorize("isOver18(getReturnObject())")
    public Movie loadMovie(int movieId) {
  Movie movie = new Movie();
 
  movie.setId(1);
  movie.setMovieName("Ao lua Ha Dong");
  movie.setMovieType(MovieType.Adult18plus);
  return movie;
    }
View Full Code Here

Examples of com.vgo.movie.domain.Movie

    jLabelInfoNumeroMedia.setText(Libelle.getLibelle("dernierNumeroMedia", dernierNumMedia.toString()));
  }   

  private void jButtonAjouterActionPerformed(ActionEvent evt) {
    /*Ajout d'un film dans la base de donn�es*/
    Movie tmpMovie = new Movie();
    boolean controlOk=false;

    if(jTextNomFilm.getText().trim().equals("")){
      JOptionPane.showOptionDialog(
          SwingUtilities.getWindowAncestor(this),
          Libelle.getLibelle("erreurNomFilmVide") ,
          Libelle.getLibelle("erreur"),
          JOptionPane.DEFAULT_OPTION,
          JOptionPane.ERROR_MESSAGE,
          null,
          null,
          null)
    }
    else{
      tmpMovie.setNom(jTextNomFilm.getText());
      tmpMovie.setType((String)jComboBoxTypeMedia.getSelectedItem());
      tmpMovie.setLangue((String)jComboBoxLangue.getSelectedItem());
      tmpMovie.setCompression((String)jComboBoxCompression.getSelectedItem());
      tmpMovie.setQualite((String)jComboBoxQualite.getSelectedItem());

      try {
        if(jTextNumeroMedia.getText().trim().equals("")){
          //Dans ce cas on ajoute sur un nouveau m�dia
          tmpMovie.setIdMedia(dernierNumMedia+1);
          controlOk = true;
        }
        else{
          Integer tmpNumMedia = new Integer(jTextNumeroMedia.getText().trim());
          if(tmpNumMedia > dernierNumMedia ){
            JOptionPane.showOptionDialog(
                SwingUtilities.getWindowAncestor(this),
                Libelle.getLibelle("dernierNumeroMedia",dernierNumMedia.toString()),
                Libelle.getLibelle("erreur"),
                JOptionPane.DEFAULT_OPTION,
                JOptionPane.ERROR_MESSAGE,
                null,
                null,
                null);         
          }
          else{
            tmpMovie.setIdMedia(tmpNumMedia);
            controlOk = true;
          }
        }
      } catch (NumberFormatException e) {
        JOptionPane.showOptionDialog(
            SwingUtilities.getWindowAncestor(this),
            Libelle.getLibelle("erreurNumMediaNonEntier"),
            Libelle.getLibelle("erreur"),
            JOptionPane.DEFAULT_OPTION,
            JOptionPane.ERROR_MESSAGE,
            null,
            null,
            null);
      }     
    }



    /*A ce stade le film peut �tre ajout�*/
    if(controlOk){
      try {
        DatabaseDAO.insertMovie(tmpMovie);
        JOptionPane.showOptionDialog(
            SwingUtilities.getWindowAncestor(this),
            Libelle.getLibelle("insertionFilmOk",tmpMovie.getNom()),
            "Insertion r�ussie",
            JOptionPane.DEFAULT_OPTION,
            JOptionPane.INFORMATION_MESSAGE,
            null,
            null,
            null);
      } catch (SQLException e) {
        JOptionPane.showOptionDialog(
            SwingUtilities.getWindowAncestor(this),
            Libelle.getLibelle("erreurInsertionFilms"),
            Libelle.getLibelle("erreur"),
            JOptionPane.DEFAULT_OPTION,
            JOptionPane.ERROR_MESSAGE,
            null,
            null,
            null);
      }
      recupDernierNumMedia();
      jTextNumeroMedia.setText(dernierNumMedia.toString());
      jTextNomFilm.setText("");
      try {
        tmpMovie = (Movie)DatabaseDAO.recupDernierFilm();
        Object[] data = {new Integer(tmpMovie.getId()),
            tmpMovie.getNom(),
            tmpMovie.getType(),
            new Integer(tmpMovie.getIdMedia()),
            tmpMovie.getStatut(),
            tmpMovie.getLangue(),
            tmpMovie.getCompression(),
            tmpMovie.getQualite()};
        localParent.getListFilmModel().addRow(data);
       
      } catch (SQLException e) {
        JOptionPane.showOptionDialog(
            SwingUtilities.getWindowAncestor(this),
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.