edu.northwestern.at.utils.swing
Class JustifiableTextFlowStrategy
java.lang.Object
javax.swing.text.FlowView.FlowStrategy
edu.northwestern.at.utils.swing.JustifiableTextFlowStrategy
public class JustifiableTextFlowStrategy
- extends javax.swing.text.FlowView.FlowStrategy
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 |
JustifiableTextFlowStrategy
public JustifiableTextFlowStrategy()
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)