Class Oval
Class Oval
java.lang.Object
|
+----ObjBaseClass
|
+----Oval
- public class Oval
- extends ObjBaseClass
- implements DrawObject, Cloneable
-
baseColors
-
-
color
-
-
height
-
-
id
-
-
obj_id
-
-
old_height
-
-
old_width
-
-
type
-
-
width
-
-
x1
-
-
y1
-
-
Oval(SketchArea)
-
-
Oval(SketchArea, int)
-
-
assemble(int)
- assembles the Oval object's parameters based on application-specific
format before calling superclass's BaseClassAssemble for assembling
this resulting packet with the RTP header.
-
clean(Graphics)
-
-
clear(Graphics)
-
-
clone()
- clones a oval object by making an exact copy of this oval object
with values equal to the original values, except that the starting
and ending points of the newly cloned oval are translated by a value of
TRANSLATE_X and TRANSLATE_Y defined in the ObjBaseClass.java.
-
draw(int, int, int, int, int, int)
-
-
erase(Graphics, boolean)
-
-
getObjID()
-
-
getType()
-
-
mouseDown(int, int)
-
-
mouseDrag(int, int)
-
-
mouseUp(int, int)
-
-
moveUP(Graphics, int, int)
-
-
moving(Graphics, int, int)
-
-
paint(Graphics)
-
-
processInData(byte[])
- retrieves Oval object's parameters from the received packet and
display the oval on the drawing canvas of the whiteboard.
-
send()
- Sends this oval object across the multicast network
x1
public int x1
y1
public int y1
width
public int width
height
public int height
old_width
public int old_width
old_height
public int old_height
type
public int type
id
public int id
color
public int color
baseColors
public Color baseColors[]
obj_id
public int obj_id
Oval
public Oval(SketchArea parent)
Oval
public Oval(SketchArea parent,
int c)
clone
public Object clone()
- clones a oval object by making an exact copy of this oval object
with values equal to the original values, except that the starting
and ending points of the newly cloned oval are translated by a value of
TRANSLATE_X and TRANSLATE_Y defined in the ObjBaseClass.java.
- Returns:
- a cloned object.
- Overrides:
- clone in class Object
mouseDown
public boolean mouseDown(int x,
int y)
mouseUp
public boolean mouseUp(int x,
int y)
send
public void send()
- Sends this oval object across the multicast network
mouseDrag
public boolean mouseDrag(int x,
int y)
clear
public void clear(Graphics g)
moving
public void moving(Graphics g,
int x,
int y)
moveUP
public void moveUP(Graphics g,
int x,
int y)
clean
public void clean(Graphics g)
erase
public void erase(Graphics g,
boolean send_del_req)
paint
public void paint(Graphics g)
assemble
public void assemble(int ObjectType)
- assembles the Oval object's parameters based on application-specific
format before calling superclass's BaseClassAssemble for assembling
this resulting packet with the RTP header. This function is called
by mouseUp Event.
- Returns:
- void
processInData
public void processInData(byte buf[])
- retrieves Oval object's parameters from the received packet and
display the oval on the drawing canvas of the whiteboard.
- Parameters:
- buf - buffer that holds parameters in the form of byte array.
- Returns:
- void
getType
public int getType()
getObjID
public int getObjID()
draw
public void draw(int xx1,
int yy1,
int xx2,
int yy2,
int col,
int obj_id_recvd)