Java javax.swing.text View fields, constructors, methods, implement or subclass

Example usage for Java javax.swing.text View fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing.text View.

The text is from its open source code.

Subclass

javax.swing.text.View has subclasses.
Click this link to see all its subclasses.

Field

intX_AXIS
Axis for format/break operations.
intY_AXIS
Axis for format/break operations.

Method

ViewcreateFragment(int p0, int p1)
Creates a view that represents a portion of the element.
AttributeSetgetAttributes()
Fetches the attributes to use when rendering.
ClassgetClass()
Returns the runtime class of this Object .
intgetEndOffset()
Fetches the portion of the model for which this view is responsible.
floatgetMinimumSpan(int axis)
Determines the minimum span for this view along an axis.
floatgetPreferredSpan(int axis)
Determines the preferred span for this view along an axis.
intgetStartOffset()
Fetches the portion of the model for which this view is responsible.
ViewgetView(int n)
Gets the nth child view.
intgetViewCount()
Returns the number of views in this view.
ShapemodelToView(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.
voidpaint(Graphics g, Shape allocation)
Renders using the given rendering surface and area on that surface.
voidsetSize(float width, float height)
Sets the size of the view.