|
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 | |||||||||
public interface ProtocolIcon
The ProtocolIcon interface is meant to be implemented by protocol implementations in order to export their icon. The Protocolicon could support different sizes: 16x16, 32x32, etc. The ICON_SIZE_XXX constats are meant to be used to specify the size of the icon, in order to enable other bundles to obtain the exact image they need.
| Field Summary | |
|---|---|
static String |
ICON_SIZE_16x16
Defines a 16x16 icon size. |
static String |
ICON_SIZE_32x32
Defines a 32x32 icon size. |
static String |
ICON_SIZE_48x48
Defines a 48x48 icon size. |
static String |
ICON_SIZE_64x64
logo Defines a 64x64 icon size. |
| Method Summary | |
|---|---|
byte[] |
getConnectingIcon()
Returns the icon that should be used when the protocol provider is in a connecting state. |
byte[] |
getIcon(String iconSize)
Returns the protocol icon image in the desired size. |
String |
getIconPath(String iconSize)
Returns a path to the icon with the given size. |
Iterator<String> |
getSupportedSizes()
Returns an iterator over a set, containing different predefined icon sizes. |
boolean |
isSizeSupported(String iconSize)
Checks if the given icon size is supported by the current protocol implementation. |
| Field Detail |
|---|
static final String ICON_SIZE_16x16
static final String ICON_SIZE_32x32
static final String ICON_SIZE_48x48
static final String ICON_SIZE_64x64
| Method Detail |
|---|
Iterator<String> getSupportedSizes()
boolean isSizeSupported(String iconSize)
iconSize - the size of the protocol icon; one of the ICON_SIZE_XXX
constants
byte[] getIcon(String iconSize)
iconSize - the size of the protocol icon; one of the ICON_SIZE_XXX
constants
String getIconPath(String iconSize)
iconSize - the size of the icon we're looking for
byte[] getConnectingIcon()
|
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 | |||||||||