Uses of Class
javax.swing.text.View
Package
Description
Provides one interface and many abstract classes that Swing uses to provide
its pluggable look-and-feel capabilities.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects that combine two or more look and feels.
Synth is a skinnable look and feel in which all painting is delegated.
Provides classes and interfaces that deal with editable and noneditable text
components.
Provides the class
HTMLEditorKit
and supporting classes for creating
HTML text editors.-
Uses of View in javax.swing.plaf
Modifier and TypeMethodDescriptionabstract View
TextUI.getRootView
(JTextComponent t) Fetches a View with the allocation of the associated text component (i.e. the root of the hierarchy) that can be traversed to determine how the model is being represented spatially. -
Uses of View in javax.swing.plaf.basic
Modifier and TypeMethodDescriptionCreates a view (PasswordView) for an element.Creates a view for an element.Creates a view for an element.Creates a view for an element.Creates a view for an element.static View
BasicHTML.createHTMLView
(JComponent c, String html) Create an html renderer for the given component and string of html.BasicTextUI.getRootView
(JTextComponent tc) Fetches a View with the allocation of the associated text component (i.e. the root of the hierarchy) that can be traversed to determine how the model is being represented spatially.protected View
BasicTabbedPaneUI.getTextViewForTab
(int tabIndex) Returns the text View object required to render stylized text (HTML) for the specified tab or null if no specialized text rendering is needed for this tab.Modifier and TypeMethodDescriptionstatic int
BasicHTML.getHTMLBaseline
(View view, int w, int h) Returns the baseline for the html renderer.protected final void
Sets the current root of the view hierarchy and calls invalidate(). -
Uses of View in javax.swing.plaf.multi
Modifier and TypeMethodDescriptionMultiTextUI.getRootView
(JTextComponent a) Invokes thegetRootView
method on each UI handled by this object. -
Uses of View in javax.swing.plaf.synth
-
Uses of View in javax.swing.text
Modifier and TypeClassDescriptionclass
A box that does layout asynchronously.class
A view that arranges its children into a box shape by tiling its children along an axis.class
Component decorator that implements the view interface.class
CompositeView
is an abstractView
implementation which manages one or more child views.class
Extends the multi-line plain text view to be suitable for a single-line editor view.class
A View that tries to flow it's children into some partially constrained space.class
A GlyphView is a styled chunk of text that represents a view mapped over an element in the text model.class
Icon decorator that implements the view interface.class
ALabelView
is a styled chunk of text that represents a view mapped over an element in the text model.class
View of a simple line-wrapping paragraph that supports multiple fonts, colors, components, icons, etc.class
Implements a View suitable for use in JPasswordField UI implementations.class
Implements View interface for a simple multi-line text view that has text in one font and color.class
Implements View interface for a table, that is composed of an element structure where the child elements of the element this view is responsible for represent rows and the child elements of the row elements are cells.class
Deprecated.A table cell can now be any View implementation.class
View of a row in a row-centric table.class
View of plain text (text with only one font and color) that does line-wrapping.class
ZoneView is a View implementation that creates zones for which the child views are not created or stored until they are needed for display or model/view translations.Modifier and TypeFieldDescriptionprotected View
FlowView.layoutPool
These are the views that represent the child elements of the element this view represents (The logical view to translate to a physical view).Modifier and TypeMethodDescriptionGlyphView.breakView
(int axis, int p0, float pos, float len) Breaks this view on the given axis at the given length.Breaks this view on the given axis at the given length.View.breakView
(int axis, int offset, float pos, float len) Tries to break this view on the given axis.Creates a view from the given structural element of a document.GlyphView.createFragment
(int p0, int p1) Creates a view that represents a portion of the element.View.createFragment
(int p0, int p1) Creates a view that represents a portion of the element.protected abstract View
FlowView.createRow()
Create a View that should be used to hold a a rows worth of children in a flow.protected View
ParagraphView.createRow()
Create aView
that should be used to hold a a row's worth of children in a flow.protected View
FlowView.FlowStrategy.createView
(FlowView fv, int startOffset, int spanLeft, int rowIndex) Creates a view that can be used to represent the current piece of the flow.protected View
ZoneView.createZone
(int p0, int p1) Create a view to represent a zone for the given range within the model (which should be within the range of this objects responsibility).AsyncBoxView.ChildState.getChildView()
Fetch the child view this record represents.protected View
ParagraphView.getLayoutView
(int index) Returns the view at a givenindex
.protected View
FlowView.FlowStrategy.getLogicalView
(FlowView fv) This method gives flow strategies access to the logical view of the FlowView.View.getParent()
Returns the parent of the view.AsyncBoxView.getView
(int n) Gets the nth child view.CompositeView.getView
(int n) Returns the n-th view in this container.View.getView
(int n) Gets the nth child view.protected View
BoxView.getViewAtPoint
(int x, int y, Rectangle alloc) Fetches the child view at the given coordinates.protected abstract View
CompositeView.getViewAtPoint
(int x, int y, Rectangle alloc) Fetches the child view at the given coordinates.protected View
CompositeView.getViewAtPosition
(int pos, Rectangle a) Fetches the child view that represents the given position in the model.protected View
TableView.getViewAtPosition
(int pos, Rectangle a) Fetches the child view that represents the given position in the model.protected View
TableView.TableRow.getViewAtPosition
(int pos, Rectangle a) Fetches the child view that represents the given position in the model.Modifier and TypeMethodDescriptionvoid
Appends a single child view.protected AsyncBoxView.ChildState
AsyncBoxView.createChildState
(View v) New ChildState records are created through this method to allow subclasses the extend the ChildState records to do/hold more.protected void
View.forwardUpdateToView
(View v, DocumentEvent e, Shape a, ViewFactory f) Forwards theDocumentEvent
to the give child view.void
Inserts a single child view.protected boolean
ZoneView.isZoneLoaded
(View zone) Determine if a zone is in the loaded state.DefaultHighlighter.DefaultHighlightPainter.paintLayer
(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view) Paints a portion of a highlight.abstract Shape
LayeredHighlighter.LayerPainter.paintLayer
(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) Paints a portion of a highlight.void
DefaultHighlighter.paintLayeredHighlights
(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) When leaf Views (such as LabelView) are rendering they should call into this method.abstract void
LayeredHighlighter.paintLayeredHighlights
(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) When leaf Views (such as LabelView) are rendering they should call into this method.void
AsyncBoxView.preferenceChanged
(View child, boolean width, boolean height) Child views can call this on the parent to indicate that the preference has changed and should be reconsidered for layout.void
BoxView.preferenceChanged
(View child, boolean width, boolean height) This is called by a child to indicate its preferred span has changed.void
View.preferenceChanged
(View child, boolean width, boolean height) Child views can call this on the parent to indicate that the preference has changed and should be reconsidered for layout.void
Calls the superclass to update the child views, and updates the status records for the children.void
Invalidates the layout and resizes the cache of requests/allocations.void
Replaces child views.void
Change the child views.void
Change the child views.void
Replaces child views.void
Sets the parent of the view.void
Sets the parent for a child view.void
Sets the parent of the view.void
Establishes the parent view for this view.protected void
ZoneView.unloadZone
(View zone) Unload a zone (Convert the zone to its memory saving state).protected void
ZoneView.zoneWasLoaded
(View zone) Called by a zone when it gets loaded. -
Uses of View in javax.swing.text.html
Modifier and TypeClassDescriptionclass
A view implementation to display a block (as a box) with CSS specifications.class
Component decorator that implements the view interface for form elements, <input>, <textarea>, and <select>.class
View of an Image, intended to support the HTML <IMG> tag.class
Displays the inline element styles based upon css attributes.class
A view implementation to display an html listclass
Component decorator that implements the view interface for <object> elements.class
Displays the paragraph and uses CSS attributes for its configuration.Modifier and TypeMethodDescriptionInlineView.breakView
(int axis, int offset, float pos, float len) Tries to break this view on the given axis.Creates a view from an element.Modifier and TypeMethodDescriptionfloat
Fetches the inset needed on a given side to account for the margin, border, and padding.StyleSheet.getViewAttributes
(View v) Fetches a set of attributes to use in the view for displaying.void
Paints the CSS box according to the attributes given.void
Paints the CSS list decoration according to the attributes given.void
Establishes the parent view for this view.void
Establishes the parent view for this view.void
Establishes the parent view for this view.