Package org.apache.pivot.wtk

Examples of org.apache.pivot.wtk.MovieView$MovieViewListenerList


    @Override
    public void install(Component component) {
        super.install(component);

        MovieView movieView = (MovieView)component;
        movieView.getMovieViewListeners().add(this);

        Movie movie = movieView.getMovie();
        if (movie != null) {
            movie.getMovieListeners().add(movieListener);
        }
    }
View Full Code Here


        }
    }

    @Override
    public int getPreferredWidth(int height) {
        MovieView movieView = (MovieView)getComponent();
        Movie movie = movieView.getMovie();

        return (movie == null) ? 0 : Math.round(movie.getWidth() * scale);
    }
View Full Code Here

        return (movie == null) ? 0 : Math.round(movie.getWidth() * scale);
    }

    @Override
    public int getPreferredHeight(int width) {
        MovieView movieView = (MovieView)getComponent();
        Movie movie = movieView.getMovie();

        return (movie == null) ? 0 : Math.round(movie.getHeight() * scale);
    }
View Full Code Here

        return (movie == null) ? 0 : Math.round(movie.getHeight() * scale);
    }

    @Override
    public Dimensions getPreferredSize() {
        MovieView movieView = (MovieView)getComponent();
        Movie movie = movieView.getMovie();

        return (movie == null) ? new Dimensions(0, 0) :
            new Dimensions(Math.round(movie.getWidth() * scale),
            Math.round(movie.getHeight() * scale));
    }
View Full Code Here

            Math.round(movie.getHeight() * scale));
    }

    @Override
    public void layout() {
        MovieView movieView = (MovieView)getComponent();
        Movie movie = movieView.getMovie();

        if (movie != null) {
            int width = getWidth();
            int height = getHeight();

View Full Code Here

        }
    }

    @Override
    public void paint(Graphics2D graphics) {
        MovieView movieView = (MovieView)getComponent();
        Movie movie = movieView.getMovie();

        int width = getWidth();
        int height = getHeight();

        if (backgroundColor != null) {
View Full Code Here

    private Window window;
    private Clock clock = new Clock();

    @Override
    public void startup(Display display, Map<String, String> properties) {
        Border border = new Border(new MovieView(clock));
        border.getStyles().put("color", 10);
        window = new Window(border);
        window.setMaximized(true);
        window.open(display);
        clock.play();
View Full Code Here

    @Override
    public void install(Component component) {
        super.install(component);

        MovieView movieView = (MovieView)component;
        movieView.getMovieViewListeners().add(this);

        Movie movie = movieView.getMovie();
        if (movie != null) {
            movie.getMovieListeners().add(movieListener);
        }
    }
View Full Code Here

        }
    }

    @Override
    public int getPreferredWidth(int height) {
        MovieView movieView = (MovieView)getComponent();
        Movie movie = movieView.getMovie();

        return (movie == null) ? 0 : Math.round(movie.getWidth() * scale);
    }
View Full Code Here

        return (movie == null) ? 0 : Math.round(movie.getWidth() * scale);
    }

    @Override
    public int getPreferredHeight(int width) {
        MovieView movieView = (MovieView)getComponent();
        Movie movie = movieView.getMovie();

        return (movie == null) ? 0 : Math.round(movie.getHeight() * scale);
    }
View Full Code Here

TOP

Related Classes of org.apache.pivot.wtk.MovieView$MovieViewListenerList

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.