sferyx.administration.renderers
Class CustomListView
java.lang.Object
javax.swing.text.View
javax.swing.text.CompositeView
javax.swing.text.BoxView
javax.swing.text.html.BlockView
sferyx.administration.renderers.CustomLayoutBoxView
sferyx.administration.renderers.CustomBlockView
sferyx.administration.renderers.CustomListView
- All Implemented Interfaces:
- javax.swing.SwingConstants, CSSLayoutViews
public class CustomListView
- extends CustomBlockView
List view- adds some improvements to numbered/ordered lists. It is used to add further internationalization support and especially for RTL writing rules
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 |
Constructor Summary |
CustomListView(javax.swing.text.Element elem)
Creates a new view that represents a list element. |
Method Summary |
java.lang.String |
getChildType(javax.swing.text.View v)
|
short |
getLeftInset()
|
short |
getRightInset()
|
void |
paint(java.awt.Graphics g,
float x,
float y,
float w,
float h,
javax.swing.text.View v,
int item)
|
void |
paint(java.awt.Graphics g,
java.awt.Shape allocation)
|
protected void |
paintChild(java.awt.Graphics g,
java.awt.Rectangle alloc,
int index)
Paints one of the children; called by paint(). |
void |
paintOnlyBulletsForChild(java.awt.Graphics g,
java.awt.Rectangle alloc,
int index)
|
void |
paintOnlyBulletsForChild1(java.awt.Graphics g,
java.awt.Rectangle alloc,
int index)
|
protected void |
setPropertiesFromAttributes()
|
Methods inherited from class sferyx.administration.renderers.CustomBlockView |
changedUpdate, containsOnlyFloats, getMaximumSpan_, getMaximumSpan, getMinimumSpan_, getMinimumSpan, getPreferredSpan_, getPreferredSpan, getTotalSpanV_, getTotalSpanV, insertUpdate, isVisible, layout, loadChildren, removeUpdate, updateLayout |
Methods inherited from class sferyx.administration.renderers.CustomLayoutBoxView |
adjustAllParagraphsLayout, adjustParagraphLayout, calculateMajorAxisRequirements, calculateMinorAxisRequirements, childAllocation, forwardUpdate, getAbsoluteX_, getAbsoluteX, getAbsoluteY_, getAbsoluteY, getAlignment, getAttributes, getBottomInset, getBottomMargin, getBottomPadding, getChildAllocation, getFloatingChildrenSpan, getHeightCSSValue_, getHeightCSSValue, getInsideAllocation, getLeftMargin, getLeftPadding, getLeftRightBorderInset, getMaxWidthCSSValue, getMinWidthCSSValue, getMyIndex, getMyOffset, getNextVisualPositionFrom, getOffset, getResizeWeight, getRightMargin, getRightPadding, getSpan, getStyleSheet, getSuperPreferredSpan, getTopBottomBorderInset, getTopInset, getTopMargin, getTopPadding, getView, getViewAtPoint, getViewAtPointNormal, getWidth, getWidthCSSValue_, getWidthCSSValue, isAbsolutePositioning, isRelativePositioning, layoutChanged, layoutMajorAxis, layoutMinorAxis, layoutSuperMajorAxis, loadChildren_, modelToView, paintThisViewOnly, replace_, setInsets, setParent, setSize, viewToModel |
Methods inherited from class javax.swing.text.BoxView |
baselineLayout, baselineRequirements, flipEastAndWestAtEnds, getAxis, getHeight, isAfter, isAllocationValid, isBefore, isLayoutValid, preferenceChanged, replace, setAxis |
Methods inherited from class javax.swing.text.CompositeView |
getNextEastWestVisualPositionFrom, getNextNorthSouthVisualPositionFrom, getViewAtPosition, getViewCount, getViewIndex, getViewIndexAtPosition, modelToView, setParagraphInsets |
Methods inherited from class javax.swing.text.View |
append, breakView, createFragment, forwardUpdateToView, getBreakWeight, getContainer, getDocument, getElement, getEndOffset, getGraphics, getParent, getStartOffset, getToolTipText, getViewFactory, getViewIndex, insert, modelToView, remove, removeAll, updateChildren, viewToModel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomListView
public CustomListView(javax.swing.text.Element elem)
- Creates a new view that represents a list element.
- Parameters:
elem
- the element to create a view for
getLeftInset
public short getLeftInset()
- Overrides:
getLeftInset
in class CustomLayoutBoxView
getRightInset
public short getRightInset()
- Overrides:
getRightInset
in class CustomLayoutBoxView
paint
public void paint(java.awt.Graphics g,
java.awt.Shape allocation)
- Overrides:
paint
in class CustomBlockView
paintOnlyBulletsForChild
public void paintOnlyBulletsForChild(java.awt.Graphics g,
java.awt.Rectangle alloc,
int index)
paintOnlyBulletsForChild1
public void paintOnlyBulletsForChild1(java.awt.Graphics g,
java.awt.Rectangle alloc,
int index)
paintChild
protected void paintChild(java.awt.Graphics g,
java.awt.Rectangle alloc,
int index)
- Paints one of the children; called by paint(). By default
that is all it does, but a subclass can use this to paint
things relative to the child.
- Overrides:
paintChild
in class javax.swing.text.BoxView
- Parameters:
g
- the graphics contextalloc
- the allocated region to render the child intoindex
- the index of the child
paint
public void paint(java.awt.Graphics g,
float x,
float y,
float w,
float h,
javax.swing.text.View v,
int item)
getChildType
public java.lang.String getChildType(javax.swing.text.View v)
setPropertiesFromAttributes
protected void setPropertiesFromAttributes()
- Overrides:
setPropertiesFromAttributes
in class CustomLayoutBoxView