/* */
/* */ private native void removeMovie(int paramInt);
/* */
/* */ public int createNSView()
/* */ {
/* 128 */ QDRect localQDRect = new QDRect(0, 0, 1, 1);
/* 129 */ Object localObject = null;
/* 130 */ if (this.movie != null) {
/* */ try {
/* 132 */ if (this.controller != null)
/* */ try {
/* 134 */ localQDRect = this.controller.getBounds();
/* 135 */ if (debug) System.err.println("createNSView controller " + this.controller + "bounds " + localQDRect);
/* */ }
/* */ catch (QTException localQTException) { }
/* */
/* 138 */ else localQDRect = this.movie.getBounds();
/* */
/* 140 */ setInitialWidthAndHeight(localQDRect, getMinimumSize(), getMaximumSize()); } catch (StdQTException localStdQTException1) {
/* */ }
/* 142 */ return this.qtjavaView = createNSViewNative(localQDRect.getWidthF(), localQDRect.getHeightF(), new Integer(QTObject.ID(this.movie)), this.controller != null ? new Integer(QTObject.ID(this.controller)) : null);
/* */ }
/* */
/* 145 */ if (this.image != null) {
/* */ try {
/* 147 */ localQDRect = this.image.getBoundsRect();
/* 148 */ setInitialWidthAndHeight(localQDRect, getMinimumSize(), getMaximumSize()); } catch (StdQTException localStdQTException2) {
/* */ }
/* 150 */ return this.qtjavaView = createImageNSViewNative(localQDRect.getWidth(), localQDRect.getHeight(), new Integer(QTObject.ID(this.image)));
/* */ }
/* 152 */ if (this.sgChannel != null) {
/* */ try {
/* 154 */ if ((this.sgChannel instanceof SGVideoChannel))
/* 155 */ localQDRect = this.sgChannel.getBounds();
/* 156 */ setInitialWidthAndHeight(localQDRect, getMinimumSize(), getMaximumSize());
/* 157 */ if (debug) System.err.println("***createNSView sgChannel " + this.sgChannel + ", " + localQDRect);
/* */ } catch (StdQTException localStdQTException3) { }
/* */
/* 159 */ return this.qtjavaView = createSequenceGrabberNSView(localQDRect.getWidth(), localQDRect.getHeight(), new Integer(QTObject.ID(this.sgChannel.getSequenceGrabber())));
/* */ }
/* 161 */ return 0;
/* */ }