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.


Fields inherited from class sub_arctic.new_lib.line_wb_obj
pick_dist2, x_off, y_off
 
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
arrow_wb_obj(int xv, int yv, int wv, int hv, int own_id)
          Full constructor.
 
Method Summary
 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.
 
Methods inherited from class sub_arctic.new_lib.line_wb_obj
drag_end, drag_end, drag_feedback, drag_feedback, drag_start, drag_start, pick, snapshot, was_alive
 
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
 

Constructor Detail

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 object
int - yv y position of this object
int - wv w position of this object
int - hv h position of this object
int - own_id id value for owner of this object
Method Detail

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