javax.swing.text.html
public class ParagraphView extends ParagraphView
| Constructor Summary | |
|---|---|
| ParagraphView(Element element)
Creates a new ParagraphView for the specified element.
| |
| Method Summary | |
|---|---|
| protected SizeRequirements | calculateMinorAxisRequirements(int axis, SizeRequirements r)
Calculates the minor axis requirements of this view. |
| AttributeSet | getAttributes()
Returns the attributes used by this view. |
| float | getMaximumSpan(int axis)
Returns the maximum span of this view. |
| float | getMinimumSpan(int axis)
Returns the minimum span of this view. |
| float | getPreferredSpan(int axis)
Returns the preferred span of this view. |
| protected StyleSheet | getStyleSheet()
Returns the stylesheet used by this view.
|
| boolean | isVisible()
Determines if this view is visible or not. |
| void | paint(Graphics g, Shape a)
Paints this view. |
| void | setParent(View parent)
Sets the parent of this view. |
| protected void | setPropertiesFromAttributes()
Loads the visual properties of the ParagraphView from the element's
attributes and the stylesheet of the HTML document. |
Parameters: element the element
Parameters: axis the axis r the SizeRequirements object to be used as return parameter;
if null a new one will be created
Returns: the requirements along the minor layout axis
0, otherwise the super class is called.
Parameters: axis the axis
Returns: the maximum span of this view
0, otherwise the super class is called.
Parameters: axis the axis
Returns: the minimum span of this view
0, otherwise the super class is called.
Parameters: axis the axis
Returns: the preferred span of this view
Returns: the stylesheet used by this view
Returns: the visibility of this paragraph
Parameters: g the graphics object a the current allocation of this view
Parameters: parent the parent view to set