this.modelPanel.setBorder(BorderFactory.createTitledBorder("Model")); this.modelFrame = new ImageComponent(true, false); this.modelFrame.setShowPixelColours(false); this.modelFrame.setShowXYPosition(false); this.modelFrame.removeMouseListener(this.modelFrame); this.matchPanel.setBorder(BorderFactory.createTitledBorder("Matches")); this.matchFrame = new ImageComponent(true, false); this.matchFrame.setShowPixelColours(false); this.matchFrame.setShowXYPosition(false); this.matchFrame.removeMouseListener(this.matchFrame);
this.modelPanel.setBorder(BorderFactory.createTitledBorder("Model")); this.modelFrame = new ImageComponent(true, false); this.modelFrame.setShowPixelColours(false); this.modelFrame.setShowXYPosition(false); this.modelFrame.removeMouseListener(this.modelFrame); this.matchPanel.setBorder(BorderFactory.createTitledBorder("Matches")); this.matchFrame = new ImageComponent(true, false); this.matchFrame.setShowPixelColours(false); this.matchFrame.setShowXYPosition(false); this.matchFrame.removeMouseListener(this.matchFrame);
ic.setAllowPanning(false); ic.setTransparencyGrid(false); ic.setShowPixelColours(false); ic.setShowXYPosition(false); screen.getContentPane().add(ic);
c.setShowPixelColours(false); c.setShowXYPosition(false); c.setAllowZoom(false);
ic.setAllowPanning(false); ic.setTransparencyGrid(false); ic.setShowPixelColours(false); ic.setShowXYPosition(false); comp.add(ic);
c.setShowPixelColours(false); c.setShowXYPosition(false); c.setAllowZoom(false);
ic.setAllowPanning(false); ic.setTransparencyGrid(false); ic.setShowPixelColours(false); ic.setShowXYPosition(false); comp.add(ic);
ic.setAllowPanning(false); ic.setTransparencyGrid(false); ic.setShowPixelColours(false); ic.setShowXYPosition(false); screen.getContentPane().add(ic);
/** * Convenience function to create a VideoDisplay from a video in an existing * component. * * @param <T> * the image type of the video frames * @param video * The video * @param comp * The {@link JComponent} to draw into * @return a VideoDisplay */ public static <T extends Image<?, T>> VideoDisplay<T> createVideoDisplay(final Video<T> video, final JComponent comp) { final ImageComponent ic = new ImageComponent(); ic.setSize(video.getWidth(), video.getHeight()); ic.setPreferredSize(new Dimension(video.getWidth(), video.getHeight())); ic.setAllowZoom(false); ic.setAllowPanning(false); ic.setTransparencyGrid(false); ic.setShowPixelColours(false); ic.setShowXYPosition(false); comp.add(ic); final VideoDisplay<T> dv = new VideoDisplay<T>(video, ic); new Thread(dv).start(); return dv; }
/** * Convenience function to create a VideoDisplay from a video in an existing * component. * * @param <T> * the image type of the video frames * @param video * The video * @param comp * The {@link JComponent} to draw into * @return a VideoDisplay */ public static <T extends Image<?, T>> VideoDisplay<T> createVideoDisplay(final Video<T> video, final JComponent comp) { final ImageComponent ic = new ImageComponent(); ic.setSize(video.getWidth(), video.getHeight()); ic.setPreferredSize(new Dimension(video.getWidth(), video.getHeight())); ic.setAllowZoom(false); ic.setAllowPanning(false); ic.setTransparencyGrid(false); ic.setShowPixelColours(false); ic.setShowXYPosition(false); comp.add(ic); final VideoDisplay<T> dv = new VideoDisplay<T>(video, ic); new Thread(dv).start(); return dv; }
/** * Created the video player for the given video on the given image * component. * * @param v * The video * @param audio * The audio * @param screen * The screen to draw the video to. */ protected VideoPlayer(final Video<T> v, final AudioStream audio, final ImageComponent screen) { super(v, audio, screen); screen.setSize(v.getWidth(), v.getHeight()); screen.setPreferredSize(new Dimension(v.getWidth(), v.getHeight())); screen.setAllowZoom(false); screen.setAllowPanning(false); screen.setTransparencyGrid(false); screen.setShowPixelColours(false); screen.setShowXYPosition(false); this.component = new VideoPlayerComponent(screen); this.component.setShowButtons(false); this.addVideoDisplayStateListener(this); }
/** * Created the video player for the given video on the given image * component. * * @param v * The video * @param audio * The audio * @param screen * The screen to draw the video to. */ protected VideoPlayer(final Video<T> v, final AudioStream audio, final ImageComponent screen) { super(v, audio, screen); screen.setSize(v.getWidth(), v.getHeight()); screen.setPreferredSize(new Dimension(v.getWidth(), v.getHeight())); screen.setAllowZoom(false); screen.setAllowPanning(false); screen.setTransparencyGrid(false); screen.setShowPixelColours(false); screen.setShowXYPosition(false); this.component = new VideoPlayerComponent(screen); this.component.setShowButtons(false); this.addVideoDisplayStateListener(this); }