Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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.WhiteboardObjectLineJabberImpl
All Implemented Interfaces:
WhiteboardObject, WhiteboardObjectLine

public class WhiteboardObjectLineJabberImpl
extends WhiteboardObjectJabberImpl
implements WhiteboardObjectLine

WhiteboardObjectLineJabberImpl

WhiteboardObjectLineJabberImpl are created through the WhiteboardSession session.

All WhiteboardObjectLineJabberImpl have whiteboard object id.

Author:
Julien Waechter

Field Summary
 
Fields inherited from interface net.java.sip.communicator.service.protocol.whiteboardobjects.WhiteboardObjectLine
NAME
 
Constructor Summary
WhiteboardObjectLineJabberImpl()
          Default WhiteboardObjectLineJabberImpl constructor.
WhiteboardObjectLineJabberImpl(String xml)
          WhiteboardObjectLineJabberImpl constructor.
 
Method Summary
 WhiteboardPoint getWhiteboardPointEnd()
          Returns the coordinates of end point for the line
 WhiteboardPoint getWhiteboardPointStart()
          Returns the coordinates of start point for the line
 void setWhiteboardPointEnd(WhiteboardPoint whiteboardPointEnd)
          Sets the coordinates of end point for the line
 void setWhiteboardPointStart(WhiteboardPoint whiteboardPointStart)
          Sets the coordinates of start point for the line
 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

WhiteboardObjectLineJabberImpl

public WhiteboardObjectLineJabberImpl()
Default WhiteboardObjectLineJabberImpl constructor.


WhiteboardObjectLineJabberImpl

public WhiteboardObjectLineJabberImpl(String xml)
WhiteboardObjectLineJabberImpl constructor.

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

getWhiteboardPointStart

public WhiteboardPoint getWhiteboardPointStart()
Returns the coordinates of start point for the line

Specified by:
getWhiteboardPointStart in interface WhiteboardObjectLine
Returns:
the start coordinates of this line.

getWhiteboardPointEnd

public WhiteboardPoint getWhiteboardPointEnd()
Returns the coordinates of end point for the line

Specified by:
getWhiteboardPointEnd in interface WhiteboardObjectLine
Returns:
the end coordinates of this line.

setWhiteboardPointStart

public void setWhiteboardPointStart(WhiteboardPoint whiteboardPointStart)
Sets the coordinates of start point for the line

Specified by:
setWhiteboardPointStart in interface WhiteboardObjectLine
Parameters:
whiteboardPointStart - the new start coordinates for this line.

setWhiteboardPointEnd

public void setWhiteboardPointEnd(WhiteboardPoint whiteboardPointEnd)
Sets the coordinates of end point for the line

Specified by:
setWhiteboardPointEnd in interface WhiteboardObjectLine
Parameters:
whiteboardPointEnd - the new end coordinates for this line.

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.