Example usage for Java javax.swing.text View fields, constructors, methods, implement or subclass
The text is from its open source code.
View | createFragment(int p0, int p1) Creates a view that represents a portion of the element. |
AttributeSet | getAttributes() Fetches the attributes to use when rendering. |
Class> | getClass() Returns the runtime class of this Object . |
int | getEndOffset() Fetches the portion of the model for which this view is responsible. |
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. |
int | getStartOffset() Fetches the portion of the model for which this view is responsible. |
View | getView(int n) Gets the nth child view. |
int | getViewCount() Returns the number of views in this view. |
Shape | modelToView(int p0, Position.Bias b0, int p1, Position.Bias b1, Shape a) Provides a mapping, for a given region, from the document model coordinate space to the view coordinate space. |
void | paint(Graphics g, Shape allocation) Renders using the given rendering surface and area on that surface. |
void | setSize(float width, float height) Sets the size of the view. |