|
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
net.java.sip.communicator.util.swing.FramedImageWithMenu
public class FramedImageWithMenu
A custom component, used to show images in a frame. A rollover for the content image and optional menu in dialog.
| 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 |
|---|
| Fields inherited from class net.java.sip.communicator.util.swing.FramedImage |
|---|
height, width |
| 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 | |
|---|---|
FramedImageWithMenu(JFrame mainFrame,
ImageIcon imageIcon,
int width,
int height)
Creates the component. |
|
| Method Summary | |
|---|---|
Image |
getAvatar()
Returns the current image with no rounded corners. |
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
paintComponent(Graphics g)
Paints the contained image in a frame. |
void |
popupMenuCanceled(PopupMenuEvent e)
This method is called when the popup menu is canceled |
void |
popupMenuWillBecomeInvisible(PopupMenuEvent e)
This method is called before the popup menu becomes invisible Note that a JPopupMenu can become invisible any time |
void |
popupMenuWillBecomeVisible(PopupMenuEvent e)
This method is called before the popup menu becomes visible |
void |
setImageIcon(ImageIcon imageIcon)
Sets the image to display in the frame. |
void |
setPopupMenu(JPopupMenu popupMenu)
Sets the dialog used for menu for this Image. |
| Methods inherited from class net.java.sip.communicator.util.swing.FramedImage |
|---|
getImage, loadSkin, setImageIcon, setImageIcon |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FramedImageWithMenu(JFrame mainFrame,
ImageIcon imageIcon,
int width,
int height)
mainFrame - the parent frame.imageIcon - the image icon to show as default one.width - width of component.height - height of component.| Method Detail |
|---|
public void setPopupMenu(JPopupMenu popupMenu)
popupMenu - the dialog to show as menu. Can be null if no menu
will be available.public void setImageIcon(ImageIcon imageIcon)
imageIcon - the image to display in the framepublic Image getAvatar()
public void paintComponent(Graphics g)
FramedImageJComponent.paintComponent(Graphics).
paintComponent in class FramedImagepublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void popupMenuWillBecomeVisible(PopupMenuEvent e)
popupMenuWillBecomeVisible in interface PopupMenuListenerpublic void popupMenuWillBecomeInvisible(PopupMenuEvent e)
popupMenuWillBecomeInvisible in interface PopupMenuListenerpublic void popupMenuCanceled(PopupMenuEvent e)
popupMenuCanceled in interface PopupMenuListenerpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListener
|
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 | |||||||||