blob: bdf68fe9ab5eb08131c7302e7898a467f0fa9026 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.service.protocol.whiteboardobjects;
import net.java.sip.communicator.service.protocol.*;
/**
* Used to access the content of instant whiteboard objects that are sent or
* received via the WhiteboardOperationSet.
*
* @author Julien Waechter
*/
public interface WhiteboardObjectEllipse extends WhiteboardObject
{
/**
* A type string constant indicating that an object is of type ellipse.
*/
public static final String NAME = "WHITEBOARDOBJECTELLIPSE";
/**
* Returns the coordinates of this whiteboard object.
*
* @return the coordinates of this object.
*/
public WhiteboardPoint getWhiteboardPoint ();
/**
* Sets the coordinates of this whiteboard object.
*
* @param whiteboardPoint the coordinates of this object.
*/
public void setWhiteboardPoint (WhiteboardPoint whiteboardPoint);
/**
* Returns the width radius (in pixels) of this whiteboard ellipse.
*
* @return the number of pixels for the width radius.
*/
public double getRadiusX ();
/**
* Returns the height radius (in pixels) of this whiteboard ellipse.
*
* @return the number of pixels for the height radius.
*/
public double getRadiusY ();
/**
* Sets the width radius (in pixels) of this whiteboard ellipse.
*
* @param radiusX the number of pixels for the width radius.
*/
public void setRadiusX (double radiusX);
/**
* Sets the height radius (in pixels) of this whiteboard ellipse.
*
* @param radiusY the number of pixels for the height radius.
*/
public void setRadiusY (double radiusY);
/**
* Returns the fill state of the WhiteboardObject.
*
* @return True is filled, false is unfilled.
*/
public boolean isFill ();
/**
* Sets the fill state of the WhiteboardObject.
* True is filled, false is unfilled.
*
* @param fill The new fill state.
*/
public void setFill (boolean fill);
/**
* Specifies the background color for this object. The color parameter
* must be encoded with standard RGB encoding: bits 24-31 are alpha, 16-23
* are red, 8-15 are green, 0-7 are blue.
*
* @param color the color that we'd like to set for the background of this
* <tt>WhiteboardObject</tt> (using standard RGB encoding).
*/
public void setBackgroundColor (int color);
/**
* Returns an integer representing the background color of this object. The
* return value uses standard RGB encoding: bits 24-31 are alpha, 16-23 are
* red, 8-15 are green, 0-7 are blue.
*
* @return the RGB value of the background color of this object.
*/
public int getBackgroundColor ();
}
|