public class ListView extends BlockView
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXISBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST| Modifier and Type | Method and Description | 
|---|---|
| float | getAlignment(int axis)
              计算列表所需的形状。 
             | 
| void | paint(Graphics g, Shape allocation)
              渲染使用给定的渲染表面和该表面上的区域。 
             | 
| protected void | paintChild(Graphics g, Rectangle alloc, int index) 
             画一个孩子; 
             由paint()调用。 
             | 
| protected void | setPropertiesFromAttributes()
              更新来自属性的任何缓存值。 
             | 
calculateMajorAxisRequirements, calculateMinorAxisRequirements, changedUpdate, getAttributes, getMaximumSpan, getMinimumSpan, getPreferredSpan, getResizeWeight, getStyleSheet, layoutMinorAxis, setParentbaselineLayout, baselineRequirements, childAllocation, flipEastAndWestAtEnds, forwardUpdate, getAxis, getChildAllocation, getHeight, getOffset, getSpan, getViewAtPoint, getWidth, isAfter, isAllocationValid, isBefore, isLayoutValid, layout, layoutChanged, layoutMajorAxis, modelToView, preferenceChanged, replace, setAxis, setSize, viewToModelgetBottomInset, getInsideAllocation, getLeftInset, getNextEastWestVisualPositionFrom, getNextNorthSouthVisualPositionFrom, getNextVisualPositionFrom, getRightInset, getTopInset, getView, getViewAtPosition, getViewCount, getViewIndex, getViewIndexAtPosition, loadChildren, modelToView, setInsets, setParagraphInsetsappend, breakView, createFragment, forwardUpdateToView, getBreakWeight, getContainer, getDocument, getElement, getEndOffset, getGraphics, getParent, getStartOffset, getToolTipText, getViewFactory, getViewIndex, insert, insertUpdate, isVisible, modelToView, remove, removeAll, removeUpdate, updateChildren, updateLayout, viewToModelpublic ListView(Element elem)
elem - 创建视图的元素 
           public float getAlignment(int axis)
getAlignment在 
            BlockView 
           axis - 可以是X_AXIS或Y_AXIS 
           View.getPreferredSpan(int) 
           public void paint(Graphics g, Shape allocation)
paint在 
            BlockView 
           g - 要使用的渲染表面 
           allocation - 要分配的区域 
           View.paint(java.awt.Graphics, java.awt.Shape) 
           protected void paintChild(Graphics g, Rectangle alloc, int index)
paintChild在 
            BoxView类 
           g - 图形上下文 
           alloc - 分配的区域来渲染孩子 
           index - 孩子的索引 
           protected void setPropertiesFromAttributes()
BlockView 
           Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.