static class HTMLHelper.Renderer
extends javax.swing.text.View
| Modifier and Type | Field and Description | 
|---|---|
(package private) static javax.swing.JTextPane | 
CONTAINER  | 
| Constructor and Description | 
|---|
Renderer(javax.swing.text.ViewFactory f,
        javax.swing.text.View v)  | 
| Modifier and Type | Method and Description | 
|---|---|
float | 
getAlignment(int axis)
Determines the desired alignment for this view along an axis. 
 | 
javax.swing.text.AttributeSet | 
getAttributes()
Fetches the attributes to use when rendering. 
 | 
java.awt.Container | 
getContainer()
Fetches the container hosting the view. 
 | 
javax.swing.text.Document | 
getDocument()
Returns the document model underlying the view. 
 | 
javax.swing.text.Element | 
getElement()
Gets the element that this view is mapped to. 
 | 
int | 
getEndOffset()
Returns the ending offset into the model for this view. 
 | 
float | 
getMaximumSpan(int axis)
Determines the maximum span for this view along an axis. 
 | 
float | 
getMinimumSpan(int axis)
Determines the minimum span for this view along an axis. 
 | 
float | 
getPreferredSpan(int axis)
Determines the preferred span for this view along an axis. 
 | 
int | 
getStartOffset()
Returns the starting offset into the model for this view. 
 | 
javax.swing.text.View | 
getView(int n)
Gets the n-th view in this container. 
 | 
int | 
getViewCount()
Returns the number of views in this view. 
 | 
javax.swing.text.ViewFactory | 
getViewFactory()
Fetches the factory to be used for building the
 various view fragments that make up the view that
 represents the model. 
 | 
java.awt.Shape | 
modelToView(int p0,
           javax.swing.text.Position.Bias b0,
           int p1,
           javax.swing.text.Position.Bias b1,
           java.awt.Shape a)
Provides a mapping from the document model coordinate space
 to the coordinate space of the view mapped to it. 
 | 
java.awt.Shape | 
modelToView(int pos,
           java.awt.Shape a,
           javax.swing.text.Position.Bias b)
Provides a mapping from the document model coordinate space
 to the coordinate space of the view mapped to it. 
 | 
void | 
paint(java.awt.Graphics g,
     java.awt.Shape allocation)
Renders the view. 
 | 
void | 
preferenceChanged(javax.swing.text.View child,
                 boolean width,
                 boolean height)
Specifies that a preference has changed. 
 | 
void | 
setParent(javax.swing.text.View parent)
Sets the view parent. 
 | 
void | 
setSize(float width,
       float height)
Sets the view size. 
 | 
int | 
viewToModel(float x,
           float y,
           java.awt.Shape a,
           javax.swing.text.Position.Bias[] bias)
Provides a mapping from the view coordinate space to the logical
 coordinate space of the model. 
 | 
append, breakView, changedUpdate, createFragment, forwardUpdate, forwardUpdateToView, getBreakWeight, getChildAllocation, getGraphics, getNextVisualPositionFrom, getParent, getResizeWeight, getToolTipText, getViewIndex, getViewIndex, insert, insertUpdate, isVisible, modelToView, remove, removeAll, removeUpdate, replace, updateChildren, updateLayout, viewToModel@CheckForNull public javax.swing.text.AttributeSet getAttributes()
getAttributes in class javax.swing.text.Viewpublic float getPreferredSpan(int axis)
getPreferredSpan in class javax.swing.text.Viewaxis - may be either X_AXIS or Y_AXISpublic float getMinimumSpan(int axis)
getMinimumSpan in class javax.swing.text.Viewaxis - may be either X_AXIS or Y_AXISpublic float getMaximumSpan(int axis)
getMaximumSpan in class javax.swing.text.Viewaxis - may be either X_AXIS or Y_AXISpublic void preferenceChanged(javax.swing.text.View child,
                              boolean width,
                              boolean height)
preferenceChanged in class javax.swing.text.Viewchild - the child viewwidth - true if the width preference has changedheight - true if the height preference has changedpublic float getAlignment(int axis)
getAlignment in class javax.swing.text.Viewaxis - may be either X_AXIS or Y_AXISpublic void paint(java.awt.Graphics g,
                  java.awt.Shape allocation)
paint in class javax.swing.text.Viewg - the graphics contextallocation - the region to render intopublic void setParent(javax.swing.text.View parent)
setParent in class javax.swing.text.Viewparent - the parent viewpublic int getViewCount()
getViewCount in class javax.swing.text.ViewgetView(int)public javax.swing.text.View getView(int n)
getView in class javax.swing.text.Viewn - the number of the view to getpublic java.awt.Shape modelToView(int pos,
                                  java.awt.Shape a,
                                  javax.swing.text.Position.Bias b)
                           throws javax.swing.text.BadLocationException
modelToView in class javax.swing.text.Viewpos - the position to converta - the allocated region to render intojavax.swing.text.BadLocationExceptionpublic java.awt.Shape modelToView(int p0,
                                  javax.swing.text.Position.Bias b0,
                                  int p1,
                                  javax.swing.text.Position.Bias b1,
                                  java.awt.Shape a)
                           throws javax.swing.text.BadLocationException
modelToView in class javax.swing.text.Viewp0 - the position to convert >= 0b0 - the bias toward the previous character or the
           next character represented by p0, in case the
           position is a boundary of two views.p1 - the position to convert >= 0b1 - the bias toward the previous character or the
           next character represented by p1, in case the
           position is a boundary of two views.a - the allocated region to render intojavax.swing.text.BadLocationException - if the given position does
                                  not represent a valid location in the associated documentjava.lang.IllegalArgumentException - for an invalid bias argumentView.viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])public int viewToModel(float x,
                       float y,
                       java.awt.Shape a,
                       javax.swing.text.Position.Bias[] bias)
viewToModel in class javax.swing.text.Viewx - x coordinate of the view location to converty - y coordinate of the view location to converta - the allocated region to render intopublic javax.swing.text.Document getDocument()
getDocument in class javax.swing.text.Viewpublic int getStartOffset()
getStartOffset in class javax.swing.text.Viewpublic int getEndOffset()
getEndOffset in class javax.swing.text.Viewpublic javax.swing.text.Element getElement()
getElement in class javax.swing.text.Viewpublic void setSize(float width,
                    float height)
setSize in class javax.swing.text.Viewwidth - the widthheight - the heightpublic java.awt.Container getContainer()
getContainer in class javax.swing.text.Viewpublic javax.swing.text.ViewFactory getViewFactory()
getViewFactory in class javax.swing.text.View