|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.text.View
javax.swing.text.GlyphView
javax.swing.text.LabelView
javax.swing.text.html.InlineView
org.allcolor.yahp.cl.converter.swing.CSwingHtmlRenderer.CInlineView
public static class CSwingHtmlRenderer.CInlineView
This class extends InlineView and prevent text to be painted while painting root container, thus letting YaHP calculates correct page cutting.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.text.GlyphView |
---|
javax.swing.text.GlyphView.GlyphPainter |
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 |
Constructor Summary | |
---|---|
CSwingHtmlRenderer.CInlineView(javax.swing.text.Element elem)
Creates a new CInlineView object. |
Method Summary | |
---|---|
private boolean |
isRightAlign(javax.swing.text.Element elem)
DOCUMENT ME! |
void |
paint(java.awt.Graphics g,
java.awt.Shape a)
do not paint |
void |
realPaint(java.awt.Graphics gg,
java.awt.Shape a)
Real painting method |
Methods inherited from class javax.swing.text.html.InlineView |
---|
breakView, changedUpdate, getAttributes, getBreakWeight, getStyleSheet, insertUpdate, removeUpdate, setPropertiesFromAttributes |
Methods inherited from class javax.swing.text.LabelView |
---|
getBackground, getFont, getFontMetrics, getForeground, isStrikeThrough, isSubscript, isSuperscript, isUnderline, setBackground, setStrikeThrough, setSubscript, setSuperscript, setUnderline |
Methods inherited from class javax.swing.text.GlyphView |
---|
checkPainter, clone, createFragment, getAlignment, getEndOffset, getGlyphPainter, getNextVisualPositionFrom, getPartialSpan, getPreferredSpan, getStartOffset, getTabbedSpan, getTabExpander, getText, modelToView, setGlyphPainter, viewToModel |
Methods inherited from class javax.swing.text.View |
---|
append, forwardUpdate, forwardUpdateToView, getChildAllocation, getContainer, getDocument, getElement, getGraphics, getMaximumSpan, getMinimumSpan, getParent, getResizeWeight, getToolTipText, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, insert, isVisible, modelToView, modelToView, preferenceChanged, remove, removeAll, replace, setParent, setSize, updateChildren, updateLayout, viewToModel |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.text.TabableView |
---|
getPartialSpan, getTabbedSpan |
Constructor Detail |
---|
public CSwingHtmlRenderer.CInlineView(javax.swing.text.Element elem)
elem
- The html swing element representing the text
nodeMethod Detail |
---|
public void paint(java.awt.Graphics g, java.awt.Shape a)
paint
in class javax.swing.text.GlyphView
g
- Graphics objecta
- allocationpublic void realPaint(java.awt.Graphics gg, java.awt.Shape a)
gg
- Graphics objecta
- allocationprivate boolean isRightAlign(javax.swing.text.Element elem)
elem
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |