Uses of Class
javax.swing.text.View
-
Packages that use View Package Description javax.swing.plaf Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.javax.swing.plaf.basic Provides user interface objects built according to the Basic look and feel.javax.swing.plaf.multi Provides user interface objects that combine two or more look and feels.javax.swing.plaf.synth Synth is a skinnable look and feel in which all painting is delegated.javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components.javax.swing.text.html Provides the classHTMLEditorKitand supporting classes for creating HTML text editors. -
-
Uses of View in javax.swing.plaf
Methods in javax.swing.plaf that return View Modifier and Type Method Description abstract ViewTextUI. 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
Methods in javax.swing.plaf.basic that return View Modifier and Type Method Description ViewBasicPasswordFieldUI. create(Element elem)Creates a view (PasswordView) for an element.ViewBasicTextAreaUI. create(Element elem)Creates the view for an element.ViewBasicTextFieldUI. create(Element elem)Creates a view (FieldView) based on an element.ViewBasicTextUI. create(Element elem)Creates a view for an element.ViewBasicTextUI. create(Element elem, int p0, int p1)Creates a view for an element.static ViewBasicHTML. createHTMLView(JComponent c, String html)Create an html renderer for the given component and string of html.ViewBasicTextUI. 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 ViewBasicTabbedPaneUI. 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.Methods in javax.swing.plaf.basic with parameters of type View Modifier and Type Method Description static intBasicHTML. getHTMLBaseline(View view, int w, int h)Returns the baseline for the html renderer.protected voidBasicTextUI. setView(View v)Sets the current root of the view hierarchy and calls invalidate(). -
Uses of View in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi that return View Modifier and Type Method Description ViewMultiTextUI. getRootView(JTextComponent a)Invokes thegetRootViewmethod on each UI handled by this object. -
Uses of View in javax.swing.plaf.synth
Methods in javax.swing.plaf.synth that return View Modifier and Type Method Description ViewSynthPasswordFieldUI. create(Element elem)Creates a view (PasswordView) for an element. -
Uses of View in javax.swing.text
Subclasses of View in javax.swing.text Modifier and Type Class Description classAsyncBoxViewA box that does layout asynchronously.classBoxViewA view that arranges its children into a box shape by tiling its children along an axis.classComponentViewComponent decorator that implements the view interface.classCompositeViewCompositeViewis an abstractViewimplementation which manages one or more child views.classFieldViewExtends the multi-line plain text view to be suitable for a single-line editor view.classFlowViewA View that tries to flow it's children into some partially constrained space.classGlyphViewA GlyphView is a styled chunk of text that represents a view mapped over an element in the text model.classIconViewIcon decorator that implements the view interface.classLabelViewALabelViewis a styled chunk of text that represents a view mapped over an element in the text model.classParagraphViewView of a simple line-wrapping paragraph that supports multiple fonts, colors, components, icons, etc.classPasswordViewImplements a View suitable for use in JPasswordField UI implementations.classPlainViewImplements View interface for a simple multi-line text view that has text in one font and color.classTableViewImplements 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.classTableView.TableCellDeprecated.A table cell can now be any View implementation.classTableView.TableRowView of a row in a row-centric table.classWrappedPlainViewView of plain text (text with only one font and color) that does line-wrapping.classZoneViewZoneView 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.Fields in javax.swing.text declared as View Modifier and Type Field Description protected ViewFlowView. layoutPoolThese are the views that represent the child elements of the element this view represents (The logical view to translate to a physical view).Methods in javax.swing.text that return View Modifier and Type Method Description ViewGlyphView. breakView(int axis, int p0, float pos, float len)Breaks this view on the given axis at the given length.ViewParagraphView. breakView(int axis, float len, Shape a)Breaks this view on the given axis at the given length.ViewView. breakView(int axis, int offset, float pos, float len)Tries to break this view on the given axis.ViewViewFactory. create(Element elem)Creates a view from the given structural element of a document.ViewGlyphView. createFragment(int p0, int p1)Creates a view that represents a portion of the element.ViewView. createFragment(int p0, int p1)Creates a view that represents a portion of the element.protected abstract ViewFlowView. createRow()Create a View that should be used to hold a a rows worth of children in a flow.protected ViewParagraphView. createRow()Create aViewthat should be used to hold a a row's worth of children in a flow.protected ViewFlowView.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 ViewZoneView. 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).ViewAsyncBoxView.ChildState. getChildView()Fetch the child view this record represents.protected ViewParagraphView. getLayoutView(int index)Returns the view at a givenindex.protected ViewFlowView.FlowStrategy. getLogicalView(FlowView fv)This method gives flow strategies access to the logical view of the FlowView.ViewView. getParent()Returns the parent of the view.ViewAsyncBoxView. getView(int n)Gets the nth child view.ViewCompositeView. getView(int n)Returns the n-th view in this container.ViewView. getView(int n)Gets the nth child view.protected ViewBoxView. getViewAtPoint(int x, int y, Rectangle alloc)Fetches the child view at the given coordinates.protected abstract ViewCompositeView. getViewAtPoint(int x, int y, Rectangle alloc)Fetches the child view at the given coordinates.protected ViewCompositeView. getViewAtPosition(int pos, Rectangle a)Fetches the child view that represents the given position in the model.protected ViewTableView. getViewAtPosition(int pos, Rectangle a)Fetches the child view that represents the given position in the model.protected ViewTableView.TableRow. getViewAtPosition(int pos, Rectangle a)Fetches the child view that represents the given position in the model.Methods in javax.swing.text with parameters of type View Modifier and Type Method Description voidView. append(View v)Appends a single child view.protected AsyncBoxView.ChildStateAsyncBoxView. createChildState(View v)New ChildState records are created through this method to allow subclasses the extend the ChildState records to do/hold more.protected voidView. forwardUpdateToView(View v, DocumentEvent e, Shape a, ViewFactory f)Forwards theDocumentEventto the give child view.voidView. insert(int offs, View v)Inserts a single child view.protected booleanZoneView. isZoneLoaded(View zone)Determine if a zone is in the loaded state.ShapeDefaultHighlighter.DefaultHighlightPainter. paintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view)Paints a portion of a highlight.abstract ShapeLayeredHighlighter.LayerPainter. paintLayer(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)voidDefaultHighlighter. 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 voidLayeredHighlighter. 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.voidAsyncBoxView. 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.voidBoxView. preferenceChanged(View child, boolean width, boolean height)This is called by a child to indicate its preferred span has changed.voidView. 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.voidAsyncBoxView. replace(int offset, int length, View[] views)Calls the superclass to update the child views, and updates the status records for the children.voidBoxView. replace(int index, int length, View[] elems)Invalidates the layout and resizes the cache of requests/allocations.voidCompositeView. replace(int offset, int length, View[] views)Replaces child views.voidTableView. replace(int offset, int length, View[] views)Change the child views.voidTableView.TableRow. replace(int offset, int length, View[] views)Change the child views.voidView. replace(int offset, int length, View[] views)Replaces child views.voidAsyncBoxView. setParent(View parent)Sets the parent of the view.voidComponentView. setParent(View p)Sets the parent for a child view.voidCompositeView. setParent(View parent)Sets the parent of the view.voidView. setParent(View parent)Establishes the parent view for this view.protected voidZoneView. unloadZone(View zone)Unload a zone (Convert the zone to its memory saving state).protected voidZoneView. zoneWasLoaded(View zone)Called by a zone when it gets loaded.Constructors in javax.swing.text with parameters of type View Constructor Description ChildState(View v)Construct a child status. -
Uses of View in javax.swing.text.html
Subclasses of View in javax.swing.text.html Modifier and Type Class Description classBlockViewA view implementation to display a block (as a box) with CSS specifications.classFormViewComponent decorator that implements the view interface for form elements, <input>, <textarea>, and <select>.classImageViewView of an Image, intended to support the HTML <IMG> tag.classInlineViewDisplays the inline element styles based upon css attributes.classListViewA view implementation to display an html listclassObjectViewComponent decorator that implements the view interface for <object> elements.classParagraphViewDisplays the a paragraph, and uses css attributes for its configuration.Methods in javax.swing.text.html that return View Modifier and Type Method Description ViewInlineView. breakView(int axis, int offset, float pos, float len)Tries to break this view on the given axis.ViewHTMLEditorKit.HTMLFactory. create(Element elem)Creates a view from an element.Methods in javax.swing.text.html with parameters of type View Modifier and Type Method Description floatStyleSheet.BoxPainter. getInset(int side, View v)Fetches the inset needed on a given side to account for the margin, border, and padding.AttributeSetStyleSheet. getViewAttributes(View v)Fetches a set of attributes to use in the view for displaying.voidStyleSheet.BoxPainter. paint(Graphics g, float x, float y, float w, float h, View v)Paints the CSS box according to the attributes given.voidStyleSheet.ListPainter. paint(Graphics g, float x, float y, float w, float h, View v, int item)Paints the CSS list decoration according to the attributes given.voidBlockView. setParent(View parent)Establishes the parent view for this view.voidImageView. setParent(View parent)Establishes the parent view for this view.voidParagraphView. setParent(View parent)Establishes the parent view for this view.
-