WrappedPlainView (Java Platform SE 8 ) (original) (raw)
- javax.swing.text.View
- javax.swing.text.CompositeView
- javax.swing.text.BoxView
* * javax.swing.text.WrappedPlainView
- javax.swing.text.BoxView
- javax.swing.text.CompositeView
All Implemented Interfaces:
SwingConstants, TabExpander
public class WrappedPlainView
extends BoxView
implements TabExpander
View of plain text (text with only one font and color) that does line-wrapping. This view expects that its associated element has child elements that represent the lines it should be wrapping. It is implemented as a vertical box that contains logical line views. The logical line views are nested classes that render the logical line as multiple physical line if the logical line is too wide to fit within the allocation. The line views draw upon the outer class for its state to reduce their memory requirements.
The line views do all of their rendering through thedrawLine
method which in turn does all of its rendering through the drawSelectedText
and drawUnselectedText
methods. This enables subclasses to easily specialize the rendering without concern for the layout aspects.
See Also:
View
Field Summary
* ### Fields inherited from class javax.swing.text.[View](../../../javax/swing/text/View.html "class in javax.swing.text") `[BadBreakWeight](../../../javax/swing/text/View.html#BadBreakWeight), [ExcellentBreakWeight](../../../javax/swing/text/View.html#ExcellentBreakWeight), [ForcedBreakWeight](../../../javax/swing/text/View.html#ForcedBreakWeight), [GoodBreakWeight](../../../javax/swing/text/View.html#GoodBreakWeight), [X_AXIS](../../../javax/swing/text/View.html#X%5FAXIS), [Y_AXIS](../../../javax/swing/text/View.html#Y%5FAXIS)` * ### Fields inherited from interface javax.swing.[SwingConstants](../../../javax/swing/SwingConstants.html "interface in javax.swing") `[BOTTOM](../../../javax/swing/SwingConstants.html#BOTTOM), [CENTER](../../../javax/swing/SwingConstants.html#CENTER), [EAST](../../../javax/swing/SwingConstants.html#EAST), [HORIZONTAL](../../../javax/swing/SwingConstants.html#HORIZONTAL), [LEADING](../../../javax/swing/SwingConstants.html#LEADING), [LEFT](../../../javax/swing/SwingConstants.html#LEFT), [NEXT](../../../javax/swing/SwingConstants.html#NEXT), [NORTH](../../../javax/swing/SwingConstants.html#NORTH), [NORTH_EAST](../../../javax/swing/SwingConstants.html#NORTH%5FEAST), [NORTH_WEST](../../../javax/swing/SwingConstants.html#NORTH%5FWEST), [PREVIOUS](../../../javax/swing/SwingConstants.html#PREVIOUS), [RIGHT](../../../javax/swing/SwingConstants.html#RIGHT), [SOUTH](../../../javax/swing/SwingConstants.html#SOUTH), [SOUTH_EAST](../../../javax/swing/SwingConstants.html#SOUTH%5FEAST), [SOUTH_WEST](../../../javax/swing/SwingConstants.html#SOUTH%5FWEST), [TOP](../../../javax/swing/SwingConstants.html#TOP), [TRAILING](../../../javax/swing/SwingConstants.html#TRAILING), [VERTICAL](../../../javax/swing/SwingConstants.html#VERTICAL), [WEST](../../../javax/swing/SwingConstants.html#WEST)`
Constructor Summary
Constructors
Constructor Description WrappedPlainView(Element elem) Creates a new WrappedPlainView. WrappedPlainView(Element elem, boolean wordWrap) Creates a new WrappedPlainView. Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type Method Description protected int calculateBreakPosition(int p0, int p1) This is called by the nested wrapped line views to determine the break location. void changedUpdate(DocumentEvent e,Shape a,ViewFactory f) Gives notification from the document that attributes were changed in a location that this view is responsible for. protected void drawLine(int p0, int p1,Graphics g, int x, int y) Renders a line of text, suppressing whitespace at the end and expanding any tabs. protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1) Renders the given range in the model as selected text. protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) Renders the given range in the model as normal unselected text. protected Segment getLineBuffer() Gives access to a buffer that can be used to fetch text from the associated document. float getMaximumSpan(int axis) Determines the maximum span for this view along an axis. float getMinimumSpan(int axis) Determines the minimum span for this view along an axis. float getPreferredSpan(int axis) Determines the preferred span for this view along an axis. protected int getTabSize() Returns the tab size set for the document, defaulting to 8. void insertUpdate(DocumentEvent e,Shape a,ViewFactory f) Gives notification that something was inserted into the document in a location that this view is responsible for. protected void loadChildren(ViewFactory f) Loads all of the children to initialize the view. float nextTabStop(float x, int tabOffset) Returns the next tab stop position after a given reference position. void paint(Graphics g,Shape a) Renders using the given rendering surface and area on that surface. void removeUpdate(DocumentEvent e,Shape a,ViewFactory f) Gives notification that something was removed from the document in a location that this view is responsible for. void setSize(float width, float height) Sets the size of the view. * ### Methods inherited from class javax.swing.text.[BoxView](../../../javax/swing/text/BoxView.html "class in javax.swing.text") `[baselineLayout](../../../javax/swing/text/BoxView.html#baselineLayout-int-int-int:A-int:A-), [baselineRequirements](../../../javax/swing/text/BoxView.html#baselineRequirements-int-javax.swing.SizeRequirements-), [calculateMajorAxisRequirements](../../../javax/swing/text/BoxView.html#calculateMajorAxisRequirements-int-javax.swing.SizeRequirements-), [calculateMinorAxisRequirements](../../../javax/swing/text/BoxView.html#calculateMinorAxisRequirements-int-javax.swing.SizeRequirements-), [childAllocation](../../../javax/swing/text/BoxView.html#childAllocation-int-java.awt.Rectangle-), [flipEastAndWestAtEnds](../../../javax/swing/text/BoxView.html#flipEastAndWestAtEnds-int-javax.swing.text.Position.Bias-), [forwardUpdate](../../../javax/swing/text/BoxView.html#forwardUpdate-javax.swing.event.DocumentEvent.ElementChange-javax.swing.event.DocumentEvent-java.awt.Shape-javax.swing.text.ViewFactory-), [getAlignment](../../../javax/swing/text/BoxView.html#getAlignment-int-), [getAxis](../../../javax/swing/text/BoxView.html#getAxis--), [getChildAllocation](../../../javax/swing/text/BoxView.html#getChildAllocation-int-java.awt.Shape-), [getHeight](../../../javax/swing/text/BoxView.html#getHeight--), [getOffset](../../../javax/swing/text/BoxView.html#getOffset-int-int-), [getResizeWeight](../../../javax/swing/text/BoxView.html#getResizeWeight-int-), [getSpan](../../../javax/swing/text/BoxView.html#getSpan-int-int-), [getViewAtPoint](../../../javax/swing/text/BoxView.html#getViewAtPoint-int-int-java.awt.Rectangle-), [getWidth](../../../javax/swing/text/BoxView.html#getWidth--), [isAfter](../../../javax/swing/text/BoxView.html#isAfter-int-int-java.awt.Rectangle-), [isAllocationValid](../../../javax/swing/text/BoxView.html#isAllocationValid--), [isBefore](../../../javax/swing/text/BoxView.html#isBefore-int-int-java.awt.Rectangle-), [isLayoutValid](../../../javax/swing/text/BoxView.html#isLayoutValid-int-), [layout](../../../javax/swing/text/BoxView.html#layout-int-int-), [layoutChanged](../../../javax/swing/text/BoxView.html#layoutChanged-int-), [layoutMajorAxis](../../../javax/swing/text/BoxView.html#layoutMajorAxis-int-int-int:A-int:A-), [layoutMinorAxis](../../../javax/swing/text/BoxView.html#layoutMinorAxis-int-int-int:A-int:A-), [modelToView](../../../javax/swing/text/BoxView.html#modelToView-int-java.awt.Shape-javax.swing.text.Position.Bias-), [paintChild](../../../javax/swing/text/BoxView.html#paintChild-java.awt.Graphics-java.awt.Rectangle-int-), [preferenceChanged](../../../javax/swing/text/BoxView.html#preferenceChanged-javax.swing.text.View-boolean-boolean-), [replace](../../../javax/swing/text/BoxView.html#replace-int-int-javax.swing.text.View:A-), [setAxis](../../../javax/swing/text/BoxView.html#setAxis-int-), [viewToModel](../../../javax/swing/text/BoxView.html#viewToModel-float-float-java.awt.Shape-javax.swing.text.Position.Bias:A-)` * ### Methods inherited from class javax.swing.text.[CompositeView](../../../javax/swing/text/CompositeView.html "class in javax.swing.text") `[getBottomInset](../../../javax/swing/text/CompositeView.html#getBottomInset--), [getInsideAllocation](../../../javax/swing/text/CompositeView.html#getInsideAllocation-java.awt.Shape-), [getLeftInset](../../../javax/swing/text/CompositeView.html#getLeftInset--), [getNextEastWestVisualPositionFrom](../../../javax/swing/text/CompositeView.html#getNextEastWestVisualPositionFrom-int-javax.swing.text.Position.Bias-java.awt.Shape-int-javax.swing.text.Position.Bias:A-), [getNextNorthSouthVisualPositionFrom](../../../javax/swing/text/CompositeView.html#getNextNorthSouthVisualPositionFrom-int-javax.swing.text.Position.Bias-java.awt.Shape-int-javax.swing.text.Position.Bias:A-), [getNextVisualPositionFrom](../../../javax/swing/text/CompositeView.html#getNextVisualPositionFrom-int-javax.swing.text.Position.Bias-java.awt.Shape-int-javax.swing.text.Position.Bias:A-), [getRightInset](../../../javax/swing/text/CompositeView.html#getRightInset--), [getTopInset](../../../javax/swing/text/CompositeView.html#getTopInset--), [getView](../../../javax/swing/text/CompositeView.html#getView-int-), [getViewAtPosition](../../../javax/swing/text/CompositeView.html#getViewAtPosition-int-java.awt.Rectangle-), [getViewCount](../../../javax/swing/text/CompositeView.html#getViewCount--), [getViewIndex](../../../javax/swing/text/CompositeView.html#getViewIndex-int-javax.swing.text.Position.Bias-), [getViewIndexAtPosition](../../../javax/swing/text/CompositeView.html#getViewIndexAtPosition-int-), [modelToView](../../../javax/swing/text/CompositeView.html#modelToView-int-javax.swing.text.Position.Bias-int-javax.swing.text.Position.Bias-java.awt.Shape-), [setInsets](../../../javax/swing/text/CompositeView.html#setInsets-short-short-short-short-), [setParagraphInsets](../../../javax/swing/text/CompositeView.html#setParagraphInsets-javax.swing.text.AttributeSet-), [setParent](../../../javax/swing/text/CompositeView.html#setParent-javax.swing.text.View-)` * ### Methods inherited from class javax.swing.text.[View](../../../javax/swing/text/View.html "class in javax.swing.text") `[append](../../../javax/swing/text/View.html#append-javax.swing.text.View-), [breakView](../../../javax/swing/text/View.html#breakView-int-int-float-float-), [createFragment](../../../javax/swing/text/View.html#createFragment-int-int-), [forwardUpdateToView](../../../javax/swing/text/View.html#forwardUpdateToView-javax.swing.text.View-javax.swing.event.DocumentEvent-java.awt.Shape-javax.swing.text.ViewFactory-), [getAttributes](../../../javax/swing/text/View.html#getAttributes--), [getBreakWeight](../../../javax/swing/text/View.html#getBreakWeight-int-float-float-), [getContainer](../../../javax/swing/text/View.html#getContainer--), [getDocument](../../../javax/swing/text/View.html#getDocument--), [getElement](../../../javax/swing/text/View.html#getElement--), [getEndOffset](../../../javax/swing/text/View.html#getEndOffset--), [getGraphics](../../../javax/swing/text/View.html#getGraphics--), [getParent](../../../javax/swing/text/View.html#getParent--), [getStartOffset](../../../javax/swing/text/View.html#getStartOffset--), [getToolTipText](../../../javax/swing/text/View.html#getToolTipText-float-float-java.awt.Shape-), [getViewFactory](../../../javax/swing/text/View.html#getViewFactory--), [getViewIndex](../../../javax/swing/text/View.html#getViewIndex-float-float-java.awt.Shape-), [insert](../../../javax/swing/text/View.html#insert-int-javax.swing.text.View-), [isVisible](../../../javax/swing/text/View.html#isVisible--), [modelToView](../../../javax/swing/text/View.html#modelToView-int-java.awt.Shape-), [remove](../../../javax/swing/text/View.html#remove-int-), [removeAll](../../../javax/swing/text/View.html#removeAll--), [updateChildren](../../../javax/swing/text/View.html#updateChildren-javax.swing.event.DocumentEvent.ElementChange-javax.swing.event.DocumentEvent-javax.swing.text.ViewFactory-), [updateLayout](../../../javax/swing/text/View.html#updateLayout-javax.swing.event.DocumentEvent.ElementChange-javax.swing.event.DocumentEvent-java.awt.Shape-), [viewToModel](../../../javax/swing/text/View.html#viewToModel-float-float-java.awt.Shape-)` * ### Methods inherited from class java.lang.[Object](../../../java/lang/Object.html "class in java.lang") `[clone](../../../java/lang/Object.html#clone--), [equals](../../../java/lang/Object.html#equals-java.lang.Object-), [finalize](../../../java/lang/Object.html#finalize--), [getClass](../../../java/lang/Object.html#getClass--), [hashCode](../../../java/lang/Object.html#hashCode--), [notify](../../../java/lang/Object.html#notify--), [notifyAll](../../../java/lang/Object.html#notifyAll--), [toString](../../../java/lang/Object.html#toString--), [wait](../../../java/lang/Object.html#wait--), [wait](../../../java/lang/Object.html#wait-long-), [wait](../../../java/lang/Object.html#wait-long-int-)`
Constructor Detail
* #### WrappedPlainView public WrappedPlainView([Element](../../../javax/swing/text/Element.html "interface in javax.swing.text") elem) Creates a new WrappedPlainView. Lines will be wrapped on character boundaries. Parameters: `elem` \- the element underlying the view * #### WrappedPlainView public WrappedPlainView([Element](../../../javax/swing/text/Element.html "interface in javax.swing.text") elem, boolean wordWrap) Creates a new WrappedPlainView. Lines can be wrapped on either character or word boundaries depending upon the setting of the wordWrap parameter. Parameters: `elem` \- the element underlying the view `wordWrap` \- should lines be wrapped on word boundaries?
Method Detail
* #### getTabSize protected int getTabSize() Returns the tab size set for the document, defaulting to 8. Returns: the tab size * #### drawLine protected void drawLine(int p0, int p1, [Graphics](../../../java/awt/Graphics.html "class in java.awt") g, int x, int y) Renders a line of text, suppressing whitespace at the end and expanding any tabs. This is implemented to make calls to the methods `drawUnselectedText` and`drawSelectedText` so that the way selected and unselected text are rendered can be customized. Parameters: `p0` \- the starting document location to use >= 0 `p1` \- the ending document location to use >= p1 `g` \- the graphics context `x` \- the starting X position >= 0 `y` \- the starting Y position >= 0 See Also: [drawUnselectedText(java.awt.Graphics, int, int, int, int)](../../../javax/swing/text/WrappedPlainView.html#drawUnselectedText-java.awt.Graphics-int-int-int-int-), [drawSelectedText(java.awt.Graphics, int, int, int, int)](../../../javax/swing/text/WrappedPlainView.html#drawSelectedText-java.awt.Graphics-int-int-int-int-) * #### drawUnselectedText protected int drawUnselectedText([Graphics](../../../java/awt/Graphics.html "class in java.awt") g, int x, int y, int p0, int p1) throws [BadLocationException](../../../javax/swing/text/BadLocationException.html "class in javax.swing.text") Renders the given range in the model as normal unselected text. Parameters: `g` \- the graphics context `x` \- the starting X coordinate >= 0 `y` \- the starting Y coordinate >= 0 `p0` \- the beginning position in the model >= 0 `p1` \- the ending position in the model >= p0 Returns: the X location of the end of the range >= 0 Throws: `[BadLocationException](../../../javax/swing/text/BadLocationException.html "class in javax.swing.text")` \- if the range is invalid * #### drawSelectedText protected int drawSelectedText([Graphics](../../../java/awt/Graphics.html "class in java.awt") g, int x, int y, int p0, int p1) throws [BadLocationException](../../../javax/swing/text/BadLocationException.html "class in javax.swing.text") Renders the given range in the model as selected text. This is implemented to render the text in the color specified in the hosting component. It assumes the highlighter will render the selected background. Parameters: `g` \- the graphics context `x` \- the starting X coordinate >= 0 `y` \- the starting Y coordinate >= 0 `p0` \- the beginning position in the model >= 0 `p1` \- the ending position in the model >= p0 Returns: the location of the end of the range. Throws: `[BadLocationException](../../../javax/swing/text/BadLocationException.html "class in javax.swing.text")` \- if the range is invalid * #### getLineBuffer protected final [Segment](../../../javax/swing/text/Segment.html "class in javax.swing.text") getLineBuffer() Gives access to a buffer that can be used to fetch text from the associated document. Returns: the buffer * #### calculateBreakPosition protected int calculateBreakPosition(int p0, int p1) This is called by the nested wrapped line views to determine the break location. This can be reimplemented to alter the breaking behavior. It will either break at word or character boundaries depending upon the break argument given at construction. * #### loadChildren protected void loadChildren([ViewFactory](../../../javax/swing/text/ViewFactory.html "interface in javax.swing.text") f) Loads all of the children to initialize the view. This is called by the `setParent` method. Subclasses can reimplement this to initialize their child views in a different manner. The default implementation creates a child view for each child element. Overrides: `[loadChildren](../../../javax/swing/text/CompositeView.html#loadChildren-javax.swing.text.ViewFactory-)` in class `[CompositeView](../../../javax/swing/text/CompositeView.html "class in javax.swing.text")` Parameters: `f` \- the view factory See Also: [CompositeView.setParent(javax.swing.text.View)](../../../javax/swing/text/CompositeView.html#setParent-javax.swing.text.View-) * #### nextTabStop public float nextTabStop(float x, int tabOffset) Returns the next tab stop position after a given reference position. This implementation does not support things like centering so it ignores the tabOffset argument. Specified by: `[nextTabStop](../../../javax/swing/text/TabExpander.html#nextTabStop-float-int-)` in interface `[TabExpander](../../../javax/swing/text/TabExpander.html "interface in javax.swing.text")` Parameters: `x` \- the current position >= 0 `tabOffset` \- the position within the text stream that the tab occurred at >= 0. Returns: the tab stop, measured in points >= 0 * #### paint public void paint([Graphics](../../../java/awt/Graphics.html "class in java.awt") g, [Shape](../../../java/awt/Shape.html "interface in java.awt") a) Renders using the given rendering surface and area on that surface. This is implemented to stash the selection positions, selection colors, and font metrics for the nested lines to use. Overrides: `[paint](../../../javax/swing/text/BoxView.html#paint-java.awt.Graphics-java.awt.Shape-)` in class `[BoxView](../../../javax/swing/text/BoxView.html "class in javax.swing.text")` Parameters: `g` \- the rendering surface to use `a` \- the allocated region to render into See Also: [View.paint(java.awt.Graphics, java.awt.Shape)](../../../javax/swing/text/View.html#paint-java.awt.Graphics-java.awt.Shape-) * #### setSize public void setSize(float width, float height) Sets the size of the view. This should cause layout of the view along the given axis, if it has any layout duties. Overrides: `[setSize](../../../javax/swing/text/BoxView.html#setSize-float-float-)` in class `[BoxView](../../../javax/swing/text/BoxView.html "class in javax.swing.text")` Parameters: `width` \- the width >= 0 `height` \- the height >= 0 * #### getPreferredSpan public float getPreferredSpan(int axis) Determines the preferred span for this view along an axis. This is implemented to provide the superclass behavior after first making sure that the current font metrics are cached (for the nested lines which use the metrics to determine the height of the potentially wrapped lines). Overrides: `[getPreferredSpan](../../../javax/swing/text/BoxView.html#getPreferredSpan-int-)` in class `[BoxView](../../../javax/swing/text/BoxView.html "class in javax.swing.text")` Parameters: `axis` \- may be either View.X\_AXIS or View.Y\_AXIS Returns: the span the view would like to be rendered into. Typically the view is told to render into the span that is returned, although there is no guarantee. The parent may choose to resize or break the view. See Also: [View.getPreferredSpan(int)](../../../javax/swing/text/View.html#getPreferredSpan-int-) * #### getMinimumSpan public float getMinimumSpan(int axis) Determines the minimum span for this view along an axis. This is implemented to provide the superclass behavior after first making sure that the current font metrics are cached (for the nested lines which use the metrics to determine the height of the potentially wrapped lines). Overrides: `[getMinimumSpan](../../../javax/swing/text/BoxView.html#getMinimumSpan-int-)` in class `[BoxView](../../../javax/swing/text/BoxView.html "class in javax.swing.text")` Parameters: `axis` \- may be either View.X\_AXIS or View.Y\_AXIS Returns: the span the view would like to be rendered into. Typically the view is told to render into the span that is returned, although there is no guarantee. The parent may choose to resize or break the view. See Also: [View.getMinimumSpan(int)](../../../javax/swing/text/View.html#getMinimumSpan-int-) * #### getMaximumSpan public float getMaximumSpan(int axis) Determines the maximum span for this view along an axis. This is implemented to provide the superclass behavior after first making sure that the current font metrics are cached (for the nested lines which use the metrics to determine the height of the potentially wrapped lines). Overrides: `[getMaximumSpan](../../../javax/swing/text/BoxView.html#getMaximumSpan-int-)` in class `[BoxView](../../../javax/swing/text/BoxView.html "class in javax.swing.text")` Parameters: `axis` \- may be either View.X\_AXIS or View.Y\_AXIS Returns: the span the view would like to be rendered into. Typically the view is told to render into the span that is returned, although there is no guarantee. The parent may choose to resize or break the view. See Also: [View.getMaximumSpan(int)](../../../javax/swing/text/View.html#getMaximumSpan-int-) * #### insertUpdate public void insertUpdate([DocumentEvent](../../../javax/swing/event/DocumentEvent.html "interface in javax.swing.event") e, [Shape](../../../java/awt/Shape.html "interface in java.awt") a, [ViewFactory](../../../javax/swing/text/ViewFactory.html "interface in javax.swing.text") f) Gives notification that something was inserted into the document in a location that this view is responsible for. This is implemented to simply update the children. Overrides: `[insertUpdate](../../../javax/swing/text/View.html#insertUpdate-javax.swing.event.DocumentEvent-java.awt.Shape-javax.swing.text.ViewFactory-)` in class `[View](../../../javax/swing/text/View.html "class in javax.swing.text")` Parameters: `e` \- the change information from the associated document `a` \- the current allocation of the view `f` \- the factory to use to rebuild if the view has children See Also: [View.insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)](../../../javax/swing/text/View.html#insertUpdate-javax.swing.event.DocumentEvent-java.awt.Shape-javax.swing.text.ViewFactory-) * #### removeUpdate public void removeUpdate([DocumentEvent](../../../javax/swing/event/DocumentEvent.html "interface in javax.swing.event") e, [Shape](../../../java/awt/Shape.html "interface in java.awt") a, [ViewFactory](../../../javax/swing/text/ViewFactory.html "interface in javax.swing.text") f) Gives notification that something was removed from the document in a location that this view is responsible for. This is implemented to simply update the children. Overrides: `[removeUpdate](../../../javax/swing/text/View.html#removeUpdate-javax.swing.event.DocumentEvent-java.awt.Shape-javax.swing.text.ViewFactory-)` in class `[View](../../../javax/swing/text/View.html "class in javax.swing.text")` Parameters: `e` \- the change information from the associated document `a` \- the current allocation of the view `f` \- the factory to use to rebuild if the view has children See Also: [View.removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)](../../../javax/swing/text/View.html#removeUpdate-javax.swing.event.DocumentEvent-java.awt.Shape-javax.swing.text.ViewFactory-) * #### changedUpdate public void changedUpdate([DocumentEvent](../../../javax/swing/event/DocumentEvent.html "interface in javax.swing.event") e, [Shape](../../../java/awt/Shape.html "interface in java.awt") a, [ViewFactory](../../../javax/swing/text/ViewFactory.html "interface in javax.swing.text") f) Gives notification from the document that attributes were changed in a location that this view is responsible for. Overrides: `[changedUpdate](../../../javax/swing/text/View.html#changedUpdate-javax.swing.event.DocumentEvent-java.awt.Shape-javax.swing.text.ViewFactory-)` in class `[View](../../../javax/swing/text/View.html "class in javax.swing.text")` Parameters: `e` \- the change information from the associated document `a` \- the current allocation of the view `f` \- the factory to use to rebuild if the view has children See Also: [View.changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)](../../../javax/swing/text/View.html#changedUpdate-javax.swing.event.DocumentEvent-java.awt.Shape-javax.swing.text.ViewFactory-)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.