Class com.sun.java.swing.text.html.ParagraphView
java.lang.Object
|
+--com.sun.java.swing.text.View
|
+--com.sun.java.swing.text.CompositeView
|
+--com.sun.java.swing.text.BoxView
|
+--com.sun.java.swing.text.ParagraphView
|
+--com.sun.java.swing.text.html.ParagraphView
- public class ParagraphView
- extends ParagraphView
Displays the a paragraph, and uses css attributes for its
configuration.
Methods inherited from class com.sun.java.swing.text.ParagraphView |
adjustRow
, breakView
, calculateMinorAxisRequirements
, changedUpdate
, findOffsetToCharactersInString
, getAlignment
, getBreakWeight
, getLayoutView
, getLayoutViewCount
, getPartialSize
, getTabSet
, getViewAtPosition
, insertUpdate
, layout
, loadChildren
, nextTabStop
, removeUpdate
, setFirstLineIndent
, setJustification
, setLineSpacing
|
Methods inherited from class com.sun.java.swing.text.BoxView |
baselineLayout
, baselineRequirements
, calculateMajorAxisRequirements
, childAllocation
, getHeight
, getMaximumSpan
, getMinimumSpan
, getOffset
, getPreferredSpan
, getResizeWeight
, getSpan
, getViewAtPoint
, getWidth
, isAfter
, isAllocationValid
, isBefore
, layoutMajorAxis
, layoutMinorAxis
, modelToView
, paintChild
, preferenceChanged
, replace
, setSize
, viewToModel
|
Methods inherited from class com.sun.java.swing.text.CompositeView |
append
, getBottomInset
, getChildAllocation
, getInsideAllocation
, getLeftInset
, getRightInset
, getTopInset
, getView
, getViewCount
, insert
, removeAll
, setInsets
, setParagraphInsets
, setParent
|
Methods inherited from class com.sun.java.swing.text.View |
breakView
, createFragment
, getBreakWeight
, getContainer
, getDocument
, getElement
, getEndOffset
, getNextVisualPositionFrom
, getParent
, getStartOffset
, getViewFactory
, modelToView
, viewToModel
|
Methods inherited from class java.lang.Object |
clone
, equals
, finalize
, getClass
, hashCode
, notify
, notifyAll
, toString
, wait
, wait
, wait
|
ParagraphView
public ParagraphView(Element elem)
- Constructs a ParagraphView for the given element.
- Parameters:
elem
- the element that this view is responsible for
getAttributes
public AttributeSet getAttributes()
- Fetches the attributes to use when rendering. This is
implemented to multiplex the attributes specified in the
model with a StyleSheet.
- Overrides:
- getAttributes in class View
setPropertiesFromAttributes
protected void setPropertiesFromAttributes()
- Sets up the paragraph from css attributes instead of
the values found in StyleConstants (i.e. which are used
by the superclass). Since
- Overrides:
- setPropertiesFromAttributes in class ParagraphView
getStyleSheet
protected StyleSheet getStyleSheet()
paint
public void paint(Graphics g,
Shape allocation)
- Renders using the given rendering surface and area on that
surface. This is implemented to delegate to the css box
painter to paint the border and background prior to the
interior (which is handled by the superclass).
- Parameters:
g
- the rendering surface to use
allocation
- the allocated region to render into- Overrides:
- paint in class ParagraphView
- See Also:
View.paint(java.awt.Graphics, java.awt.Shape)
Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.