javax.swing.text.html
Class TableView.ColumnIterator

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

class TableView.ColumnIterator
extends Object
implements CSS.LayoutIterator


Field Summary
private  int[] adjustmentWeights
           
private  int col
          Current column index
private  int[] offsets
           
private  int[] percentages
          percentage values (may be null since there might not be any).
private  int[] spans
           
static int WorstAdjustmentWeight
           
 
Constructor Summary
(package private) TableView.ColumnIterator()
           
 
Method Summary
(package private)  void disablePercentages()
          Disable percentage adjustments which should only apply when calculating layout, not requirements.
 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)
           
 void setLayoutArrays(int[] offsets, int[] spans, int targetSpan)
          Set the layout arrays to use for holding layout results
 void setOffset(int offs)
           
 void setSpan(int span)
           
private  void updatePercentagesAndAdjustmentWeights(int span)
          Update percentage adjustments if they are needed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

col

private int col
Current column index


percentages

private int[] percentages
percentage values (may be null since there might not be any).


adjustmentWeights

private int[] adjustmentWeights

offsets

private int[] offsets

spans

private int[] spans

WorstAdjustmentWeight

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

TableView.ColumnIterator

TableView.ColumnIterator()
Method Detail

disablePercentages

void disablePercentages()
Disable percentage adjustments which should only apply when calculating layout, not requirements.


updatePercentagesAndAdjustmentWeights

private void updatePercentagesAndAdjustmentWeights(int span)
Update percentage adjustments if they are needed.


setLayoutArrays

public void setLayoutArrays(int[] offsets,
                            int[] spans,
                            int targetSpan)
Set the layout arrays to use for holding layout results


getCount

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

setIndex

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

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

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