|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.lib.min_interactor | +--sub_arctic.lib.base_interactor | +--sub_arctic.lib.base_parent_interactor | +--sub_arctic.lib.top_level
This class is the top interactor of a sub_arctic interface. top_level interactors are hosted in AWT components like interactor_frame, interactor_applet, and interactor_canvas. top_levels should not have constraints placed on their width, height or position, at least not once they have been hosted into an AWT component. The width and height of a top_level are controlled by its containing component.
Field Summary | |
protected java.awt.Component |
_awt_parent
|
protected java.awt.Rectangle |
_damage_area
This holds the area of damage to this interactors display |
protected drawable |
_offscreen_graphics
The drawing context for putting graphics on the backing store |
protected java.awt.Image |
_offscreen_image
Our backing store (offscreen copy of the image of the interface) |
protected java.awt.Dimension |
_offscreen_size
This is the size of the backing store. |
Fields inherited from class sub_arctic.lib.base_interactor |
_child_index,
_child_list,
_clip_bounds,
_constraint_flags,
_enabled_constraint,
_flags,
_h,
_h_constraint,
_parent,
_part_a_constraint,
_part_b_constraint,
_user_data,
_visible_constraint,
_w,
_w_constraint,
_x,
_x_constraint,
_y,
_y_constraint,
default_child_hint |
Constructor Summary | |
top_level()
Construct a top level and give it default values for x,y, width and height. |
|
top_level(int x_v,
int y_v,
int w_v,
int h_v)
Construct a top_level object with know x,y, width and height. |
Method Summary | |
java.awt.Component |
awt_parent()
Return the AWT component which hosts this interactor. |
void |
configure()
Configure the subtree after it has been damaged, but before it is redrawn. |
protected void |
damage_fixed()
Clear the dirty bit for this object (object is not damaged) |
void |
damage_self(interactor originator,
java.lang.Object user_info,
java.awt.Point top_left,
java.awt.Dimension sz)
Set the dirty bits and accumulate a damage rectangle of the size at the given point. |
void |
draw_self(drawable parent_d)
Draw the image of this interactor (and its children) on the supplied drawable. |
void |
set_awt_parent(java.awt.Component par)
Set the component that this this interactor is hosted in. |
protected void |
setup_offscreen(drawable screen_d)
Create the offscreen storage used for the backing store. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.awt.Component _awt_parent
protected java.awt.Image _offscreen_image
protected drawable _offscreen_graphics
protected java.awt.Dimension _offscreen_size
protected java.awt.Rectangle _damage_area
Constructor Detail |
public top_level(int x_v, int y_v, int w_v, int h_v)
int
- x_v the x coordinate of this interactor (should be zero
unless you want this interactor to not cover all of its
hosting AWT parent).int
- y_v the y coordinate of this interactor (should be zero
unless you want this interactor to not cover all of its
hosting AWT parent).int
- w_v the width of this top_level (this is also tied to the size
of the AWT component).int
- h_v the height of this top_level (this is also tied to the size
of the AWT component).public top_level()
Method Detail |
public void set_awt_parent(java.awt.Component par)
Component
- par the hosting component.public java.awt.Component awt_parent()
protected void setup_offscreen(drawable screen_d)
drawable
- screen_d the drawable corresponding to the screenpublic void draw_self(drawable parent_d)
drawable
- parent_d the drawable to render the image onpublic void configure()
protected void damage_fixed()
public void damage_self(interactor originator, java.lang.Object user_info, java.awt.Point top_left, java.awt.Dimension sz)
interactor
- originator the interactor that caused the damage.Object
- user_info uninterpreted information supplied by
the originator at damage time.Point
- top_left top-left corner of child's damage area
(in our coordinate system).Dimension
- sz size of the damage area.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |