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

java.lang.Object
  extended by javax.swing.text.View
      extended by org.allcolor.yahp.cl.converter.swing.CSwingHtmlRenderer.CView
All Implemented Interfaces:
javax.swing.SwingConstants
Enclosing class:
CSwingHtmlRenderer

public static class CSwingHtmlRenderer.CView
extends javax.swing.text.View

DOCUMENT ME!

Version:
0.98
Author:
Quentin Anciaux

Field Summary
(package private)  javax.swing.text.View delegate
          DOCUMENT ME!
 
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.CView(javax.swing.text.View delegate, javax.swing.text.Element elem)
          Creates a new CView object.
 
Method Summary
 void append(javax.swing.text.View v)
          DOCUMENT ME!
 javax.swing.text.View breakView(int axis, int offset, float pos, float len)
          DOCUMENT ME!
 void changedUpdate(javax.swing.event.DocumentEvent e, java.awt.Shape a, javax.swing.text.ViewFactory f)
          DOCUMENT ME!
 javax.swing.text.View createFragment(int p0, int p1)
          DOCUMENT ME!
 boolean equals(java.lang.Object obj)
          DOCUMENT ME!
 float getAlignment(int axis)
          DOCUMENT ME!
 javax.swing.text.AttributeSet getAttributes()
          DOCUMENT ME!
 int getBreakWeight(int axis, float pos, float len)
          DOCUMENT ME!
 java.awt.Shape getChildAllocation(int index, java.awt.Shape a)
          DOCUMENT ME!
 java.awt.Container getContainer()
          DOCUMENT ME!
 java.lang.Class getDelegateClass()
          DOCUMENT ME!
 javax.swing.text.Document getDocument()
          DOCUMENT ME!
 javax.swing.text.Element getElement()
          DOCUMENT ME!
 int getEndOffset()
          DOCUMENT ME!
 java.awt.Graphics getGraphics()
          DOCUMENT ME!
private  java.lang.String getHeight()
           
 float getMaximumSpan(int axis)
          DOCUMENT ME!
 float getMinimumSpan(int axis)
          DOCUMENT ME!
 int getNextVisualPositionFrom(int pos, javax.swing.text.Position.Bias b, java.awt.Shape a, int direction, javax.swing.text.Position.Bias[] biasRet)
          DOCUMENT ME!
 javax.swing.text.View getParent()
          DOCUMENT ME!
 float getPreferredSpan(int axis)
          DOCUMENT ME!
 int getResizeWeight(int axis)
          DOCUMENT ME!
 int getStartOffset()
          DOCUMENT ME!
 java.lang.String getToolTipText(float x, float y, java.awt.Shape allocation)
          DOCUMENT ME!
 javax.swing.text.View getView(int n)
          DOCUMENT ME!
 int getViewCount()
          DOCUMENT ME!
 javax.swing.text.ViewFactory getViewFactory()
          DOCUMENT ME!
 int getViewIndex(float x, float y, java.awt.Shape allocation)
          DOCUMENT ME!
 int getViewIndex(int pos, javax.swing.text.Position.Bias b)
          DOCUMENT ME!
private  java.lang.String getWidth()
           
 int hashCode()
          DOCUMENT ME!
 void insert(int offs, javax.swing.text.View v)
          DOCUMENT ME!
 void insertUpdate(javax.swing.event.DocumentEvent e, java.awt.Shape a, javax.swing.text.ViewFactory f)
          DOCUMENT ME!
 boolean isVisible()
          DOCUMENT ME!
 java.awt.Shape modelToView(int p0, javax.swing.text.Position.Bias b0, int p1, javax.swing.text.Position.Bias b1, java.awt.Shape a)
          DOCUMENT ME!
 java.awt.Shape modelToView(int pos, java.awt.Shape a)
          DOCUMENT ME!
 java.awt.Shape modelToView(int pos, java.awt.Shape a, javax.swing.text.Position.Bias b)
          DOCUMENT ME!
 void paint(java.awt.Graphics g, java.awt.Shape allocation)
          DOCUMENT ME!
 void preferenceChanged(javax.swing.text.View child, boolean width, boolean height)
          DOCUMENT ME!
 void realPaint(java.awt.Graphics g, java.awt.Shape allocation)
          DOCUMENT ME!
 void remove(int i)
          DOCUMENT ME!
 void removeAll()
          DOCUMENT ME!
 void removeUpdate(javax.swing.event.DocumentEvent e, java.awt.Shape a, javax.swing.text.ViewFactory f)
          DOCUMENT ME!
 void replace(int offset, int length, javax.swing.text.View[] views)
          DOCUMENT ME!
 void setParent(javax.swing.text.View parent)
          DOCUMENT ME!
 void setSize(float width, float height)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
 int viewToModel(float x, float y, java.awt.Shape a)
          DOCUMENT ME!
 int viewToModel(float x, float y, java.awt.Shape a, javax.swing.text.Position.Bias[] biasReturn)
          DOCUMENT ME!
 
Methods inherited from class javax.swing.text.View
forwardUpdate, forwardUpdateToView, updateChildren, updateLayout
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

delegate

javax.swing.text.View delegate
DOCUMENT ME!

Constructor Detail

CSwingHtmlRenderer.CView

public CSwingHtmlRenderer.CView(javax.swing.text.View delegate,
                                javax.swing.text.Element elem)
Creates a new CView object.

Parameters:
delegate - DOCUMENT ME!
elem - DOCUMENT ME!
Method Detail

append

public void append(javax.swing.text.View v)
DOCUMENT ME!

Overrides:
append in class javax.swing.text.View
Parameters:
v - DOCUMENT ME!

breakView

public javax.swing.text.View breakView(int axis,
                                       int offset,
                                       float pos,
                                       float len)
DOCUMENT ME!

Overrides:
breakView in class javax.swing.text.View
Parameters:
axis - DOCUMENT ME!
offset - DOCUMENT ME!
pos - DOCUMENT ME!
len - DOCUMENT ME!
Returns:
DOCUMENT ME!

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent e,
                          java.awt.Shape a,
                          javax.swing.text.ViewFactory f)
DOCUMENT ME!

Overrides:
changedUpdate in class javax.swing.text.View
Parameters:
e - DOCUMENT ME!
a - DOCUMENT ME!
f - DOCUMENT ME!

createFragment

public javax.swing.text.View createFragment(int p0,
                                            int p1)
DOCUMENT ME!

Overrides:
createFragment in class javax.swing.text.View
Parameters:
p0 - DOCUMENT ME!
p1 - DOCUMENT ME!
Returns:
DOCUMENT ME!

equals

public boolean equals(java.lang.Object obj)
DOCUMENT ME!

Overrides:
equals in class java.lang.Object
Parameters:
obj - DOCUMENT ME!
Returns:
DOCUMENT ME!

getAlignment

public float getAlignment(int axis)
DOCUMENT ME!

Overrides:
getAlignment in class javax.swing.text.View
Parameters:
axis - DOCUMENT ME!
Returns:
DOCUMENT ME!

getAttributes

public javax.swing.text.AttributeSet getAttributes()
DOCUMENT ME!

Overrides:
getAttributes in class javax.swing.text.View
Returns:
DOCUMENT ME!

getBreakWeight

public int getBreakWeight(int axis,
                          float pos,
                          float len)
DOCUMENT ME!

Overrides:
getBreakWeight in class javax.swing.text.View
Parameters:
axis - DOCUMENT ME!
pos - DOCUMENT ME!
len - DOCUMENT ME!
Returns:
DOCUMENT ME!

getChildAllocation

public java.awt.Shape getChildAllocation(int index,
                                         java.awt.Shape a)
DOCUMENT ME!

Overrides:
getChildAllocation in class javax.swing.text.View
Parameters:
index - DOCUMENT ME!
a - DOCUMENT ME!
Returns:
DOCUMENT ME!

getContainer

public java.awt.Container getContainer()
DOCUMENT ME!

Overrides:
getContainer in class javax.swing.text.View
Returns:
DOCUMENT ME!

getDelegateClass

public java.lang.Class getDelegateClass()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getDocument

public javax.swing.text.Document getDocument()
DOCUMENT ME!

Overrides:
getDocument in class javax.swing.text.View
Returns:
DOCUMENT ME!

getElement

public javax.swing.text.Element getElement()
DOCUMENT ME!

Overrides:
getElement in class javax.swing.text.View
Returns:
DOCUMENT ME!

getEndOffset

public int getEndOffset()
DOCUMENT ME!

Overrides:
getEndOffset in class javax.swing.text.View
Returns:
DOCUMENT ME!

getGraphics

public java.awt.Graphics getGraphics()
DOCUMENT ME!

Overrides:
getGraphics in class javax.swing.text.View
Returns:
DOCUMENT ME!

getHeight

private java.lang.String getHeight()

getMaximumSpan

public float getMaximumSpan(int axis)
DOCUMENT ME!

Overrides:
getMaximumSpan in class javax.swing.text.View
Parameters:
axis - DOCUMENT ME!
Returns:
DOCUMENT ME!

getMinimumSpan

public float getMinimumSpan(int axis)
DOCUMENT ME!

Overrides:
getMinimumSpan in class javax.swing.text.View
Parameters:
axis - DOCUMENT ME!
Returns:
DOCUMENT ME!

getNextVisualPositionFrom

public int getNextVisualPositionFrom(int pos,
                                     javax.swing.text.Position.Bias b,
                                     java.awt.Shape a,
                                     int direction,
                                     javax.swing.text.Position.Bias[] biasRet)
                              throws javax.swing.text.BadLocationException
DOCUMENT ME!

Overrides:
getNextVisualPositionFrom in class javax.swing.text.View
Parameters:
pos - DOCUMENT ME!
b - DOCUMENT ME!
a - DOCUMENT ME!
direction - DOCUMENT ME!
biasRet - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
javax.swing.text.BadLocationException - DOCUMENT ME!

getParent

public javax.swing.text.View getParent()
DOCUMENT ME!

Overrides:
getParent in class javax.swing.text.View
Returns:
DOCUMENT ME!

getPreferredSpan

public float getPreferredSpan(int axis)
DOCUMENT ME!

Specified by:
getPreferredSpan in class javax.swing.text.View
Parameters:
axis - DOCUMENT ME!
Returns:
DOCUMENT ME!

getResizeWeight

public int getResizeWeight(int axis)
DOCUMENT ME!

Overrides:
getResizeWeight in class javax.swing.text.View
Parameters:
axis - DOCUMENT ME!
Returns:
DOCUMENT ME!

getStartOffset

public int getStartOffset()
DOCUMENT ME!

Overrides:
getStartOffset in class javax.swing.text.View
Returns:
DOCUMENT ME!

getToolTipText

public java.lang.String getToolTipText(float x,
                                       float y,
                                       java.awt.Shape allocation)
DOCUMENT ME!

Overrides:
getToolTipText in class javax.swing.text.View
Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
allocation - DOCUMENT ME!
Returns:
DOCUMENT ME!

getView

public javax.swing.text.View getView(int n)
DOCUMENT ME!

Overrides:
getView in class javax.swing.text.View
Parameters:
n - DOCUMENT ME!
Returns:
DOCUMENT ME!

getViewCount

public int getViewCount()
DOCUMENT ME!

Overrides:
getViewCount in class javax.swing.text.View
Returns:
DOCUMENT ME!

getViewFactory

public javax.swing.text.ViewFactory getViewFactory()
DOCUMENT ME!

Overrides:
getViewFactory in class javax.swing.text.View
Returns:
DOCUMENT ME!

getViewIndex

public int getViewIndex(float x,
                        float y,
                        java.awt.Shape allocation)
DOCUMENT ME!

Overrides:
getViewIndex in class javax.swing.text.View
Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
allocation - DOCUMENT ME!
Returns:
DOCUMENT ME!

getViewIndex

public int getViewIndex(int pos,
                        javax.swing.text.Position.Bias b)
DOCUMENT ME!

Overrides:
getViewIndex in class javax.swing.text.View
Parameters:
pos - DOCUMENT ME!
b - DOCUMENT ME!
Returns:
DOCUMENT ME!

getWidth

private java.lang.String getWidth()

hashCode

public int hashCode()
DOCUMENT ME!

Overrides:
hashCode in class java.lang.Object
Returns:
DOCUMENT ME!

insert

public void insert(int offs,
                   javax.swing.text.View v)
DOCUMENT ME!

Overrides:
insert in class javax.swing.text.View
Parameters:
offs - DOCUMENT ME!
v - DOCUMENT ME!

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent e,
                         java.awt.Shape a,
                         javax.swing.text.ViewFactory f)
DOCUMENT ME!

Overrides:
insertUpdate in class javax.swing.text.View
Parameters:
e - DOCUMENT ME!
a - DOCUMENT ME!
f - DOCUMENT ME!

isVisible

public boolean isVisible()
DOCUMENT ME!

Overrides:
isVisible in class javax.swing.text.View
Returns:
DOCUMENT ME!

modelToView

public 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
DOCUMENT ME!

Overrides:
modelToView in class javax.swing.text.View
Parameters:
p0 - DOCUMENT ME!
b0 - DOCUMENT ME!
p1 - DOCUMENT ME!
b1 - DOCUMENT ME!
a - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
javax.swing.text.BadLocationException - DOCUMENT ME!

modelToView

public java.awt.Shape modelToView(int pos,
                                  java.awt.Shape a)
                           throws javax.swing.text.BadLocationException
DOCUMENT ME!

Overrides:
modelToView in class javax.swing.text.View
Parameters:
pos - DOCUMENT ME!
a - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
javax.swing.text.BadLocationException - DOCUMENT ME!

modelToView

public java.awt.Shape modelToView(int pos,
                                  java.awt.Shape a,
                                  javax.swing.text.Position.Bias b)
                           throws javax.swing.text.BadLocationException
DOCUMENT ME!

Specified by:
modelToView in class javax.swing.text.View
Parameters:
pos - DOCUMENT ME!
a - DOCUMENT ME!
b - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
javax.swing.text.BadLocationException - DOCUMENT ME!

paint

public void paint(java.awt.Graphics g,
                  java.awt.Shape allocation)
DOCUMENT ME!

Specified by:
paint in class javax.swing.text.View
Parameters:
g - DOCUMENT ME!
allocation - DOCUMENT ME!

preferenceChanged

public void preferenceChanged(javax.swing.text.View child,
                              boolean width,
                              boolean height)
DOCUMENT ME!

Overrides:
preferenceChanged in class javax.swing.text.View
Parameters:
child - DOCUMENT ME!
width - DOCUMENT ME!
height - DOCUMENT ME!

realPaint

public void realPaint(java.awt.Graphics g,
                      java.awt.Shape allocation)
DOCUMENT ME!

Parameters:
g - DOCUMENT ME!
allocation - DOCUMENT ME!

remove

public void remove(int i)
DOCUMENT ME!

Overrides:
remove in class javax.swing.text.View
Parameters:
i - DOCUMENT ME!

removeAll

public void removeAll()
DOCUMENT ME!

Overrides:
removeAll in class javax.swing.text.View

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent e,
                         java.awt.Shape a,
                         javax.swing.text.ViewFactory f)
DOCUMENT ME!

Overrides:
removeUpdate in class javax.swing.text.View
Parameters:
e - DOCUMENT ME!
a - DOCUMENT ME!
f - DOCUMENT ME!

replace

public void replace(int offset,
                    int length,
                    javax.swing.text.View[] views)
DOCUMENT ME!

Overrides:
replace in class javax.swing.text.View
Parameters:
offset - DOCUMENT ME!
length - DOCUMENT ME!
views - DOCUMENT ME!

setParent

public void setParent(javax.swing.text.View parent)
DOCUMENT ME!

Overrides:
setParent in class javax.swing.text.View
Parameters:
parent - DOCUMENT ME!

setSize

public void setSize(float width,
                    float height)
DOCUMENT ME!

Overrides:
setSize in class javax.swing.text.View
Parameters:
width - DOCUMENT ME!
height - DOCUMENT ME!

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!

viewToModel

public int viewToModel(float x,
                       float y,
                       java.awt.Shape a)
DOCUMENT ME!

Overrides:
viewToModel in class javax.swing.text.View
Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
a - DOCUMENT ME!
Returns:
DOCUMENT ME!

viewToModel

public int viewToModel(float x,
                       float y,
                       java.awt.Shape a,
                       javax.swing.text.Position.Bias[] biasReturn)
DOCUMENT ME!

Specified by:
viewToModel in class javax.swing.text.View
Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
a - DOCUMENT ME!
biasReturn - DOCUMENT ME!
Returns:
DOCUMENT ME!