edu.northwestern.at.utils.swing
Class JustifiableTextFlowStrategy

java.lang.Object
  extended by javax.swing.text.FlowView.FlowStrategy
      extended by edu.northwestern.at.utils.swing.JustifiableTextFlowStrategy

public class JustifiableTextFlowStrategy
extends javax.swing.text.FlowView.FlowStrategy


Constructor Summary
JustifiableTextFlowStrategy()
           
 
Method Summary
protected static int getSpaceCount(java.lang.String content)
           
protected static int[] getSpaceIndexes(java.lang.String content, int shift)
           
 void layout(javax.swing.text.FlowView fv)
           
protected  void restructureRow(javax.swing.text.View row, int rowNum)
           
 
Methods inherited from class javax.swing.text.FlowView.FlowStrategy
adjustRow, changedUpdate, createView, getLogicalView, insertUpdate, layoutRow, removeUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JustifiableTextFlowStrategy

public JustifiableTextFlowStrategy()
Method Detail

layout

public void layout(javax.swing.text.FlowView fv)
Overrides:
layout in class javax.swing.text.FlowView.FlowStrategy

restructureRow

protected void restructureRow(javax.swing.text.View row,
                              int rowNum)

getSpaceCount

protected static int getSpaceCount(java.lang.String content)

getSpaceIndexes

protected static int[] getSpaceIndexes(java.lang.String content,
                                       int shift)