org.allcolor.yahp.cl.converter.swing
Class CSwingHtmlRenderer.CInlineView

java.lang.Object
  extended by javax.swing.text.View
      extended by javax.swing.text.GlyphView
          extended by javax.swing.text.LabelView
              extended by javax.swing.text.html.InlineView
                  extended by org.allcolor.yahp.cl.converter.swing.CSwingHtmlRenderer.CInlineView
All Implemented Interfaces:
java.lang.Cloneable, javax.swing.SwingConstants, javax.swing.text.TabableView
Enclosing class:
CSwingHtmlRenderer

public static class CSwingHtmlRenderer.CInlineView
extends javax.swing.text.html.InlineView

This class extends InlineView and prevent text to be painted while painting root container, thus letting YaHP calculates correct page cutting.

Version:
v0.98
Author:
Quentin Anciaux

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

CSwingHtmlRenderer.CInlineView

public CSwingHtmlRenderer.CInlineView(javax.swing.text.Element elem)
Creates a new CInlineView object.

Parameters:
elem - The html swing element representing the text node
Method Detail

paint

public void paint(java.awt.Graphics g,
                  java.awt.Shape a)
do not paint

Overrides:
paint in class javax.swing.text.GlyphView
Parameters:
g - Graphics object
a - allocation

realPaint

public void realPaint(java.awt.Graphics gg,
                      java.awt.Shape a)
Real painting method

Parameters:
gg - Graphics object
a - allocation

isRightAlign

private boolean isRightAlign(javax.swing.text.Element elem)
DOCUMENT ME!

Parameters:
elem - DOCUMENT ME!
Returns:
DOCUMENT ME!