Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
<ul>
and
<ol>
tags.
Field Summary |
Fields inherited from class javax.swing.text.View | |
BadBreakWeight , ExcellentBreakWeight , ForcedBreakWeight , GoodBreakWeight , X_AXIS , Y_AXIS |
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 |
Method Summary | |
float |
|
void | |
protected void |
|
protected void |
|
Methods inherited from class javax.swing.text.html.BlockView | |
calculateMajorAxisRequirements , calculateMinorAxisRequirements , changedUpdate , getAlignment , getAttributes , getMaximumSpan , getMinimumSpan , getPreferredSpan , getResizeWeight , getStyleSheet , layoutMajorAxis , layoutMinorAxis , paint , replace , setParent , setPropertiesFromAttributes |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public float getAlignment(int axis)
Returns the alignment of this view along the specified axis. This returns0.5
unconditionally.
- Overrides:
- getAlignment in interface BlockView
- Parameters:
axis
- the axis
- Returns:
- the alignment of this view along the specified axis
public void paint(Graphics g, Shape allocation)
Paints theListView
.
- Parameters:
g
- the graphics context to use for paintingallocation
- the allocation given to this view
protected void paintChild(Graphics g, Rectangle a, int index)
Paints the child with the specified index into the specified allocation. This implementation forwards to the list painter fetched from theStyleSheet
and then callssuper.paintChild(g, a, index)
.
- Overrides:
- paintChild in interface BoxView
- Parameters:
g
- the graphics context to usea
- the allocation for the childindex
- the child index
protected void setPropertiesFromAttributes()
Fetches this view's properties from the style attributes of this view's element. This forwards to super and then fetches aStyleSheet.ListPainter
from the stylesheet suitable for painting the list.
- Overrides:
- setPropertiesFromAttributes in interface BlockView