javax.swing
Class JEditorPane.PlainEditorKit.PlainParagraph
java.lang.Object
javax.swing.text.View
javax.swing.text.CompositeView
javax.swing.text.BoxView
javax.swing.text.FlowView
javax.swing.text.ParagraphView
javax.swing.JEditorPane.PlainEditorKit.PlainParagraph
- All Implemented Interfaces:
- SwingConstants, TabExpander
- Enclosing class:
- JEditorPane.PlainEditorKit
- static class JEditorPane.PlainEditorKit.PlainParagraph
- extends ParagraphView
Paragraph for representing plain-text lines that support
bidirectional text.
Nested classes inherited from class javax.swing.text.ParagraphView |
|
Fields inherited from class javax.swing.text.BoxView |
|
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 |
Methods inherited from class javax.swing.text.ParagraphView |
adjustRow, breakView, changedUpdate, createRow, findOffsetToCharactersInString, flipEastAndWestAtEnds, getAlignment, getBreakWeight, getClosestPositionTo, getFlowStart, getLayoutView, getLayoutViewCount, getNextNorthSouthVisualPositionFrom, getPartialSize, getTabBase, getTabSet, nextTabStop, paint, setFirstLineIndent, setJustification, setLineSpacing |
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, setParent |
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 |
JEditorPane.PlainEditorKit.PlainParagraph
JEditorPane.PlainEditorKit.PlainParagraph(Element elem)
setPropertiesFromAttributes
protected void setPropertiesFromAttributes()
- Description copied from class:
ParagraphView
- Set the cached properties from the attributes.
- Overrides:
setPropertiesFromAttributes
in class ParagraphView
getFlowSpan
public int getFlowSpan(int index)
- Fetch the constraining span to flow against for
the given child index.
- Overrides:
getFlowSpan
in class ParagraphView
- Parameters:
index
- the index of the view being queried
- Returns:
- the constraining span for the given view at
index
calculateMinorAxisRequirements
protected SizeRequirements calculateMinorAxisRequirements(int axis,
SizeRequirements r)
- Description copied from class:
FlowView
- Calculate equirements along the minor axis. This
is implemented to forward the request to the logical
view by calling getMinimumSpan, getPreferredSpan, and
getMaximumSpan on it.
- Overrides:
calculateMinorAxisRequirements
in class FlowView