|
|||||||||
| 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.column
|
+--sub_arctic.lib.text_flow
This class takes a string and breaks it into lines which "fit" into the text column's width based on embedded HTML (subset) formatting. This object provides no input behavior.
| Field Summary | |
protected java.lang.String |
_font_name
This variable holds the string for the base font name. |
protected int |
_font_size
This is where we hold the basic font size for this text flow. |
protected java.awt.Frame |
_frame
The AWT Frame that contains this html_element, if any. |
protected java.lang.String |
_text
The text of this object |
protected int |
minimum_layout_size
This is the minimum size that this object can be before we bother to try to do a layout. |
| Fields inherited from class sub_arctic.lib.column |
_border,
_boxed,
_colors,
_interchild_space,
_layout_type,
_opaque,
_size_by_children,
CENTER_JUSTIFIED,
LEFT_JUSTIFIED,
RIGHT_JUSTIFIED |
| 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 | |
text_flow(java.lang.String v,
int w)
Create a new text flow with a given string. |
|
text_flow(java.lang.String v,
int w,
java.awt.Frame frame)
Create a new text flow with a given string. |
|
text_flow(java.lang.String v,
int w,
int h)
Create a new text flow with a given string. |
|
text_flow(java.lang.String v,
int w,
int h,
java.awt.Frame frame)
Create a new text flow with a given string. |
|
| Method Summary | |
protected void |
do_layout()
Do the layout procedure. |
java.lang.String |
font_name()
Retrieve the current base font name |
int |
font_size()
Retrieve the basic font size for this text flow. |
java.awt.Frame |
frame()
|
void |
set_font_name(java.lang.String fn)
Set the current base font name. |
void |
set_font_size(int n)
Set the font size of this text flow. |
void |
set_raw_w(int n)
We override the set_raw_w so we can catch changes to the width and do a re-layout. |
void |
set_text(java.lang.String t)
Set the text in this object. |
java.lang.String |
text()
Get the text of this object. |
| Methods inherited from class sub_arctic.lib.column |
add_child,
border,
boxed,
colors,
draw_self_local,
insert_child,
interchild_space,
layout_type,
opaque,
remove_child,
remove_child,
set_border,
set_boxed,
set_child_constraints,
set_child,
set_colors,
set_interchild_space,
set_layout_type,
set_local_constraints,
set_opaque,
set_size_by_children,
size_by_children |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected java.awt.Frame _frame
protected java.lang.String _text
protected int minimum_layout_size
protected java.lang.String _font_name
protected int _font_size
| Constructor Detail |
public text_flow(java.lang.String v,
int w,
int h)
String - v the string to put in this text flow.int - w width of the interactor.int - h height of the interactor.
public text_flow(java.lang.String v,
int w,
int h,
java.awt.Frame frame)
String - v the string to put in this text flow.int - w width of the interactor.int - h height of the interactor.Frame - f the frame which contains this interactor.
public text_flow(java.lang.String v,
int w)
String - v the string to put in this text flow.int - w width of the interactor.
public text_flow(java.lang.String v,
int w,
java.awt.Frame frame)
String - v the string to put in this text flow.int - w width of the interactor.| Method Detail |
public java.awt.Frame frame()
public java.lang.String text()
public void set_text(java.lang.String t)
String - t the new text of this objectprotected void do_layout()
public java.lang.String font_name()
public void set_font_name(java.lang.String fn)
public void set_raw_w(int n)
int - n the new widthpublic int font_size()
public void set_font_size(int n)
int - n new basic font size for this flow (in points)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||