当前页面:
在线文档首页 >
JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档
Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Class InlineView - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档
javax.swing.text.html
Class InlineView
java.lang.Object
|
+--javax.swing.text.View
|
+--javax.swing.text.LabelView
|
+--javax.swing.text.html.InlineView
- public class InlineView
- extends LabelView
Displays the inline element styles
based upon css attributes.
Constructor Summary |
InlineView(Element elem)
Constructs a new view wrapped on an element. |
Methods inherited from class javax.swing.text.LabelView |
breakView,
createFragment,
getAlignment,
getBreakWeight,
getFont,
getFontMetrics,
getNextVisualPositionFrom,
getPreferredSpan,
insertUpdate,
modelToView,
paint,
removeUpdate,
setStrikeThrough,
setSubscript,
setSuperscript,
setUnderline,
toString,
viewToModel |
Methods inherited from class javax.swing.text.View |
getChildAllocation,
getContainer,
getDocument,
getElement,
getEndOffset,
getMaximumSpan,
getMinimumSpan,
getParent,
getResizeWeight,
getStartOffset,
getView,
getViewCount,
getViewFactory,
isVisible,
modelToView,
modelToView,
preferenceChanged,
setParent,
setSize,
viewToModel |
InlineView
public InlineView(Element elem)
- Constructs a new view wrapped on an element.
- Parameters:
elem
- the element
changedUpdate
public void changedUpdate(DocumentEvent e,
Shape a,
ViewFactory f)
- Gives notification from the document that attributes were changed
in a location that this view is responsible for.
- Overrides:
- changedUpdate in class LabelView
- Parameters:
e
- the change information from the associated documenta
- the current allocation of the viewf
- the factory to use to rebuild if the view has children- See Also:
View.changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
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()
- Set the cached properties from the attributes.
- Overrides:
- setPropertiesFromAttributes in class LabelView
getStyleSheet
protected StyleSheet getStyleSheet()
Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.