Class NumberedParagraphView

  • All Implemented Interfaces:
    javax.swing.SwingConstants, javax.swing.text.TabExpander

    class NumberedParagraphView
    extends javax.swing.text.ParagraphView
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.text.FlowView

        javax.swing.text.FlowView.FlowStrategy
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.util.WeakHashMap<javax.swing.text.Element,​java.lang.Integer> elementLineNumberCache  
      (package private) HighlightInformation highlight  
      static int NUMBERS_WIDTH  
      • Fields inherited from class javax.swing.text.ParagraphView

        firstLineIndent
      • Fields inherited from class javax.swing.text.FlowView

        layoutPool, layoutSpan, strategy
      • Fields inherited from class javax.swing.text.View

        BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
      • Fields inherited from interface javax.swing.SwingConstants

        BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getLineNumber()  
      int getPreviousLineCount0()  
      void paint​(java.awt.Graphics g, java.awt.Shape allocation)  
      • Methods inherited from class javax.swing.text.ParagraphView

        breakView, calculateMinorAxisRequirements, changedUpdate, createRow, findOffsetToCharactersInString, flipEastAndWestAtEnds, getAlignment, getBreakWeight, getClosestPositionTo, getFlowSpan, getFlowStart, getLayoutView, getLayoutViewCount, getNextNorthSouthVisualPositionFrom, getPartialSize, getTabBase, getTabSet, nextTabStop, setFirstLineIndent, setJustification, setLineSpacing, setPropertiesFromAttributes
      • Methods inherited from class javax.swing.text.FlowView

        getFlowAxis, getViewIndexAtPosition, insertUpdate, layout, loadChildren, removeUpdate, setParent
      • Methods inherited from class javax.swing.text.BoxView

        baselineLayout, baselineRequirements, calculateMajorAxisRequirements, childAllocation, forwardUpdate, getAxis, getChildAllocation, getHeight, getMaximumSpan, getMinimumSpan, getOffset, getPreferredSpan, getResizeWeight, getSpan, getViewAtPoint, getWidth, isAfter, isAllocationValid, isBefore, isLayoutValid, layoutChanged, layoutMajorAxis, layoutMinorAxis, modelToView, paintChild, preferenceChanged, replace, setAxis, setSize, viewToModel
      • Methods inherited from class javax.swing.text.CompositeView

        getBottomInset, getInsideAllocation, getLeftInset, getNextEastWestVisualPositionFrom, getNextVisualPositionFrom, getRightInset, getTopInset, getView, getViewAtPosition, getViewCount, getViewIndex, modelToView, setInsets, setParagraphInsets
      • Methods inherited from class javax.swing.text.View

        append, breakView, createFragment, forwardUpdateToView, getAttributes, getBreakWeight, getContainer, getDocument, getElement, getEndOffset, getGraphics, getParent, getStartOffset, getToolTipText, getViewFactory, getViewIndex, insert, isVisible, modelToView, remove, removeAll, updateChildren, updateLayout, viewToModel
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NUMBERS_WIDTH

        public static final int NUMBERS_WIDTH
      • elementLineNumberCache

        static java.util.WeakHashMap<javax.swing.text.Element,​java.lang.Integer> elementLineNumberCache
    • Constructor Detail

      • NumberedParagraphView

        public NumberedParagraphView​(javax.swing.text.Element e,
                                     HighlightInformation highlight)
    • Method Detail

      • paint

        public void paint​(java.awt.Graphics g,
                          java.awt.Shape allocation)
        Overrides:
        paint in class javax.swing.text.ParagraphView
      • getPreviousLineCount0

        public int getPreviousLineCount0()
      • getLineNumber

        public java.lang.Integer getLineNumber()