Package edu.umd.cs.findbugs.sourceViewer
Class NumberedParagraphView
- java.lang.Object
-
- javax.swing.text.View
-
- javax.swing.text.CompositeView
-
- javax.swing.text.BoxView
-
- javax.swing.text.FlowView
-
- javax.swing.text.ParagraphView
-
- edu.umd.cs.findbugs.sourceViewer.NumberedParagraphView
-
- All Implemented Interfaces:
javax.swing.SwingConstants
,javax.swing.text.TabExpander
class NumberedParagraphView extends javax.swing.text.ParagraphView
-
-
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
-
Constructor Summary
Constructors Constructor Description NumberedParagraphView(javax.swing.text.Element e, HighlightInformation highlight)
-
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
-
-
-
-
Field Detail
-
NUMBERS_WIDTH
public static final int NUMBERS_WIDTH
-
highlight
HighlightInformation highlight
-
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)
-
-