Package org.omegat.gui.properties
Class ForcedWrappingEditorKit
java.lang.Object
javax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
javax.swing.text.StyledEditorKit
org.omegat.gui.properties.ForcedWrappingEditorKit
- All Implemented Interfaces:
Serializable,Cloneable
JTextPanes won't break words when wrapping, so very long words can result in horizontal scrolling. This
EditorKit is a big, complicated way of overriding GlyphView.getMinimumSpan(int) to return 0 for the X-axis,
allowing long words to be broken.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.text.StyledEditorKit
StyledEditorKit.AlignmentAction, StyledEditorKit.BoldAction, StyledEditorKit.FontFamilyAction, StyledEditorKit.FontSizeAction, StyledEditorKit.ForegroundAction, StyledEditorKit.ItalicAction, StyledEditorKit.StyledTextAction, StyledEditorKit.UnderlineActionNested classes/interfaces inherited from class javax.swing.text.DefaultEditorKit
DefaultEditorKit.BeepAction, DefaultEditorKit.CopyAction, DefaultEditorKit.CutAction, DefaultEditorKit.DefaultKeyTypedAction, DefaultEditorKit.InsertBreakAction, DefaultEditorKit.InsertContentAction, DefaultEditorKit.InsertTabAction, DefaultEditorKit.PasteAction -
Field Summary
Fields inherited from class javax.swing.text.DefaultEditorKit
backwardAction, beepAction, beginAction, beginLineAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deleteNextWordAction, deletePrevCharAction, deletePrevWordAction, downAction, endAction, endLineAction, EndOfLineStringProperty, endParagraphAction, endWordAction, forwardAction, insertBreakAction, insertContentAction, insertTabAction, nextWordAction, pageDownAction, pageUpAction, pasteAction, previousWordAction, readOnlyAction, selectAllAction, selectionBackwardAction, selectionBeginAction, selectionBeginLineAction, selectionBeginParagraphAction, selectionBeginWordAction, selectionDownAction, selectionEndAction, selectionEndLineAction, selectionEndParagraphAction, selectionEndWordAction, selectionForwardAction, selectionNextWordAction, selectionPreviousWordAction, selectionUpAction, selectLineAction, selectParagraphAction, selectWordAction, upAction, writableAction -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.swing.text.StyledEditorKit
clone, createDefaultDocument, deinstall, getActions, getCharacterAttributeRun, getInputAttributes, installMethods inherited from class javax.swing.text.DefaultEditorKit
createCaret, getContentType, read, read, write, write
-
Constructor Details
-
ForcedWrappingEditorKit
public ForcedWrappingEditorKit()
-
-
Method Details
-
getViewFactory
- Overrides:
getViewFactoryin classStyledEditorKit
-