|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--edu.virginia.cs.mng.hypercast.demo.Entry
Entry class. Each entry contains the information of a piece of drawing/operation. The operation may be KILL, MOVE, COPY, NAMEANNOUNCE, NAMEREPLY, DROP, NEWPAGE. The drawing type may be BRUSH, TEXT, LINE, RECT, ROUNDRECT, OVAL, POLY. All types have some common attirbutes, such as entryID, typeID, personID. Each type has specific information. For a drawing type, these including page number, coordinates, color, boundary region, pen size, line width, etc. Some methods are also defined to operate the entry.
| Field Summary | |
(package private) boolean |
backclear
Whether to clear the foreground/background. |
(package private) java.awt.Color |
backcolor
Color. |
(package private) boolean |
boundscalc
|
(package private) int |
boundsx1
The upper-left and lower-right coordinates of the region this entry occupied. |
(package private) int |
boundsx2
The upper-left and lower-right coordinates of the region this entry occupied. |
(package private) int |
boundsy1
The upper-left and lower-right coordinates of the region this entry occupied. |
(package private) int |
boundsy2
The upper-left and lower-right coordinates of the region this entry occupied. |
(package private) static int |
COPY
|
(package private) boolean |
done
Whether this entry is finished drawing. |
(package private) static int |
DROP
|
(package private) int |
entryid
Entry ID. |
(package private) boolean |
foreclear
Whether to clear the foreground/background. |
(package private) java.awt.Color |
forecolor
Color. |
(package private) static int |
KILL
|
(package private) java.lang.String |
label
A string with various purpose according the entry type. |
(package private) static int |
MOVE
|
(package private) static int |
NAMEANNOUNCE
|
(package private) static int |
NAMEREPLY
|
(package private) static int |
NEWPAGE
|
(package private) WBFrame |
parent
The WBFrame object associated with. |
(package private) char |
pchar
|
(package private) int |
penwidth
|
(package private) int |
personid
Person ID, indicating who draw/operate on this entry. |
(package private) java.awt.Image |
pic
|
(package private) int |
streamid
Page number, indicating this operation/drawing is performed on which page. |
(package private) static java.lang.String[] |
sType
|
(package private) int |
textsize
|
(package private) boolean |
trace
|
(package private) int |
typeid
type of this entry. |
(package private) java.util.Vector |
xs
Coordinates of this piece of drawing. |
(package private) java.util.Vector |
ys
Coordinates of this piece of drawing. |
| Constructor Summary | |
Entry(Entry e)
Copy constructor. |
|
Entry(WBFrame pa,
int tid,
int pid,
int sid,
int eid,
java.util.Vector x,
java.util.Vector y,
java.awt.Color f,
java.awt.Color b,
boolean fc,
boolean bc,
int pw,
int ts,
java.lang.String l,
char p,
boolean d,
boolean t,
java.awt.Image pi)
Constructor. |
|
Entry(WBFrame p,
java.util.Vector x,
java.util.Vector y,
boolean d,
boolean t)
Constructor. |
|
| Method Summary | |
void |
dump()
For debugging purpose. |
byte[] |
toByteArray()
To convert the contents of this entry to a byte array. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
static int KILL
static int MOVE
static int COPY
static int NAMEANNOUNCE
static int NAMEREPLY
static int DROP
static int NEWPAGE
static java.lang.String[] sType
WBFrame parent
int typeid
int personid
int streamid
int entryid
java.util.Vector xs
java.util.Vector ys
java.awt.Color forecolor
java.awt.Color backcolor
boolean foreclear
boolean backclear
int boundsx1
int boundsx2
int boundsy1
int boundsy2
boolean boundscalc
boolean done
boolean trace
java.lang.String label
char pchar
java.awt.Image pic
int penwidth
int textsize
| Constructor Detail |
public Entry(WBFrame p,
java.util.Vector x,
java.util.Vector y,
boolean d,
boolean t)
p - the associated WBFrame object.x,y - the vectors which store the coordinates of this entry.d - whether this entry is finished.t - whether this entry is in tracing.public Entry(Entry e)
e - an Entry object to be copied.
public Entry(WBFrame pa,
int tid,
int pid,
int sid,
int eid,
java.util.Vector x,
java.util.Vector y,
java.awt.Color f,
java.awt.Color b,
boolean fc,
boolean bc,
int pw,
int ts,
java.lang.String l,
char p,
boolean d,
boolean t,
java.awt.Image pi)
| Method Detail |
public byte[] toByteArray()
public void dump()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||