|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
net.java.sip.communicator.util.swing.FramedImage
public class FramedImage
A custom component, used to show images in a frame.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected int |
height
The default height of the image. |
protected int |
width
The default width of the image. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
FramedImage(ImageIcon imageIcon,
int width,
int height)
Creates a FramedImage by specifying the width and the height of the label. |
|
FramedImage(int width,
int height)
Creates a FramedImage by specifying the width and the height of the frame. |
|
| Method Summary | |
|---|---|
Image |
getImage()
Returns the image that is shown. |
void |
loadSkin()
Loads the framed image. |
void |
paintComponent(Graphics g)
Paints the contained image in a frame. |
void |
setImageIcon(byte[] image)
Sets the image to display in the frame. |
void |
setImageIcon(Image image)
Sets the image to display in the frame. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final int width
protected final int height
| Constructor Detail |
|---|
public FramedImage(ImageIcon imageIcon,
int width,
int height)
imageIcon - the icon to show within the framewidth - the width of the frameheight - the height of the frame
public FramedImage(int width,
int height)
width - the width of the frameheight - the height of the frame| Method Detail |
|---|
public void setImageIcon(byte[] image)
image - the image to display in the framepublic void setImageIcon(Image image)
image - the image to display in the framepublic Image getImage()
public void paintComponent(Graphics g)
JComponent.paintComponent(Graphics).
paintComponent in class JComponentpublic void loadSkin()
loadSkin in interface Skinnable
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||