Java Platform 1.2

Class InlineView


public class InlineView
extends LabelView

Displays the inline element styles based upon css attributes.

Fields inherited from class javax.swing.text.View
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
Constructor Summary
InlineView(Element elem)
          Constructs a new view wrapped on an element.
Method Summary
 AttributeSet getAttributes()
          Fetches the attributes to use when rendering.
protected  StyleSheet getStyleSheet()
 boolean isVisible()
          Returns false if the contents of the view are merely a "\n".
protected  void setPropertiesFromAttributes()
          Set the cached properties from the attributes.
Methods inherited from class javax.swing.text.LabelView
breakView, changedUpdate, 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, modelToView, modelToView, preferenceChanged, setParent, setSize, viewToModel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public InlineView(Element elem)
Constructs a new view wrapped on an element.
elem - the element
Method Detail


public AttributeSet getAttributes()
Fetches the attributes to use when rendering. This is implemented to multiplex the attributes specified in the model with a StyleSheet.
getAttributes in class View


protected void setPropertiesFromAttributes()
Set the cached properties from the attributes.
setPropertiesFromAttributes in class LabelView


protected StyleSheet getStyleSheet()


public boolean isVisible()
Returns false if the contents of the view are merely a "\n". If the contents are merely a newline, it is fair to say that the element corresponding to this view was deliberately inserted for purposes of editing.
isVisible in class View

Java Platform 1.2

Submit a bug or feature Version 1.2 of Java Platform API Specification
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.