|
|||||||||
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.text.editor
This is the class that implements a what you see is what you get text editor, or at least some of it.
Field Summary | |
protected style |
_current_style
This is the style object that represents what the next character typed will have as its style. |
protected paragraph |
_paragraph
Right now we can only edit one structure. |
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 | |
editor()
Construct an editor. |
Method Summary | |
style |
current_style()
This returns the current style (style of the next object). |
void |
draw_self_local(drawable d)
This method gets called to draw the image on the screen. |
void |
force_relayout()
This gets called by either user code or the text_structures to tell us to force a relayout and to do a screen update. |
boolean |
press(event e,
java.lang.Object user_info)
This gets called when the button gets pressed. |
void |
relayout(boolean force)
This is where we make a decision about doing the work of the layout of this object. |
boolean |
release(event e,
java.lang.Object user_info)
This gets called when the button gets released. |
void |
set_current_style(style s)
Modify the current style |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected paragraph _paragraph
protected style _current_style
Constructor Detail |
public editor()
Method Detail |
public void relayout(boolean force)
boolean
- force if this is true force a relayout, otherwise
determine if we are already the requested sizepublic void draw_self_local(drawable d)
public style current_style()
public void set_current_style(style s)
style
- s the new style to usepublic boolean press(event e, java.lang.Object user_info)
public boolean release(event e, java.lang.Object user_info)
public void force_relayout()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |