Lines Matching refs:frame

62      * Returns the native frame's Object value.
64 * If the frame's base-type is not TYPE_OBJECT, this returns a data buffer containing the native
66 * If the frame is based on an object type, this type is expected to be a subclass of
67 * NativeBuffer. The NativeBuffer returned is only valid for as long as the frame is alive. If
72 // If this is not a structured frame, return our data
80 throw new RuntimeException("Attempting to get object data from frame that does " +
101 throw new RuntimeException("Could not get the native structured data for frame!");
104 // Attach this frame to it
118 throw new RuntimeException("Could not set int values for native frame!");
135 throw new RuntimeException("Could not set int values for native frame!");
145 // we should allow specifying both? (May be difficult for other frame types).
155 throw new RuntimeException("Data size in setData does not match native frame size: " +
159 throw new RuntimeException("Could not set native frame data!");
173 throw new RuntimeException("Attempting to set Bitmap for non 2-dimensional native frame!");
176 throw new RuntimeException("Bitmap dimensions do not match native frame dimensions!");
182 throw new RuntimeException("Could not set native frame bitmap data!");
190 throw new RuntimeException("Attempting to get Bitmap for non 2-dimensional native frame!");
198 throw new RuntimeException("Could not get bitmap data from native frame!");
204 public void setDataFromFrame(Frame frame) {
205 // Make sure frame fits
206 if (getFormat().getSize() < frame.getFormat().getSize()) {
208 "Attempting to assign frame of size " + frame.getFormat().getSize() + " to " +
209 "smaller native frame of size " + getFormat().getSize() + "!");
213 if (frame instanceof NativeFrame) {
214 nativeCopyFromNative((NativeFrame)frame);
215 } else if (frame instanceof GLFrame) {
216 nativeCopyFromGL((GLFrame)frame);
217 } else if (frame instanceof SimpleFrame) {
218 setObjectValue(frame.getObjectValue());
220 super.setDataFromFrame(frame);
262 private native boolean nativeCopyFromNative(NativeFrame frame);
264 private native boolean nativeCopyFromGL(GLFrame frame);