Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.whiteboard
Class WhiteboardObjectImageJabberImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.extensions.whiteboard.WhiteboardObjectJabberImpl
      extended by net.java.sip.communicator.impl.protocol.jabber.extensions.whiteboard.WhiteboardObjectImageJabberImpl
All Implemented Interfaces:
WhiteboardObject, WhiteboardObjectImage

public class WhiteboardObjectImageJabberImpl
extends WhiteboardObjectJabberImpl
implements WhiteboardObjectImage

WhiteboardObjectImageJabberImpl

WhiteboardObjectImageJabberImpl are created through the WhiteboardSession session.

All WhiteboardObjectImageJabberImpl have whiteboard object id.

Author:
Julien Waechter

Field Summary
 
Fields inherited from interface net.java.sip.communicator.service.protocol.whiteboardobjects.WhiteboardObjectImage
NAME
 
Constructor Summary
WhiteboardObjectImageJabberImpl()
          Default WhiteboardObjectImageJabberImpl constructor.
WhiteboardObjectImageJabberImpl(String xml)
          WhiteboardObjectImageJabberImpl constructor.
 
Method Summary
 byte[] getBackgroundImage()
          Returns a binary array containing the image that should be displayed as the background of this WhiteboardObject.
 double getHeight()
          Returns the height (in pixels) of the WhiteboardObject.
 WhiteboardPoint getWhiteboardPoint()
          Returns the coordinates of this whiteboard object.
 double getWidth()
          Returns the width (in pixels) of the WhiteboardObject.
 void setBackgroundImage(byte[] background)
          Specifies an image that should be displayed as the background of this object.
 void setHeight(double height)
          Sets the width (in pixels) of the WhiteboardObject.
 void setWhiteboardPoint(WhiteboardPoint whiteboardPoint)
          Sets the coordinates of this whiteboard object.
 void setWidth(double width)
          Sets the width (in pixels) of the WhiteboardObject.
 String toXML()
          Returns the XML reppresentation of the PacketExtension.
 
Methods inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.whiteboard.WhiteboardObjectJabberImpl
colorToHex, colorToHex, equals, generateID, getColor, getID, getThickness, setColor, setID, setThickness
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.java.sip.communicator.service.protocol.whiteboardobjects.WhiteboardObject
getColor, getID, getThickness, setColor, setThickness
 

Constructor Detail

WhiteboardObjectImageJabberImpl

public WhiteboardObjectImageJabberImpl()
Default WhiteboardObjectImageJabberImpl constructor.


WhiteboardObjectImageJabberImpl

public WhiteboardObjectImageJabberImpl(String xml)
WhiteboardObjectImageJabberImpl constructor.

Parameters:
xml - the XML string object to parse.
Method Detail

getHeight

public double getHeight()
Returns the height (in pixels) of the WhiteboardObject.

Specified by:
getHeight in interface WhiteboardObjectImage
Returns:
The height.

getWidth

public double getWidth()
Returns the width (in pixels) of the WhiteboardObject.

Specified by:
getWidth in interface WhiteboardObjectImage
Returns:
The width.

getWhiteboardPoint

public WhiteboardPoint getWhiteboardPoint()
Returns the coordinates of this whiteboard object.

Specified by:
getWhiteboardPoint in interface WhiteboardObjectImage
Returns:
the coordinates of this object.

setWhiteboardPoint

public void setWhiteboardPoint(WhiteboardPoint whiteboardPoint)
Sets the coordinates of this whiteboard object.

Specified by:
setWhiteboardPoint in interface WhiteboardObjectImage
Parameters:
whiteboardPoint - the coordinates of this object.

setHeight

public void setHeight(double height)
Sets the width (in pixels) of the WhiteboardObject.

Specified by:
setHeight in interface WhiteboardObjectImage
Parameters:
height - The new height.

setWidth

public void setWidth(double width)
Sets the width (in pixels) of the WhiteboardObject.

Specified by:
setWidth in interface WhiteboardObjectImage
Parameters:
width - The new width.

setBackgroundImage

public void setBackgroundImage(byte[] background)
Specifies an image that should be displayed as the background of this object.

Specified by:
setBackgroundImage in interface WhiteboardObjectImage
Parameters:
background - a binary array containing the image that should be displayed as the object background.

getBackgroundImage

public byte[] getBackgroundImage()
Returns a binary array containing the image that should be displayed as the background of this WhiteboardObject.

Specified by:
getBackgroundImage in interface WhiteboardObjectImage
Returns:
a binary array containing the image that should be displayed as the object background.

toXML

public String toXML()
Returns the XML reppresentation of the PacketExtension.

Specified by:
toXML in class WhiteboardObjectJabberImpl
Returns:
the packet extension as XML.
To do:
Implement this org.jivesoftware.smack.packet.PacketExtension method

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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