sub_arctic.new_lib
Class arrow_wb_obj
java.lang.Object
|
+--sub_arctic.new_lib.whiteboard_obj
|
+--sub_arctic.new_lib.line_wb_obj
|
+--sub_arctic.new_lib.arrow_wb_obj
- public class arrow_wb_obj
- extends line_wb_obj
This class provides the implementation for an arrow- line object displayed
on a historical_whiteboard object.
Constructor Summary |
arrow_wb_obj(int xv,
int yv,
int wv,
int hv,
int own_id)
Full constructor. |
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 |
arrow_wb_obj
public arrow_wb_obj(int xv,
int yv,
int wv,
int hv,
int own_id)
- Full constructor.
- Parameters:
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 object
draw_self
public 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.
- Overrides:
- draw_self in class line_wb_obj
draw_self
public void draw_self(drawable d)
- Draw the object as it appears at present.
- Overrides:
- draw_self in class line_wb_obj
interactive_make
public whiteboard_obj interactive_make(event evt,
historical_whiteboard wb)
- Begin to make a new object like this one interactively. Interaction will
have started with the given event (which will be mouse button press) and
will be occuring within the given whiteboard object. This routine
will fill in some state from this object and some from the event. It
will then make the owning whiteboard the simple_drag focus in order to
start a drag of itself to complete the initial creation of the object.
The whiteboard will forward calls to the drag_start(), drag_feedback() and
drag_end() routines to the returned object.
- Overrides:
- interactive_make in class line_wb_obj