public class ListView extends BlockView
<ul> and
<ol> tags.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| Constructor and Description |
|---|
ListView(Element el)
Creates a new
ListView for the specified element. |
| Modifier and Type | Method and Description |
|---|---|
float |
getAlignment(int axis)
Returns the alignment of this view along the specified axis.
|
void |
paint(Graphics g,
Shape allocation)
Paints the
ListView. |
protected void |
paintChild(Graphics g,
Rectangle a,
int index)
Paints the child with the specified index into the specified allocation.
|
protected void |
setPropertiesFromAttributes()
Fetches this view's properties from the style attributes of this view's
element.
|
calculateMajorAxisRequirements, calculateMinorAxisRequirements, changedUpdate, getAttributes, getMaximumSpan, getMinimumSpan, getPreferredSpan, getResizeWeight, getStyleSheet, layoutMajorAxis, layoutMinorAxis, replace, setParentbaselineLayout, baselineRequirements, childAllocation, flipEastAndWestAtEnds, forwardUpdate, getAxis, getChildAllocation, getHeight, getOffset, getSpan, getViewAtPoint, getWidth, isAfter, isAllocationValid, isBefore, isLayoutValid, layout, layoutChanged, modelToView, preferenceChanged, setAxis, setSize, viewToModelgetBottomInset, getInsideAllocation, getLeftInset, getNextEastWestVisualPositionFrom, getNextNorthSouthVisualPositionFrom, getNextVisualPositionFrom, getRightInset, getTopInset, getView, getViewAtPosition, getViewCount, getViewIndex, getViewIndexAtPosition, loadChildren, modelToView, setInsets, setParagraphInsetsappend, breakView, createFragment, dump, forwardUpdateToView, getBreakWeight, getContainer, getDocument, getElement, getEndOffset, getGraphics, getParent, getStartOffset, getToolTipText, getViewFactory, getViewIndex, insert, insertUpdate, isVisible, modelToView, remove, removeAll, removeUpdate, updateChildren, updateLayout, viewToModelpublic float getAlignment(int axis)
0.5 unconditionally.getAlignment in class BlockViewaxis - the axisprotected void paintChild(Graphics g, Rectangle a, int index)
StyleSheet and then calls
super.paintChild(g, a, index).paintChild in class BoxViewg - the graphics context to usea - the allocation for the childindex - the child indexBoxView.childAllocation(int, Rectangle)protected void setPropertiesFromAttributes()
StyleSheet.ListPainter
from the stylesheet suitable for painting the list.setPropertiesFromAttributes in class BlockView