|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.text.JTextComponent | +--javax.swing.JTextArea | +--Translation
Top-level class in the data structure; keeps track of all information pertaining to a particular sentence pair. Instance variables are public for easy access.
Cairo
, Serialized FormInner classes inherited from class javax.swing.JTextArea |
javax.swing.JTextArea.AccessibleJTextArea |
Inner classes inherited from class javax.swing.text.JTextComponent |
javax.swing.text.JTextComponent.AccessibleJTextComponent,
javax.swing.text.JTextComponent.KeyBinding |
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Field Summary | |
int |
axis
The current display axis; should always be either BoxLayout.X_AXIS or BoxLayout.Y_AXIS. |
java.lang.String |
encoding
The character encoding of the current file; null if
the default encoding is used. |
Sentence |
human
Sentence objects for the translation. |
LanguageModel |
lm
The LanguageModel object. |
Cairo |
master
The Cairo object which displays this translation. |
NullWord |
NULL_WORD
There is only ever one Null word |
Sentence |
source
Sentence objects for the translation. |
Sentence |
target
Sentence objects for the translation. |
Web |
web
The Web object. |
Fields inherited from class javax.swing.text.JTextComponent |
DEFAULT_KEYMAP,
FOCUS_ACCELERATOR_KEY |
Fields inherited from class javax.swing.JComponent |
accessibleContext,
listenerList,
TOOL_TIP_TEXT_KEY,
ui,
UNDEFINED_CONDITION,
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,
WHEN_FOCUSED,
WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
Translation(Cairo c,
int axis)
Creates a Translation object with the given axis and
the given Cairo . |
Method Summary | |
void |
clear()
Clears all information relating to this sentence pair and resets all members. |
void |
finish()
Called when all data has been read; finishes initialization of the Sentences and Web. |
void |
readHeader(java.io.StreamTokenizer st)
Reads in a header from an alignment file. |
void |
setAxis(int newAxis)
Notifies members of the new axis, and updates the axis
member. |
void |
setStreamVisible(int s,
boolean vis)
Updates sentences to reflect the visibility of the given stream. |
Methods inherited from class javax.swing.JTextArea |
append,
createDefaultModel,
getAccessibleContext,
getColumns,
getColumnWidth,
getLineCount,
getLineEndOffset,
getLineOfOffset,
getLineStartOffset,
getLineWrap,
getPreferredScrollableViewportSize,
getPreferredSize,
getRowHeight,
getRows,
getScrollableTracksViewportWidth,
getScrollableUnitIncrement,
getTabSize,
getUIClassID,
getWrapStyleWord,
insert,
isManagingFocus,
paramString,
processComponentKeyEvent,
replaceRange,
setColumns,
setFont,
setLineWrap,
setRows,
setTabSize,
setWrapStyleWord |
Methods inherited from class javax.swing.text.JTextComponent |
addCaretListener,
addKeymap,
copy,
cut,
fireCaretUpdate,
getActions,
getCaret,
getCaretColor,
getCaretPosition,
getDisabledTextColor,
getDocument,
getFocusAccelerator,
getHighlighter,
getInputMethodRequests,
getKeymap,
getKeymap,
getMargin,
getScrollableBlockIncrement,
getScrollableTracksViewportHeight,
getSelectedText,
getSelectedTextColor,
getSelectionColor,
getSelectionEnd,
getSelectionStart,
getText,
getText,
getUI,
isEditable,
isFocusTraversable,
isOpaque,
loadKeymap,
modelToView,
moveCaretPosition,
paste,
processInputMethodEvent,
read,
removeCaretListener,
removeKeymap,
removeNotify,
replaceSelection,
select,
selectAll,
setCaret,
setCaretColor,
setCaretPosition,
setDisabledTextColor,
setDocument,
setEditable,
setEnabled,
setFocusAccelerator,
setHighlighter,
setKeymap,
setMargin,
setOpaque,
setSelectedTextColor,
setSelectionColor,
setSelectionEnd,
setSelectionStart,
setText,
setUI,
updateUI,
viewToModel,
write |
Methods inherited from class javax.swing.JComponent |
addAncestorListener,
addNotify,
addPropertyChangeListener,
addVetoableChangeListener,
computeVisibleRect,
contains,
createToolTip,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
fireVetoableChange,
getActionForKeyStroke,
getAlignmentX,
getAlignmentY,
getAutoscrolls,
getBorder,
getBounds,
getClientProperty,
getComponentGraphics,
getConditionForKeyStroke,
getDebugGraphicsOptions,
getGraphics,
getHeight,
getInsets,
getInsets,
getLocation,
getMaximumSize,
getMinimumSize,
getNextFocusableComponent,
getRegisteredKeyStrokes,
getRootPane,
getSize,
getToolTipLocation,
getToolTipText,
getToolTipText,
getTopLevelAncestor,
getVisibleRect,
getWidth,
getX,
getY,
grabFocus,
hasFocus,
isDoubleBuffered,
isFocusCycleRoot,
isLightweightComponent,
isOptimizedDrawingEnabled,
isPaintingTile,
isRequestFocusEnabled,
isValidateRoot,
paint,
paintBorder,
paintChildren,
paintComponent,
paintImmediately,
paintImmediately,
processFocusEvent,
processKeyEvent,
processMouseMotionEvent,
putClientProperty,
registerKeyboardAction,
registerKeyboardAction,
removeAncestorListener,
removePropertyChangeListener,
removeVetoableChangeListener,
repaint,
repaint,
requestDefaultFocus,
requestFocus,
resetKeyboardActions,
reshape,
revalidate,
scrollRectToVisible,
setAlignmentX,
setAlignmentY,
setAutoscrolls,
setBackground,
setBorder,
setDebugGraphicsOptions,
setDoubleBuffered,
setForeground,
setMaximumSize,
setMinimumSize,
setNextFocusableComponent,
setPreferredSize,
setRequestFocusEnabled,
setToolTipText,
setUI,
setVisible,
unregisterKeyboardAction,
update |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setLayout,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
getBackground,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getInputContext,
getLocale,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getToolkit,
getTreeLock,
gotFocus,
handleEvent,
hide,
imageUpdate,
inside,
isDisplayable,
isEnabled,
isLightweight,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processMouseEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
resize,
resize,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
show,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public final NullWord NULL_WORD
public Cairo master
public Sentence source
public Sentence target
public Sentence human
public Web web
public LanguageModel lm
public int axis
public java.lang.String encoding
null
if
the default encoding is used.Constructor Detail |
public Translation(Cairo c, int axis)
Translation
object with the given axis and
the given Cairo
. Initializes all of its members.Method Detail |
public void finish()
Sentence.finish()
,
Web.finish()
public void setAxis(int newAxis)
axis
member.Web.setAxis(int)
public void setStreamVisible(int s, boolean vis)
Sentence.setStreamVisible(int, boolean)
public void clear()
LanguageModel.clear()
,
Sentence.clear()
,
Web.clear()
public void readHeader(java.io.StreamTokenizer st) throws FormatException
AlnLoader
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |