Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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.WhiteboardObjectPathJabberImpl
All Implemented Interfaces:
WhiteboardObject, WhiteboardObjectPath

public class WhiteboardObjectPathJabberImpl
extends WhiteboardObjectJabberImpl
implements WhiteboardObjectPath

WhiteboardObjectPathJabberImpl

WhiteboardObjectPathJabberImpl are created through the WhiteboardSession session.

All WhiteboardObjectPathJabberImpl have whiteboard object id.

Author:
Julien Waechter

Field Summary
 
Fields inherited from interface net.java.sip.communicator.service.protocol.whiteboardobjects.WhiteboardObjectPath
NAME
 
Constructor Summary
WhiteboardObjectPathJabberImpl()
          Default WhiteboardObjectPathJabberImpl constructor.
WhiteboardObjectPathJabberImpl(String xml)
          WhiteboardObjectPathJabberImpl constructor.
 
Method Summary
 List<WhiteboardPoint> getPoints()
          Returns a list of all the WhiteboardPoint instances that this WhiteboardObject is composed of.
 void setPoints(List<WhiteboardPoint> points)
          Sets the list of WhiteboardPoint instances that this WhiteboardObject is composed of.
 String toXML()
          Returns the XML representation 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

WhiteboardObjectPathJabberImpl

public WhiteboardObjectPathJabberImpl()
Default WhiteboardObjectPathJabberImpl constructor.


WhiteboardObjectPathJabberImpl

public WhiteboardObjectPathJabberImpl(String xml)
WhiteboardObjectPathJabberImpl constructor.

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

setPoints

public void setPoints(List<WhiteboardPoint> points)
Sets the list of WhiteboardPoint instances that this WhiteboardObject is composed of.

Specified by:
setPoints in interface WhiteboardObjectPath
Parameters:
points - the list of WhiteboardPoint instances that this WhiteboardObject is composed of.

getPoints

public List<WhiteboardPoint> getPoints()
Returns a list of all the WhiteboardPoint instances that this WhiteboardObject is composed of.

Specified by:
getPoints in interface WhiteboardObjectPath
Returns:
the list of WhiteboardPoints composing this object.

toXML

public String toXML()
Returns the XML representation 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.