Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.presence.avatar
Class AvatarStackManager

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.presence.avatar.AvatarStackManager

public class AvatarStackManager
extends Object

Take cares of storing(deleting, moving) images with the given indexes.


Constructor Summary
AvatarStackManager()
           
 
Method Summary
static void deleteImage(int index)
          Deletes the stored image.
static BufferedImage loadImage(int index)
          Load the image at the defined index from user directory
static void popFirstImage(int nbImages)
          Removes the oldest image and as its with lower index.
static void storeImage(BufferedImage image, int index)
          Stores an image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvatarStackManager

public AvatarStackManager()
Method Detail

loadImage

public static BufferedImage loadImage(int index)
Load the image at the defined index from user directory

Parameters:
index - the image index
Returns:
the image

popFirstImage

public static void popFirstImage(int nbImages)
Removes the oldest image and as its with lower index. Moves all indexes. Ant this way we free one index.

Parameters:
nbImages -

storeImage

public static void storeImage(BufferedImage image,
                              int index)
Stores an image.

Parameters:
image - the image
index - of the image.

deleteImage

public static void deleteImage(int index)
Deletes the stored image.

Parameters:
index - of the image to delete.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.