|
Urbi SDK Remote for Java
2.7.5
|
The ImageComponent class is used to display an image. More...


Public Member Functions | |
| ImageComponent () | |
| Constructor for ImageComponent. | |
| int | getHeight () |
| Returns the height of the image. | |
| BufferedImage | getImage () |
| Returns the displayed image. | |
| Dimension | getPreferredSize () |
| Returns the largest image size. | |
| int | getWidth () |
| Returns the width of the image. | |
| void | paint (Graphics graphics) |
| Displays the image. | |
| void | setHeight (int i) |
| Sets the height of the image. | |
| void | setImage (byte[] buffer) |
| void | setImage (byte[] buffer, double x, double y) |
| Sets the image by calling the blockingLoad and makeBufferedImage methods of the ImageUtilities class and displays it. | |
| void | setImage (BufferedImage im) |
| Sets the image and displays it. | |
| void | setImage (BufferedImage im, double x, double y) |
| void | setWidth (int i) |
| Sets the width of the image. | |
| void | update (Graphics graphics) |
The ImageComponent class is used to display an image.
It subclasses JPanel to take advantage of Swing's double buffering.
Definition at line 30 of file ImageComponent.java.
| urbi.ImageComponent.ImageComponent | ( | ) |
Constructor for ImageComponent.
Calls the init method to set the background in white color.
Definition at line 50 of file ImageComponent.java.
| int urbi.ImageComponent.getHeight | ( | ) |
Returns the height of the image.
Definition at line 86 of file ImageComponent.java.
| BufferedImage urbi.ImageComponent.getImage | ( | ) |
Returns the displayed image.
Definition at line 167 of file ImageComponent.java.
Referenced by urbi.ImageSampler.addImage(), and urbi.ImageComponent.paint().
| Dimension urbi.ImageComponent.getPreferredSize | ( | ) |
Returns the largest image size.
Definition at line 203 of file ImageComponent.java.
| int urbi.ImageComponent.getWidth | ( | ) |
Returns the width of the image.
Definition at line 77 of file ImageComponent.java.
| void urbi.ImageComponent.paint | ( | Graphics | graphics | ) |
Displays the image.
Definition at line 185 of file ImageComponent.java.
References urbi.ImageComponent.getImage().
| void urbi.ImageComponent.setHeight | ( | int | i | ) |
Sets the height of the image.
Definition at line 68 of file ImageComponent.java.
Referenced by urbi.ImageSampler.addImage().
| void urbi.ImageComponent.setImage | ( | byte[] | buffer, |
| double | x, | ||
| double | y | ||
| ) |
Sets the image by calling the blockingLoad and makeBufferedImage methods of the ImageUtilities class and displays it.
| buffer | The buffer containing the binary data of the image. |
Definition at line 114 of file ImageComponent.java.
References urbi.ImageUtilities.blockingLoad(), urbi.ImageUtilities.makeBufferedImage(), urbi.ImageUtilities.setHeight(), and urbi.ImageUtilities.setWidth().
| void urbi.ImageComponent.setImage | ( | BufferedImage | im | ) |
Sets the image and displays it.
| im | The buffered image. |
Definition at line 138 of file ImageComponent.java.
| void urbi.ImageComponent.setWidth | ( | int | i | ) |
Sets the width of the image.
Definition at line 59 of file ImageComponent.java.
Referenced by urbi.ImageSampler.addImage().