public class WhiteboardObjectRectJabberImpl extends WhiteboardObjectJabberImpl implements WhiteboardObjectRect
WhiteboardObjectRectJabberImpl are created through the WhiteboardSession session.
All WhiteboardObjectRectJabberImpl have whiteboard object id.
NAME
Constructor and Description |
---|
WhiteboardObjectRectJabberImpl()
Default WhiteboardObjectRectJabberImpl constructor.
|
WhiteboardObjectRectJabberImpl(java.lang.String xml)
WhiteboardObjectRectJabberImpl constructor.
|
WhiteboardObjectRectJabberImpl(java.lang.String id,
int thickness,
int color,
int backColor,
WhiteboardPoint whiteboardPoint,
double width,
double height,
boolean fill)
WhiteboardObjectRectJabberImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getBackgroundColor()
Returns an integer representing the background color of this object.
|
double |
getHeight()
Gets the height (in pixels) of the WhiteboardShapeRect.
|
WhiteboardPoint |
getWhiteboardPoint()
Returns the coordinates of this whiteboard object.
|
double |
getWidth()
Gets the width (in pixels) of the WhiteboardObject.
|
boolean |
isFill()
Returns the fill state of the WhiteboardShapeRect.
|
void |
setBackgroundColor(int backColor)
Specifies the background color for this object.
|
void |
setFill(boolean fill)
Sets the fill state of the WhiteboardShapeRect.
|
void |
setHeight(double height)
Sets the width (in pixels) of the WhiteboardShapeRect.
|
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 WhiteboardObjectRectJabberImpl()
public WhiteboardObjectRectJabberImpl(java.lang.String id, int thickness, int color, int backColor, WhiteboardPoint whiteboardPoint, double width, double height, boolean fill)
id
- String that uniquely identifies this WhiteboardObjectthickness
- number of pixels that this object (or its border)
should be thickcolor
- WhiteboardObjectRectJabberImpl's color (or rather it's border)backColor
- background color of this WhiteboardObjectRectJabberImplwhiteboardPoint
- coordinates of this object.width
- width value of this object (in pixel)height
- height value of this object (in pixel)fill
- True is filled, false is unfilledpublic WhiteboardObjectRectJabberImpl(java.lang.String xml)
xml
- the XML string object to parse.public double getHeight()
getHeight
in interface WhiteboardObjectRect
public double getWidth()
getWidth
in interface WhiteboardObjectRect
public boolean isFill()
isFill
in interface WhiteboardObjectRect
public void setFill(boolean fill)
setFill
in interface WhiteboardObjectRect
fill
- The new fill state.public WhiteboardPoint getWhiteboardPoint()
getWhiteboardPoint
in interface WhiteboardObjectRect
public void setWhiteboardPoint(WhiteboardPoint whiteboardPoint)
setWhiteboardPoint
in interface WhiteboardObjectRect
whiteboardPoint
- the coordinates of this object.public void setHeight(double height)
setHeight
in interface WhiteboardObjectRect
height
- The new height.public void setWidth(double width)
setWidth
in interface WhiteboardObjectRect
width
- The new width.public void setBackgroundColor(int backColor)
setBackgroundColor
in interface WhiteboardObjectRect
backColor
- the color that we'd like to set for the background of this
WhiteboardObject (using standard RGB encoding).public int getBackgroundColor()
getBackgroundColor
in interface WhiteboardObjectRect
public java.lang.String toXML()
toXML
in class WhiteboardObjectJabberImpl
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.