|
|||||||||
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.semantic_lens | +--sub_arctic.lib.tab_semantic_lens
tabbed-pannel parent
Field Summary | |
protected int |
_border
Border around all the children. |
protected boolean |
_boxed
If this variable is set, the interactor has a box around it. |
protected color_pair |
_colors
This holds the color pair in use for this object. |
protected java.util.Hashtable |
_labels
|
protected boolean |
_opaque
If this variable is set, the interactor has an opaque background. |
protected boolean |
_size_by_children
This holds our state variable about whether or not we are sized by our children. |
protected int |
_vis_child
Visible child |
protected static int |
tab_sem_draw_trav_id
unique identifier for tab_sem_draw traversals |
Fields inherited from class sub_arctic.lib.semantic_lens |
_boxed,
_clear_back,
_draw_obj,
_fixed,
_sem_draw_kind,
_title_color,
_title_font,
_title_str,
metrics,
sem_draw_trav_id |
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 | |
tab_semantic_lens()
Minimal tab_semantic_lens constructor. |
|
tab_semantic_lens(int b,
boolean box,
boolean o)
Smaller tab_semantic_lens constructor. |
|
tab_semantic_lens(int xv,
int yv,
int wv,
int hv,
int b,
boolean box,
boolean o,
boolean sbc,
color_pair cp)
Full constructor for a tab_semantic_lens. |
Method Summary | |
void |
add_child(interactor chld)
Override from base_interactor to also add constraints |
void |
add_tab(interactor chld,
java.lang.String label)
Override from base_interactor to also add constraints |
int |
border()
Return the border around all the children (in pixels). |
boolean |
boxed()
Return whether or not the interactor has a box around it. |
color_pair |
colors()
Return the current color pair. |
protected void |
draw_self_local(drawable d)
Draw the object on the provided drawable |
void |
insert_child(int at_indx,
interactor chld)
Override to also add constraints |
boolean |
opaque()
Return whether or not the interactor has an opaque background |
void |
pick(int pt_x,
int pt_y,
pick_collector pick_list)
|
boolean |
press(event evt,
java.lang.Object user_info)
|
boolean |
release(event evt,
java.lang.Object user_info)
Companion to press -- here we ignore the releases. |
interactor |
remove_child(int at_indx)
Override to also add constraints |
void |
remove_child(interactor the_child)
Override to also add constraints |
void |
set_border(int v)
Set border all around the children. |
void |
set_boxed(boolean b)
Control whether or not the interactor has a box around it. |
protected void |
set_child_constraints()
Establish or reestablish constraints on children to form a column. |
void |
set_child(int at_indx,
interactor chld)
Overridden from base_interactor to also add constraints |
void |
set_colors(color_pair cp)
Set the current color pair. |
void |
set_local_constraints()
Set the constraint for this object's width and height. |
void |
set_opaque(boolean b)
Control whether or not the interactor has an opaque background |
void |
set_size_by_children(boolean b)
Control whether or not we are sized by our children. |
void |
set_vis_child(int i)
|
protected void |
setup_for_lenses()
|
boolean |
size_by_children()
Return whether or not we are sized by our children. |
int |
vis_child()
|
Methods inherited from class sub_arctic.lib.semantic_lens |
clear_back,
drag_end,
drag_end,
drag_feedback,
drag_feedback,
drag_start,
drag_start,
draw_obj,
fixed,
get_parent,
sem_draw_kind,
set_clear_back,
set_draw_obj,
set_fixed,
set_title_color,
set_title_font,
set_title_str,
title_color,
title_font,
title_str |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.util.Hashtable _labels
protected static final int tab_sem_draw_trav_id
protected boolean _size_by_children
protected boolean _boxed
protected boolean _opaque
protected int _vis_child
protected int _border
protected color_pair _colors
Constructor Detail |
public tab_semantic_lens(int xv, int yv, int wv, int hv, int b, boolean box, boolean o, boolean sbc, color_pair cp)
int
- xv the x position of this interactor.int
- yv the y position of this interactor.int
- wv the width of this interactor.int
- hv the height of this interactor.int
- b the border around the children of this column.boolean
- box whether or not you want a box around this interactor.boolean
- o whether or not the object has an opaque background.boolean
- sbc pass true if this column's size should be controlled
by its children, false to use the size passed by
the user and/or constraints.color_pair
- cp the color pair to use if this object is opaque (if
you use null here you'll get the system's default
color pair).public tab_semantic_lens(int b, boolean box, boolean o)
int
- b the border around the children of this rowboolean
- box whether or not you want a box around this interactorboolean
- o whether or not the object is opaquepublic tab_semantic_lens()
Method Detail |
public boolean size_by_children()
public void set_size_by_children(boolean b)
boolean
- b whether to size ourselves by our childrenpublic boolean boxed()
public void set_boxed(boolean b)
boolean
- b new state of boxednesspublic boolean opaque()
public void set_opaque(boolean b)
boolean
- b new state of opaquenesspublic int vis_child()
public void set_vis_child(int i)
int
- i new visible interactorpublic int border()
public void set_border(int v)
int
- v the size of the border around the children in pixelspublic color_pair colors()
public void set_colors(color_pair cp)
color_pair
- cp the new color_pair for this interactorprotected void setup_for_lenses()
public void set_local_constraints()
protected void set_child_constraints()
protected void draw_self_local(drawable d)
drawable
- d the surface to draw onpublic void pick(int pt_x, int pt_y, pick_collector pick_list)
int
- pt_x x coordinate of picking pointint
- pt_y y coordinate of picking pointpick_collector
- pick_list result listpublic boolean press(event evt, java.lang.Object user_info)
event
- evt the press event.Object
- user_info the information associated with this object
at pick time.public boolean release(event evt, java.lang.Object user_info)
event
- evt the release event.Object
- user_info information associated with this object at
pick time.public void set_child(int at_indx, interactor chld)
int
- at_indx the index position at which to change the child.interactor
- chld the new child interactor for that position.public void add_child(interactor chld)
interactor
- chld the child interactor to addpublic void add_tab(interactor chld, java.lang.String label)
interactor
- chld the child interactor to addpublic void insert_child(int at_indx, interactor chld)
int
- at_indx the index position at which to insert the childinteractor
- chld the child interactor to insertpublic interactor remove_child(int at_indx)
int
- at_indx the index position of the child to removepublic void remove_child(interactor the_child)
interactor
- the_child the child to remove
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |