Package org.omegat.gui.editor
Class ViewParagraph
java.lang.Object
javax.swing.text.View
javax.swing.text.CompositeView
javax.swing.text.BoxView
javax.swing.text.FlowView
javax.swing.text.ParagraphView
org.omegat.gui.editor.ViewParagraph
- All Implemented Interfaces:
SwingConstants,TabExpander
Custom breakspots processing required only for word wrapping issue fix: on
the editing line with wordwrap, add a new line at the beginning of the line
and write something, the word wrapping behaves in a strange way. If you paste
a long line (wrapped one), the word wrap disappears and the line gets looong.
JDK bug 6539700(http://bugs.sun.com/view_bug.do?bug_id=6539700) : JTextPane
line wrap radically different from previous versions in jre 1.5.0_10+. Fixed
in Java 7b70.
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.text.FlowView
FlowView.FlowStrategy -
Field Summary
Fields inherited from class javax.swing.text.View
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXISFields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangedUpdate(DocumentEvent e, Shape a, ViewFactory f) voidinsertUpdate(DocumentEvent e, Shape a, ViewFactory f) voidremoveUpdate(DocumentEvent e, Shape a, ViewFactory f) Methods inherited from class javax.swing.text.ParagraphView
breakView, getAlignment, getBreakWeight, getFlowSpan, getFlowStart, nextTabStop, paintMethods inherited from class javax.swing.text.FlowView
getFlowAxis, setParentMethods inherited from class javax.swing.text.BoxView
getAxis, getChildAllocation, getHeight, getMaximumSpan, getMinimumSpan, getPreferredSpan, getResizeWeight, getWidth, layoutChanged, modelToView, preferenceChanged, replace, setAxis, setSize, viewToModelMethods inherited from class javax.swing.text.CompositeView
getNextVisualPositionFrom, getView, getViewCount, getViewIndex, modelToViewMethods inherited from class javax.swing.text.View
append, breakView, createFragment, getAttributes, getBreakWeight, getContainer, getDocument, getElement, getEndOffset, getGraphics, getParent, getStartOffset, getToolTipText, getViewFactory, getViewIndex, insert, isVisible, modelToView, remove, removeAll, viewToModel
-
Constructor Details
-
ViewParagraph
-
-
Method Details
-
removeUpdate
- Overrides:
removeUpdatein classFlowView
-
insertUpdate
- Overrides:
insertUpdatein classFlowView
-
changedUpdate
- Overrides:
changedUpdatein classParagraphView
-