Public Member Functions | |
BufferedImagePanel () | |
BufferedImagePanel (BufferedImage img) | |
int | getImageHeight () |
int | getImageWidth () |
Dimension | getMinimumSize () |
Override void | paintComponent (Graphics g) |
void | setImage (BufferedImage img) |
void | setImage (BufferedImage img, int imgX, int imgY) |
void | setImageCentered (BufferedImage img) |
void | setOrigin (int x, int y) |
This software is distributed under the BSD License.
Definition at line 22 of file BufferedImagePanel.java.
BufferedImagePanel | ( | BufferedImage | img | ) |
img |
Definition at line 54 of file BufferedImagePanel.java.
References BufferedImagePanel.setImage().
int getImageHeight | ( | ) |
int getImageWidth | ( | ) |
Dimension getMinimumSize | ( | ) |
Definition at line 75 of file BufferedImagePanel.java.
Override void paintComponent | ( | Graphics | g | ) |
Definition at line 83 of file BufferedImagePanel.java.
void setImage | ( | BufferedImage | img, | |
int | imgX, | |||
int | imgY | |||
) |
img | setting this to null will not repaint the panel. This allows use to release the memory right before any new setImage calls... |
Definition at line 103 of file BufferedImagePanel.java.
References BufferedImagePanel.setOrigin().
void setImage | ( | BufferedImage | img | ) |
img |
Definition at line 94 of file BufferedImagePanel.java.
Referenced by BufferedImagePanel.BufferedImagePanel(), and BufferedImagePanel.setImageCentered().
void setImageCentered | ( | BufferedImage | img | ) |
img |
Definition at line 118 of file BufferedImagePanel.java.
References BufferedImagePanel.setImage().
void setOrigin | ( | int | x, | |
int | y | |||
) |
x | ||
y |
Definition at line 127 of file BufferedImagePanel.java.
Referenced by BufferedImagePanel.setImage().