public class WhiteboardObjectPolygonJabberImpl extends WhiteboardObjectJabberImpl implements WhiteboardObjectPolygon
WhiteboardObjectPolygonJabberImpl are created through the WhiteboardSession session.
All WhiteboardObjectPolygonJabberImpl have whiteboard object id.
NAME
Constructor and Description |
---|
WhiteboardObjectPolygonJabberImpl()
Default WhiteboardObjectPolygonJabberImpl constructor.
|
WhiteboardObjectPolygonJabberImpl(java.lang.String xml)
WhiteboardObjectPolygonJabberImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getBackgroundColor()
Returns an integer representing the background color of this object.
|
java.util.List<WhiteboardPoint> |
getPoints()
Returns a list of all the WhiteboardPoint instances that this
WhiteboardObject is composed of.
|
boolean |
isFill()
Returns the fill state of the WhiteboardObject.
|
void |
setBackgroundColor(int backColor)
Specifies the background color for this object.
|
void |
setFill(boolean fill)
Sets the fill state of the WhiteboardObject.
|
void |
setPoints(java.util.List<WhiteboardPoint> points)
Sets the list of WhiteboardPoint instances that this
WhiteboardObject is composed of.
|
java.lang.String |
toXML()
Returns the XML representation 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 WhiteboardObjectPolygonJabberImpl()
public WhiteboardObjectPolygonJabberImpl(java.lang.String xml)
xml
- the XML string object to parse.public void setPoints(java.util.List<WhiteboardPoint> points)
setPoints
in interface WhiteboardObjectPolygon
points
- the list of WhiteboardPoint instances that this
WhiteboardObject is composed of.public java.util.List<WhiteboardPoint> getPoints()
getPoints
in interface WhiteboardObjectPolygon
public boolean isFill()
isFill
in interface WhiteboardObjectPolygon
public void setFill(boolean fill)
setFill
in interface WhiteboardObjectPolygon
fill
- The new fill state.public void setBackgroundColor(int backColor)
setBackgroundColor
in interface WhiteboardObjectPolygon
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 WhiteboardObjectPolygon
public java.lang.String toXML()
toXML
in class WhiteboardObjectJabberImpl
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.