Home » openjdk-7 » javax » swing » text » html » [javadoc | source]
javax.swing.text.html
class: NullView [javadoc | source]
java.lang.Object
   javax.swing.text.View
      javax.swing.text.html.NullView

All Implemented Interfaces:
    SwingConstants

A dummy view that renders nothing. This is used for invisible HTML elements like .
Fields inherited from javax.swing.text.View:
BadBreakWeight,  GoodBreakWeight,  ExcellentBreakWeight,  ForcedBreakWeight,  X_AXIS,  Y_AXIS,  sharedBiasReturn
Constructor:
 public NullView(Element elem) 
    Creates a new NullView.
    Parameters:
    elem - the element
Method from javax.swing.text.html.NullView Summary:
getPreferredSpan,   modelToView,   paint,   viewToModel
Methods from javax.swing.text.View:
append,   breakView,   changedUpdate,   createFragment,   forwardUpdate,   forwardUpdateToView,   getAlignment,   getAttributes,   getBreakWeight,   getChildAllocation,   getContainer,   getDocument,   getElement,   getEndOffset,   getGraphics,   getMaximumSpan,   getMinimumSpan,   getNextVisualPositionFrom,   getParent,   getPreferredSpan,   getResizeWeight,   getStartOffset,   getToolTipText,   getView,   getViewCount,   getViewFactory,   getViewIndex,   getViewIndex,   insert,   insertUpdate,   isVisible,   modelToView,   modelToView,   modelToView,   paint,   preferenceChanged,   remove,   removeAll,   removeUpdate,   replace,   setParent,   setSize,   updateChildren,   updateLayout,   viewToModel,   viewToModel
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.html.NullView Detail:
 public float getPreferredSpan(int axis) 
    Returns zero for both directions.
 public Shape modelToView(int pos,
    Shape a,
    Bias b) throws BadLocationException 
    Returns the allocation of this view, which should be empty anyway.
 public  void paint(Graphics g,
    Shape s) 
    Does nothing.
 public int viewToModel(float x,
    float y,
    Shape a,
    Bias[] b) 
    Returns the start offset of the element.