|
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.Objectnet.java.sip.communicator.impl.protocol.sip.ProtocolIconSipImpl
public class ProtocolIconSipImpl
Represents the Sip protocol icon. Implements the ProtocolIcon interface in order to provide an sip icon image in two different sizes.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.ProtocolIcon |
|---|
ICON_SIZE_16x16, ICON_SIZE_32x32, ICON_SIZE_48x48, ICON_SIZE_64x64 |
| Constructor Summary | |
|---|---|
ProtocolIconSipImpl(String iconPath)
Creates an instance of this class by passing to it the path, where all protocol icons are placed. |
|
| Method Summary | |
|---|---|
byte[] |
getConnectingIcon()
Returns the icon image used to represent the protocol connecting state. |
byte[] |
getIcon(String iconSize)
Returns the icon image in the given size. |
String |
getIconPath(String iconSize)
Returns a path to the icon with the given size. |
Iterator<String> |
getSupportedSizes()
Implements the ProtocolIcon.getSupportedSizes() method. |
boolean |
isSizeSupported(String iconSize)
Returns true if an icon with the given size is supported,
false - otherwise. |
static byte[] |
loadIcon(String imagePath)
Loads an image from a given image path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProtocolIconSipImpl(String iconPath)
iconPath - the protocol icon path| Method Detail |
|---|
public Iterator<String> getSupportedSizes()
getSupportedSizes in interface ProtocolIconpublic boolean isSizeSupported(String iconSize)
true if an icon with the given size is supported,
false - otherwise.
isSizeSupported in interface ProtocolIconiconSize - 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(String iconSize)
getIcon in interface ProtocolIconiconSize - the size of the icon we're looking for. One of
ICON_SIZE_XXX constants.
public String getIconPath(String iconSize)
getIconPath in interface ProtocolIconiconSize - the size of the icon we're looking for
public byte[] getConnectingIcon()
getConnectingIcon in interface ProtocolIconpublic static byte[] loadIcon(String imagePath)
imagePath - The identifier of the image.
|
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 | |||||||||