com.sun.j3d.exp.swing
Class JCanvas3D.ResizeSwingRunnable

java.lang.Object
  extended by com.sun.j3d.exp.swing.JCanvas3D.ResizeSwingRunnable
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
JCanvas3D

static class JCanvas3D.ResizeSwingRunnable
extends java.lang.Object
implements java.lang.Runnable

This Runnable is the class used when the canvas has to be resized.


Field Summary
(package private)  JCanvas3D canvas
          The component that is displaying the canvas
(package private)  int height
          latest height that was requested
(package private)  int width
          latest width that was requested
 
Constructor Summary
private JCanvas3D.ResizeSwingRunnable()
          Creates a new ResizeSwingRunnable object.
  JCanvas3D.ResizeSwingRunnable(JCanvas3D canvas, int width, int height)
          Creates a new ResizeSwingRunnable object.
 
Method Summary
 void run()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

canvas

JCanvas3D canvas
The component that is displaying the canvas


height

int height
latest height that was requested


width

int width
latest width that was requested

Constructor Detail

JCanvas3D.ResizeSwingRunnable

private JCanvas3D.ResizeSwingRunnable()
Creates a new ResizeSwingRunnable object.


JCanvas3D.ResizeSwingRunnable

public JCanvas3D.ResizeSwingRunnable(JCanvas3D canvas,
                                     int width,
                                     int height)
Creates a new ResizeSwingRunnable object.

Parameters:
canvas - the canvas to check
width - the width that is requested
height - the height that is requested
Method Detail

run

public void run()

Specified by:
run in interface java.lang.Runnable


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.