This subclasses ParagraphView, but this really only contains one Row of text.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | tabBase
Last place painted at.
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public float | Returns: the alignmentmay be either X_AXIS or Y_AXIS axis)Overrides javax. Gets the alignment for an axis. |
| protected int | |
| public float | Returns: the minimum span the view can be rendered intomay be either axis)View.X_AXIS or
View.Y_AXISOverrides javax. Determines the minimum span for this view along an axis. |
| protected float | |
| public int | Returns: the weightmay be either X_AXIS or Y_AXIS axis)Overrides javax. Gets the resize weight for the specified axis. |
| public boolean | isVisible()
Overrides javax. Preformatted lines are not suppressed if they have only whitespace, so they are always visible. |
| protected void | layout(int
the width to lay out against >= 0. This is
the width inside of the inset area. width, int the height to lay out against >= 0 (not used
by paragraph, but used by the superclass). This
is the height inside of the inset area. height)Overrides javax. Lays out the children. |
| public float | Returns: the trailing end of the tab expansion >= 0the X reference position x, int the position within the text stream
that the tab occurred at >= 0. tabOffset)Overrides javax. Implements javax. Returns the next tab stop position given a reference position. |
| tabBase | back to summary |
|---|---|
| pack-priv int tabBase Hides javax. Last place painted at. | |
| LineView | back to summary |
|---|---|
| public LineView(Element elem) Creates a LineView object.
| |
| getAlignment | back to summary |
|---|---|
| public float getAlignment(int axis) Overrides javax. Gets the alignment for an axis.
| |
| getCharactersPerTab | back to summary |
|---|---|
protected int getCharactersPerTab()
| |
| getMinimumSpan | back to summary |
|---|---|
| public float getMinimumSpan(int axis) Overrides javax. Determines the minimum span for this view along an axis. The preformatted line should refuse to be sized less than the preferred size.
| |
| getPreTab | back to summary |
|---|---|
| protected float getPreTab(float x, int tabOffset) Returns the location for the tab.
| |
| getResizeWeight | back to summary |
|---|---|
| public int getResizeWeight(int axis) Overrides javax. Gets the resize weight for the specified axis.
| |
| isVisible | back to summary |
|---|---|
| public boolean isVisible() Overrides javax. Preformatted lines are not suppressed if they have only whitespace, so they are always visible. | |
| layout | back to summary |
|---|---|
| protected void layout(int width, int height) Overrides javax. Lays out the children. If the layout span has changed,
the rows are rebuilt. The superclass functionality
is called after checking and possibly rebuilding the
rows. If the height has changed, the
| |
| nextTabStop | back to summary |
|---|---|
| public float nextTabStop(float x, int tabOffset) Overrides javax. Implements javax. Returns the next tab stop position given a reference position.
This view implements the tab coordinate system, and calls
This is implemented to try and locate a | |