|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.new_lib.whiteboard_obj | +--sub_arctic.new_lib.text_wb_obj
This class provides the implementation for a text object displayed on a historical_whiteboard object.
Field Summary | |
protected java.lang.String |
_text
Text value to be displayed |
static int |
close
Distance that is close enough to the edge to be a pick |
protected static java.awt.Font |
draw_font
|
protected static java.awt.FontMetrics |
draw_metrics
|
protected static int |
font_h
|
protected int |
x_off
x offset of grab point during move-drag |
protected int |
y_off
y offset of grab point during move-drag |
Fields inherited from class sub_arctic.new_lib.whiteboard_obj |
_end_time,
_h,
_mod_id,
_owner_id,
_start_time,
_state_history,
_w,
_x,
_y |
Constructor Summary | |
text_wb_obj(int xv,
int yv,
int wv,
int hv,
int own_id,
java.lang.String txt)
Full constructor. |
Method Summary | |
boolean |
drag_end(event evt,
int x,
int y,
int start_x,
int start_y,
int grab_x,
int grab_y,
java.lang.Object user_info)
Dispatch input corresponding to the end of a drag. |
boolean |
drag_end(event evt,
java.lang.Object user_info)
Dispatch event corresponding to the end of a simple drag. |
boolean |
drag_feedback(event evt,
int x,
int y,
int start_x,
int start_y,
int grab_x,
int grab_y,
java.lang.Object user_info)
Dispatch a movement during a drag. |
boolean |
drag_feedback(event evt,
java.lang.Object user_info)
Dispatch a movement event during a simple drag. |
boolean |
drag_start(event evt,
int x,
int y,
int grab_x,
int grab_y,
java.lang.Object user_info)
Dispatch the start of a drag to the object. |
boolean |
drag_start(event evt,
java.lang.Object user_info)
Dispatch the start event of a simple drag. |
void |
draw_self(drawable d)
Draw the object as it appears at present. |
void |
draw_self(drawable d,
long at_time,
boolean sel_by_own,
java.awt.Color[] map)
Draw the object as it would appear at the given time. |
whiteboard_obj |
interactive_make(event evt,
historical_whiteboard wb)
Begin to make a new object like this one interactively. |
boolean |
pick(int xpt,
int ypt)
Indicate whether the given point should pick this object |
protected void |
resize_by_text()
Resize the object based on the current text |
void |
set_text(java.lang.String txt)
Set the text value to be displayed |
protected wb_obj_state |
snapshot()
Build a record of the object's current state |
java.lang.String |
text()
Text value to be displayed |
boolean |
was_alive(long at_time)
Indicate whether the given object would have been alive at the given time. |
Methods inherited from class sub_arctic.new_lib.whiteboard_obj |
end_time,
h,
make_state_record,
mod_id,
owner_id,
set_end_time,
set_h,
set_mod_id,
set_owner_id,
set_w,
set_x,
set_y,
start_time,
state_at,
update_current_state,
w,
x,
y |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.lang.String _text
protected static java.awt.Font draw_font
protected static java.awt.FontMetrics draw_metrics
protected static int font_h
public static final int close
protected int x_off
protected int y_off
Constructor Detail |
public text_wb_obj(int xv, int yv, int wv, int hv, int own_id, java.lang.String txt)
int
- xv x position of this objectint
- yv y position of this objectint
- wv w position of this objectint
- hv h position of this objectint
- own_id id value for owner of this objectMethod Detail |
public java.lang.String text()
public void set_text(java.lang.String txt)
protected void resize_by_text()
protected wb_obj_state snapshot()
public boolean pick(int xpt, int ypt)
int
- xpt x coordinate of query pointint
- ypt y coordinate of query pointpublic boolean was_alive(long at_time)
long
- at_time the time in questionpublic void draw_self(drawable d, long at_time, boolean sel_by_own, java.awt.Color[] map)
public void draw_self(drawable d)
public whiteboard_obj interactive_make(event evt, historical_whiteboard wb)
public boolean drag_start(event evt, java.lang.Object user_info)
event
- evt the event "causing" the start of the drag
(normally a mouse button press).Object
- user_info the uninterpreted user info that was associated
with this object when it became the drag focus.public boolean drag_feedback(event evt, java.lang.Object user_info)
event
- evt the event "causing" the the drag (normally a
mouse move).Object
- user_info the uninterpreted user info that was associated
with this object when it became the drag focus.public boolean drag_end(event evt, java.lang.Object user_info)
event
- evt the event "causing" the end of the drag (normally
a mouse button release).Object
- user_info the uninterpreted user info that was associated
with this object when it became the drag focus.public boolean drag_start(event evt, int x, int y, int grab_x, int grab_y, java.lang.Object user_info)
event
- evt The event which "caused" the drag.int
- x x position where object should be placed at start
of drag (in parent's coordinates).int
- y y position where object should be placed at start
of drag (in parent's coordinates).int
- grab_x x position where drag started (in local coords).int
- grab_y y position where drag started (in local coords).Object
- user_info uninterpreted information provided when the object
was made the move-drag focus.public boolean drag_feedback(event evt, int x, int y, int start_x, int start_y, int grab_x, int grab_y, java.lang.Object user_info)
event
- evt The event which "caused" the drag.int
- x x position where object should be placed at start
of drag (in parent's coordinates).int
- y y position where object should be placed at start
of drag (in parent's coordinates).int
- start_x x position where drag started (in parent's coords).int
- start_y y position where drag started (in parent's coords).int
- grab_x x position where drag started (in local coords).int
- grab_y y position where drag started (in local coords).Object
- user_info uninterpreted information provided when the object
was made the move-drag focus.public boolean drag_end(event evt, int x, int y, int start_x, int start_y, int grab_x, int grab_y, java.lang.Object user_info)
event
- evt The event which "caused" the drag.int
- x x position where object should be placed at start
of drag (in parent's coordinates).int
- y y position where object should be placed at start
of drag (in parent's coordinates).int
- start_x x position where drag started (in parent's coords).int
- start_y y position where drag started (in parent's coords).int
- grab_x x position where drag started (in local coords).int
- grab_y y position where drag started (in local coords).Object
- user_info uninterpreted information provided when the object
was made the move-drag focus.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |