public class ProtocolIconSipImpl extends java.lang.Object implements ProtocolIcon
ICON_SIZE_16x16, ICON_SIZE_32x32, ICON_SIZE_48x48, ICON_SIZE_64x64
Constructor and Description |
---|
ProtocolIconSipImpl(java.lang.String iconPath)
Creates an instance of this class by passing to it the path, where all
protocol icons are placed.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getConnectingIcon()
Returns the icon image used to represent the protocol connecting state.
|
byte[] |
getIcon(java.lang.String iconSize)
Returns the icon image in the given size.
|
java.lang.String |
getIconPath(java.lang.String iconSize)
Returns a path to the icon with the given size.
|
java.util.Iterator<java.lang.String> |
getSupportedSizes()
Implements the ProtocolIcon.getSupportedSizes() method.
|
boolean |
isSizeSupported(java.lang.String iconSize)
Returns
true if an icon with the given size is supported,
false - otherwise. |
static byte[] |
loadIcon(java.lang.String imagePath)
Loads an image from a given image path.
|
public ProtocolIconSipImpl(java.lang.String iconPath)
iconPath
- the protocol icon pathpublic java.util.Iterator<java.lang.String> getSupportedSizes()
getSupportedSizes
in interface ProtocolIcon
public boolean isSizeSupported(java.lang.String iconSize)
true
if an icon with the given size is supported,
false
- otherwise.isSizeSupported
in interface ProtocolIcon
iconSize
- the size of the icon to search for. One of ICON_SIZE_XXX
constants.true
if an icon with the given size is supported,
false
- otherwise.public byte[] getIcon(java.lang.String iconSize)
getIcon
in interface ProtocolIcon
iconSize
- the size of the icon we're looking for. One of
ICON_SIZE_XXX constants.public java.lang.String getIconPath(java.lang.String iconSize)
getIconPath
in interface ProtocolIcon
iconSize
- the size of the icon we're looking forpublic byte[] getConnectingIcon()
getConnectingIcon
in interface ProtocolIcon
public static byte[] loadIcon(java.lang.String imagePath)
imagePath
- The identifier of the image.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.