A "cloud" of words to be displayed in the lattice view.
|
|
|
|
boolean
|
|
|
|
|
|
set(DisplayWord)
|
|
|
|
collapse(self,
parent)
Collapse the cloud to its minimum size, retaining any user
corrections. |
source code
|
|
|
|
|
|
LatticeView.DisplayWord
|
find_word(self,
x,
y)
Find and return the display word in this cloud which contains
point (x,y). |
source code
|
|
|
|
|
|
|
|
|
(int, int)
|
drag_delta(self,
parent,
x,
y,
delta_x,
delta_y)
React to drag motion of (delta_x, delta_y) to point (x,y). |
source code
|
|
|
boolean
|
|
|
|
|
|
|
update_words(self)
Update the list of words to match extents. |
source code
|
|
|
|
|
|
Inherited from LatticeCloud:
__iter__,
set_beam,
set_time_extents
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|
|
pango.Context
|
context
Pango context for drawing this cloud
|
|
set(DisplayWord)
|
corrected_words
Set of user-selected words
|
|
pango.FontDescription
|
desc
Basic Pango font description for drawing this cloud
|
|
int
|
edge_resistance
"Gravity zone" around minimum extents to which we
snap.
|
|
[int, int, int, int]
|
extents
Logical extents of this cloud
|
|
set(DisplayWord)
|
hyp_words
Set of original hypothesis word objects in this cloud
|
|
(int, int, int, int)
|
max_extents
Maximum extents of this cloud
|
|
(int, int, int, int)
|
min_extents
Minimum extents of this cloud
|
|
int
|
min_font_size
Minimum font size to use, in pango.SCALE units
|
|
DisplayWord
|
saved_word
Saved word from a previous click, for use in double-click
handling
|
|
float
|
scale
Scaling factor for drawing
|
|
|
sign_x
Sign of a delta which "expands" the cloud
horizontally
|
|
|
sign_y
Sign of a delta which "expands" the cloud vertically
|
|
set(DisplayWord)
|
words
Set of word objects contained in this cloud.
|
|
Inherited from LatticeCloud:
beam,
dag,
end,
max,
min,
nodes,
start
|