public class WhiteboardObjectImageJabberImpl extends WhiteboardObjectJabberImpl implements WhiteboardObjectImage
WhiteboardObjectImageJabberImpl are created through the WhiteboardSession session.
All WhiteboardObjectImageJabberImpl have whiteboard object id.
NAME
Constructor and Description |
---|
WhiteboardObjectImageJabberImpl()
Default WhiteboardObjectImageJabberImpl constructor.
|
WhiteboardObjectImageJabberImpl(java.lang.String xml)
WhiteboardObjectImageJabberImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
toXML()
Returns the XML reppresentation of the PacketExtension.
|
colorToHex, colorToHex, equals, generateID, getColor, getID, getThickness, setColor, setID, setThickness
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getColor, getID, getThickness, setColor, setThickness
public WhiteboardObjectImageJabberImpl()
public WhiteboardObjectImageJabberImpl(java.lang.String xml)
xml
- the XML string object to parse.public double getHeight()
getHeight
in interface WhiteboardObjectImage
public double getWidth()
getWidth
in interface WhiteboardObjectImage
public WhiteboardPoint getWhiteboardPoint()
getWhiteboardPoint
in interface WhiteboardObjectImage
public void setWhiteboardPoint(WhiteboardPoint whiteboardPoint)
setWhiteboardPoint
in interface WhiteboardObjectImage
whiteboardPoint
- the coordinates of this object.public void setHeight(double height)
setHeight
in interface WhiteboardObjectImage
height
- The new height.public void setWidth(double width)
setWidth
in interface WhiteboardObjectImage
width
- The new width.public void setBackgroundImage(byte[] background)
setBackgroundImage
in interface WhiteboardObjectImage
background
- a binary array containing the image that should be
displayed as the object background.public byte[] getBackgroundImage()
getBackgroundImage
in interface WhiteboardObjectImage
public java.lang.String toXML()
toXML
in class WhiteboardObjectJabberImpl
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.