|
Java Platform 1.2 Beta 4 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use View | |
com.sun.java.swing.plaf | Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities. |
com.sun.java.swing.text | Provides classes and interfaces that deal with editable and noneditable text components. |
com.sun.java.swing.text.html | Provides the class (HTMLEditorKit) and supporting classes for creating HTML text editors. |
Uses of View in com.sun.java.swing.plaf |
Methods in com.sun.java.swing.plaf that return View | |
abstract 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 com.sun.java.swing.text |
Subclasses of View in com.sun.java.swing.text | |
BoxView
A view of a text model that arranges its children into a box. |
|
ComponentView
Component decorator that implements the view interface. |
|
CompositeView
A view of a text model that has a children box. |
|
FieldView
Extends the multi-line plain text view to be suitable for a single-line editor view. |
|
IconView
Icon decorator that implements the view interface. |
|
LabelView
A LabelView is a styled chunk of text that represents a view mapped over an element in the text model. |
|
ParagraphView
View of a simple line-wrapping paragraph that supports multiple fonts, colors, components, icons, etc. |
|
PasswordView
Implements a View suitable for use in JPasswordField UI implementations. |
|
PlainView
Implements View interface for a simple multi-line text view that has text in one font and color. |
|
TableView
Implements View interface for a table, that is composed of a specific 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. |
|
TableView.TableCell
View of a cell in a table |
|
TableView.TableRow
View of a row in a table. |
|
WrappedPlainView
View of plain text (text with only one font and color) that does line-wrapping. |
Methods in com.sun.java.swing.text that return View | |
View | View.getParent()
Returns the parent of the view. |
View | View.getView(int n)
Gets the nth child view. |
View | View.breakView(int axis,
int offset,
float pos,
float len)
Tries to break this view on the given axis. |
View | View.createFragment(int p0,
int p1)
Create a view that represents a portion of the element. |
View | CompositeView.getView(int n)
Gets the n-th view in this container. |
protected abstract View | CompositeView.getViewAtPoint(int x,
int y,
Rectangle alloc)
Fetches the child view at the given point. |
protected View | CompositeView.getViewAtPosition(int pos,
Rectangle a)
Fetches the child view that represents the given position in the model. |
protected View | BoxView.getViewAtPoint(int x,
int y,
Rectangle alloc)
Fetches the child view at the given point. |
protected View | ParagraphView.getLayoutView(int index)
The child views of the paragraph are rows which have been used to arrange pieces of the Views that represent the child elements. |
protected View | ParagraphView.getViewAtPosition(int pos,
Rectangle a)
Fetches the child view that represents the given position in the model. |
View | ParagraphView.breakView(int axis,
float len,
Shape a)
Breaks this view on the given axis at the given length. |
View | ViewFactory.create(Element elem)
Creates a view from the given structural element of a document. |
View | LabelView.breakView(int axis,
int p0,
float pos,
float len)
Breaks this view on the given axis at the given length. |
View | LabelView.createFragment(int p0,
int p1)
Creates a view that represents a portion of the element. |
Methods in com.sun.java.swing.text with parameters of type View | |
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 | View.setParent(View parent)
Establishes the parent view for this view. |
void | CompositeView.insert(int offs,
View v)
Inserts a single child view. |
void | CompositeView.append(View v)
Appends a single child view. |
void | CompositeView.replace(int offset,
int length,
View[] views)
Invalidates the layout and resizes the cache of requests/allocations, allowing for the replacement of child views. |
void | CompositeView.setParent(View parent)
Sets the parent of the view. |
void | BoxView.replace(int offset,
int length,
View[] elems)
Invalidates the layout and resizes the cache of requests/allocations. |
void | BoxView.preferenceChanged(View child,
boolean width,
boolean height)
This is called by a child to indicated its preferred span has changed. |
void | PlainView.preferenceChanged(View child,
boolean width,
boolean height)
Signals that the desired span has changed. |
void | ComponentView.setParent(View p)
Sets the parent for a child view. |
Uses of View in com.sun.java.swing.text.html |
Subclasses of View in com.sun.java.swing.text.html | |
BlockView
A view implementation to display a block (as a box) with CSS specifications. |
|
InlineView
Displays the inline element styles based upon css attributes. |
|
ListView
A view implementation to display an html list |
Methods in com.sun.java.swing.text.html that return View | |
View | HTMLEditorKit.HTMLFactory.create(Element elem)
Creates a view from an element. |
Methods in com.sun.java.swing.text.html with parameters of type View | |
AttributeSet | StyleSheet.getViewAttributes(View v)
Fetch a set of attributes to use in the view for displaying. |
float | StyleSheet.BoxPainter.getInset(int side,
View v)
Fetchs the inset needed on a given side to account for the margin, border, and padding. |
void | StyleSheet.BoxPainter.paint(Graphics g,
float x,
float y,
float w,
float h,
View v)
Paints the css box according to the attributes given. |
void | StyleSheet.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. |
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |