Home » openjdk-7 » javax » swing » text » [javadoc | source]
javax.swing.text
class: ParagraphView.Row [javadoc | source]
java.lang.Object
   javax.swing.text.View
      javax.swing.text.CompositeView
         javax.swing.text.BoxView
            javax.swing.text.ParagraphView$Row

All Implemented Interfaces:
    SwingConstants

Internally created view that has the purpose of holding the views that represent the children of the paragraph that have been arranged in rows.
Field Summary
static final  int SPACE_ADDON     
static final  int SPACE_ADDON_LEFTOVER_END     
static final  int START_JUSTIFIABLE     
static final  int END_JUSTIFIABLE     
 int[] justificationData     
Fields inherited from javax.swing.text.BoxView:
majorAxis,  majorSpan,  minorSpan,  majorReqValid,  minorReqValid,  majorRequest,  minorRequest,  majorAllocValid,  majorOffsets,  majorSpans,  minorAllocValid,  minorOffsets,  minorSpans,  tempRect
Fields inherited from javax.swing.text.View:
BadBreakWeight,  GoodBreakWeight,  ExcellentBreakWeight,  ForcedBreakWeight,  X_AXIS,  Y_AXIS,  sharedBiasReturn
Constructor:
 Row(Element elem) 
Method from javax.swing.text.ParagraphView$Row Summary:
calculateMajorAxisRequirements,   calculateMinorAxisRequirements,   getAlignment,   getAttributes,   getBottomInset,   getEndOffset,   getLeftInset,   getMaximumSpan,   getStartOffset,   getViewIndexAtPosition,   layoutMajorAxis,   layoutMinorAxis,   loadChildren,   modelToView
Methods from javax.swing.text.BoxView:
baselineLayout,   baselineRequirements,   calculateMajorAxisRequirements,   calculateMinorAxisRequirements,   checkRequests,   childAllocation,   flipEastAndWestAtEnds,   forwardUpdate,   getAlignment,   getAxis,   getChildAllocation,   getHeight,   getMaximumSpan,   getMinimumSpan,   getOffset,   getPreferredSpan,   getResizeWeight,   getSpan,   getSpanOnAxis,   getViewAtPoint,   getWidth,   isAfter,   isAllocationValid,   isBefore,   isLayoutValid,   layout,   layoutChanged,   layoutMajorAxis,   layoutMinorAxis,   modelToView,   paint,   paintChild,   preferenceChanged,   replace,   setAxis,   setSize,   setSpanOnAxis,   updateChildSizes,   updateLayoutArray,   viewToModel
Methods from javax.swing.text.CompositeView:
childAllocation,   flipEastAndWestAtEnds,   getBottomInset,   getChildAllocation,   getInsideAllocation,   getLeftInset,   getNextEastWestVisualPositionFrom,   getNextNorthSouthVisualPositionFrom,   getNextVisualPositionFrom,   getRightInset,   getTopInset,   getView,   getViewAtPoint,   getViewAtPosition,   getViewCount,   getViewIndex,   getViewIndexAtPosition,   isAfter,   isBefore,   loadChildren,   modelToView,   modelToView,   replace,   setInsets,   setParagraphInsets,   setParent,   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.ParagraphView$Row Detail:
 protected SizeRequirements calculateMajorAxisRequirements(int axis,
    SizeRequirements r) 
 protected SizeRequirements calculateMinorAxisRequirements(int axis,
    SizeRequirements r) 
 public float getAlignment(int axis) 
 public AttributeSet getAttributes() 
    Fetches the attributes to use when rendering. This view isn't directly responsible for an element so it returns the outer classes attributes.
 protected short getBottomInset() 
 public int getEndOffset() 
 protected short getLeftInset() 
    Gets the left inset.
 public float getMaximumSpan(int axis) 
 public int getStartOffset() 
    Range represented by a row in the paragraph is only a subset of the total range of the paragraph element.
 protected int getViewIndexAtPosition(int pos) 
    Fetches the child view index representing the given position in the model.
 protected  void layoutMajorAxis(int targetSpan,
    int axis,
    int[] offsets,
    int[] spans) 
 protected  void layoutMinorAxis(int targetSpan,
    int axis,
    int[] offsets,
    int[] spans) 
    Perform layout for the minor axis of the box (i.e. the axis orthoginal to the axis that it represents). The results of the layout should be placed in the given arrays which represent the allocations to the children along the minor axis.

    This is implemented to do a baseline layout of the children by calling BoxView.baselineLayout.

 protected  void loadChildren(ViewFactory f) 
    This is reimplemented to do nothing since the paragraph fills in the row with its needed children.
 public Shape modelToView(int pos,
    Shape a,
    Bias b) throws BadLocationException 
    Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it. This is implemented to let the superclass find the position along the major axis and the allocation of the row is used along the minor axis, so that even though the children are different heights they all get the same caret height.