Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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.WhiteboardObjectPolyLineJabberImpl
All Implemented Interfaces:
WhiteboardObject, WhiteboardObjectPolyLine

public class WhiteboardObjectPolyLineJabberImpl
extends WhiteboardObjectJabberImpl
implements WhiteboardObjectPolyLine

WhiteboardObjectPolyLineJabberImpl

WhiteboardObjectPolyLineJabberImpl are created through the WhiteboardSession session.

All WhiteboardObjectPolyLineJabberImpl have whiteboard object id.

Author:
Julien Waechter

Field Summary
 
Fields inherited from interface net.java.sip.communicator.service.protocol.whiteboardobjects.WhiteboardObjectPolyLine
NAME
 
Constructor Summary
WhiteboardObjectPolyLineJabberImpl()
          Default WhiteboardObjectPolyLineJabberImpl constructor.
WhiteboardObjectPolyLineJabberImpl(String xml)
          WhiteboardObjectPolyLineJabberImpl 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 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

WhiteboardObjectPolyLineJabberImpl

public WhiteboardObjectPolyLineJabberImpl()
Default WhiteboardObjectPolyLineJabberImpl constructor.


WhiteboardObjectPolyLineJabberImpl

public WhiteboardObjectPolyLineJabberImpl(String xml)
WhiteboardObjectPolyLineJabberImpl 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 WhiteboardObjectPolyLine
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 WhiteboardObjectPolyLine
Returns:
the list of WhiteboardPoints composing this object.

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.