javax.swing.text.html
Class TableView.RowIterator

java.lang.Object
  extended byjavax.swing.text.html.TableView.RowIterator
All Implemented Interfaces:
CSS.LayoutIterator
Enclosing class:
TableView

class TableView.RowIterator
extends Object
implements CSS.LayoutIterator


Field Summary
private  int[] adjustments
          Adjustments to the row requirements to handle multi-row table cells.
private  int[] offsets
           
private  int row
          Current row index
private  int[] spans
           
static int WorstAdjustmentWeight
           
 
Constructor Summary
(package private) TableView.RowIterator()
           
 
Method Summary
(package private)  void adjustMultiRowSpan(int spanNeeded, int nrows, int rowIndex)
          Fixup preferences to accomodate a multi-row table cell if not already covered by existing preferences.
 int getAdjustmentWeight()
           
 int getCount()
           
 float getLeadingCollapseSpan()
           
 float getMaximumSpan(float parentSpan)
           
 float getMinimumSpan(float parentSpan)
           
 int getOffset()
           
 float getPreferredSpan(float parentSpan)
           
 int getSpan()
           
 float getTrailingCollapseSpan()
           
 void setIndex(int i)
           
(package private)  void setLayoutArrays(int[] offsets, int[] spans)
           
 void setOffset(int offs)
           
 void setSpan(int span)
           
(package private)  void updateAdjustments()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

row

private int row
Current row index


adjustments

private int[] adjustments
Adjustments to the row requirements to handle multi-row table cells.


offsets

private int[] offsets

spans

private int[] spans

WorstAdjustmentWeight

public static final int WorstAdjustmentWeight
See Also:
Constant Field Values
Constructor Detail

TableView.RowIterator

TableView.RowIterator()
Method Detail

updateAdjustments

void updateAdjustments()

adjustMultiRowSpan

void adjustMultiRowSpan(int spanNeeded,
                        int nrows,
                        int rowIndex)
Fixup preferences to accomodate a multi-row table cell if not already covered by existing preferences. This is a no-op if not all of the rows needed (to do this check/fixup) have arrived yet.


setLayoutArrays

void setLayoutArrays(int[] offsets,
                     int[] spans)

setOffset

public void setOffset(int offs)
Specified by:
setOffset in interface CSS.LayoutIterator

getOffset

public int getOffset()
Specified by:
getOffset in interface CSS.LayoutIterator

setSpan

public void setSpan(int span)
Specified by:
setSpan in interface CSS.LayoutIterator

getSpan

public int getSpan()
Specified by:
getSpan in interface CSS.LayoutIterator

getCount

public int getCount()
Specified by:
getCount in interface CSS.LayoutIterator

setIndex

public void setIndex(int i)
Specified by:
setIndex in interface CSS.LayoutIterator

getMinimumSpan

public float getMinimumSpan(float parentSpan)
Specified by:
getMinimumSpan in interface CSS.LayoutIterator

getPreferredSpan

public float getPreferredSpan(float parentSpan)
Specified by:
getPreferredSpan in interface CSS.LayoutIterator

getMaximumSpan

public float getMaximumSpan(float parentSpan)
Specified by:
getMaximumSpan in interface CSS.LayoutIterator

getLeadingCollapseSpan

public float getLeadingCollapseSpan()
Specified by:
getLeadingCollapseSpan in interface CSS.LayoutIterator

getTrailingCollapseSpan

public float getTrailingCollapseSpan()
Specified by:
getTrailingCollapseSpan in interface CSS.LayoutIterator

getAdjustmentWeight

public int getAdjustmentWeight()
Specified by:
getAdjustmentWeight in interface CSS.LayoutIterator