| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| TestImage | back to summary |
|---|---|
| public TestImage(byte[] data, int w, int h, int scanlineStride) | |
| TestImage | back to summary |
|---|---|
| public TestImage(BufferedImage bufferedImage) | |
| main | back to summary |
|---|---|
| public static void main(String[] args) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv Image | |
| pack-priv Dimension | |
| private int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Insets | Returns: Insets the Insets of the ComponentOverrides javax. Get the Insets fo the Component |
| public Dimension | getMinimumSize()
Overrides javax. Gets the minimum Size of the Component |
| public Dimension | getPreferredSize()
Overrides javax. Gets the preffered Size of the Component |
| public int | |
| protected void | paintComponent(Graphics
java.awt.Graphics g)Overrides javax. Paints the component |
| public void | |
| public void |
| imgHeight | back to summary |
|---|---|
| pack-priv int imgHeight | |
| imgWidth | back to summary |
|---|---|
| pack-priv int imgWidth | |
| myImage | back to summary |
|---|---|
| pack-priv Image myImage | |
| prefSize | back to summary |
|---|---|
| pack-priv Dimension prefSize Hides java. | |
| scale | back to summary |
|---|---|
| private int scale | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ImageComponent | back to summary |
|---|---|
| protected ImageComponent() Constructor for ImageComponent. | |
| ImageComponent | back to summary |
|---|---|
| public ImageComponent(Image image) Constructor for ImageComponent. | |
| getInsets | back to summary |
|---|---|
| public Insets getInsets() Overrides javax. Get the Insets fo the Component
| |
| getMinimumSize | back to summary |
|---|---|
| public Dimension getMinimumSize() Overrides javax. Gets the minimum Size of the Component
| |
| getPreferredSize | back to summary |
|---|---|
| public Dimension getPreferredSize() Overrides javax. Gets the preffered Size of the Component
| |
| getScale | back to summary |
|---|---|
| public int getScale() | |
| paintComponent | back to summary |
|---|---|
| protected void paintComponent(Graphics g) Overrides javax. Paints the component
| |
| setImage | back to summary |
|---|---|
| public void setImage(Image image) Sets an image to be shown
| |
| setScale | back to summary |
|---|---|
| public void setScale(int scale) | |