APIdia Launch Partner
Top Description Constructors Methods
javax.swing.text.html

pack-priv Class BRView

extends InlineView
Class Inheritance
Imports
javax.swing.text.*

Processes the <BR> tag. In other words, forces a line break.
Author
Sunita Mani

Constructor Summary

AccessConstructor and Description
public
BRView(Element
the element to create a view for
elem
)

Creates a new view that represents a <BR> element.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

View.ForcedBreakWeight
getBreakWeight
(int axis, float pos, float len)

Overrides javax.swing.text.html.InlineView.getBreakWeight.

Forces a line break.

Inherited from javax.swing.text.html.InlineView:
breakViewchangedUpdategetAttributesgetStyleSheetinsertUpdateremoveUpdatesetPropertiesFromAttributes

Constructor Detail

BRViewback to summary
public BRView(Element elem)

Creates a new view that represents a <BR> element.

Parameters
elem:Element

the element to create a view for

Method Detail

getBreakWeightback to summary
public int getBreakWeight(int axis, float pos, float len)

Overrides javax.swing.text.html.InlineView.getBreakWeight.

Forces a line break.

Returns:int

View.ForcedBreakWeight