Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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.WhiteboardObjectTextJabberImpl
All Implemented Interfaces:
WhiteboardObject, WhiteboardObjectText

public class WhiteboardObjectTextJabberImpl
extends WhiteboardObjectJabberImpl
implements WhiteboardObjectText

WhiteboardObjectTextJabberImpl

WhiteboardObjectTextJabberImpl are created through the WhiteboardSession session.

All WhiteboardObjectTextJabberImpl have whiteboard object id.

Author:
Julien Waechter

Field Summary
 
Fields inherited from interface net.java.sip.communicator.service.protocol.whiteboardobjects.WhiteboardObjectText
NAME
 
Constructor Summary
WhiteboardObjectTextJabberImpl()
          Default WhiteboardObjectTextJabberImpl constructor.
WhiteboardObjectTextJabberImpl(String xml)
          WhiteboardObjectTextJabberImpl constructor.
 
Method Summary
 String getFontName()
          Returns the WhiteboardObjectTextJabberImpl's font name.
 int getFontSize()
          Returns the WhiteboardObjectTextJabberImpl's font size.
 String getText()
          Returns the WhiteboardObjectTextJabberImpl's text.
 WhiteboardPoint getWhiteboardPoint()
          Returns the coordinates of this whiteboard object.
 void setFontName(String fontName)
          Sets the WhiteboardObjectTextJabberImpl's font name.
 void setFontSize(int fontSize)
          Sets the WhiteboardObjectTextJabberImpl's font size.
 void setText(String text)
          Sets the WhiteboardObjectTextJabberImpl's text.
 void setWhiteboardPoint(WhiteboardPoint whiteboardPoint)
          Sets the coordinates of this whiteboard object.
 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

WhiteboardObjectTextJabberImpl

public WhiteboardObjectTextJabberImpl()
Default WhiteboardObjectTextJabberImpl constructor.


WhiteboardObjectTextJabberImpl

public WhiteboardObjectTextJabberImpl(String xml)
WhiteboardObjectTextJabberImpl constructor.

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

getWhiteboardPoint

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

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

setWhiteboardPoint

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

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

getText

public String getText()
Returns the WhiteboardObjectTextJabberImpl's text.

Specified by:
getText in interface WhiteboardObjectText
Returns:
the WhiteboardObjectTextJabberImpl's text.

setText

public void setText(String text)
Sets the WhiteboardObjectTextJabberImpl's text.

Specified by:
setText in interface WhiteboardObjectText
Parameters:
text - the new WhiteboardObjectTextJabberImpl's text.

getFontSize

public int getFontSize()
Returns the WhiteboardObjectTextJabberImpl's font size.

Specified by:
getFontSize in interface WhiteboardObjectText
Returns:
the WhiteboardObjectTextJabberImpl's font size.

setFontSize

public void setFontSize(int fontSize)
Sets the WhiteboardObjectTextJabberImpl's font size.

Specified by:
setFontSize in interface WhiteboardObjectText
Parameters:
fontSize - the new WhiteboardObjectTextJabberImpl's font size.

getFontName

public String getFontName()
Returns the WhiteboardObjectTextJabberImpl's font name. (By default Dialog)

Specified by:
getFontName in interface WhiteboardObjectText
Returns:
the new WhiteboardObjectTextJabberImpl's font name.

setFontName

public void setFontName(String fontName)
Sets the WhiteboardObjectTextJabberImpl's font name.

Specified by:
setFontName in interface WhiteboardObjectText
Parameters:
fontName - the new WhiteboardObjectTextJabberImpl's font name.

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.