|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.jabber.extensions.whiteboard.WhiteboardObjectJabberImpl
public abstract class WhiteboardObjectJabberImpl
WhiteboardObjectJabberImpl
WhiteboardObjectJabberImpl are created through the WhiteboardSession session.
All WhiteboardObjectJabberImpl have whiteboard object id.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.whiteboardobjects.WhiteboardObject |
|---|
NAME |
| Constructor Summary | |
|---|---|
WhiteboardObjectJabberImpl()
Default WhiteboardObjectJabberImpl constructor |
|
WhiteboardObjectJabberImpl(String id,
int thickness,
int color)
WhiteboardObjectJabberImpl constructor |
|
| Method Summary | |
|---|---|
protected String |
colorToHex(Color color)
Converts a color to a hexa color code |
protected String |
colorToHex(int color)
Converts a int color to a hexa color code |
boolean |
equals(Object obj)
Indicates whether some other WhiteboardObject is "equal to" this one. |
protected String |
generateID()
Generate a String uniquely identifying this WhiteboardObject. |
int |
getColor()
Returns an integer representing the color of this object. |
String |
getID()
Returns a String uniquely identifying this WhiteboardObject. |
int |
getThickness()
Returns an integer indicating the thickness (represented as number of pixels) of this whiteboard object (or its border). |
void |
setColor(int color)
Sets the color of this whiteboard object (or rather it's border). |
protected void |
setID(String ID)
Sets a String uniquely identifying this WhiteboardObject. |
void |
setThickness(int thickness)
Sets the thickness (in pixels) of this whiteboard object. |
abstract String |
toXML()
Returns the XML reppresentation of the PacketExtension. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WhiteboardObjectJabberImpl()
public WhiteboardObjectJabberImpl(String id,
int thickness,
int color)
id - A String that uniquely identifies this WhiteboardObject.thickness - An integer indicating the thickness (number of pixels).color - The RGB value of the color of this object.| Method Detail |
|---|
protected String generateID()
public String getID()
getID in interface WhiteboardObjectprotected void setID(String ID)
ID - a String that uniquely identifies this WhiteboardObject.public int getThickness()
getThickness in interface WhiteboardObjectpublic boolean equals(Object obj)
equals in class Objectobj - the reference object with which to compare.
true if this object is the same as the obj
argument; false otherwise.public int getColor()
getColor in interface WhiteboardObjectpublic void setColor(int color)
setColor in interface WhiteboardObjectcolor - the color that we'd like to set on this object (using
standard RGB encoding).protected String colorToHex(int color)
color - color
protected String colorToHex(Color color)
color - color
public void setThickness(int thickness)
setThickness in interface WhiteboardObjectthickness - the number of pixels that this object (or its border)
should be thick.public abstract String toXML()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||