javax.swing.text
public class FieldView extends PlainView
| Constructor Summary | |
|---|---|
| FieldView(Element elem) | |
| Method Summary | |
|---|---|
| protected Shape | adjustAllocation(Shape shape)
Vertically centers the single line of text within the
bounds of the input shape. |
| void | changedUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) |
| protected FontMetrics | getFontMetrics() |
| float | getPreferredSpan(int axis) |
| int | getResizeWeight(int axis) |
| void | insertUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) |
| Shape | modelToView(int pos, Shape a, Position.Bias bias) |
| void | paint(Graphics g, Shape s) |
| void | removeUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) |
| int | viewToModel(float fx, float fy, Shape a, Position.Bias[] bias) |
shape and has a height of the
preferred span along the Y axis. Horizontal adjustment is done according
to the horizontalAligment property of the component that is rendered.
Parameters: shape the shape within which the line is beeing centered