com.jidesoft.margin
Class AbstractRowMarginSupport
java.lang.Object
com.jidesoft.margin.AbstractMarginSupport
com.jidesoft.margin.AbstractRowMarginSupport
- All Implemented Interfaces:
- MarginSupport, RowMarginSupport
- Direct Known Subclasses:
- ListRowMarginSupport, TableRowMarginSupport, TextAreaRowMarginSupport, TreeRowMarginSupport
public abstract class AbstractRowMarginSupport
- extends AbstractMarginSupport
- implements RowMarginSupport
Abstract implementation of RowMarginSupport.
Method Summary |
int |
actualRowToVisualRow(int actualRow)
Converts the actual row index as in the model to the visual row index as in the view. |
int |
getBaselineAdjustment()
Gets the baseline adjustment so that the text on the margin aligns properly with the text on the component. |
int |
visualRowToActualRow(int visualRow)
Converts the visual row index as in the view to the actual row index as in the model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRowMarginSupport
public AbstractRowMarginSupport(JScrollPane scrollPane)
visualRowToActualRow
public int visualRowToActualRow(int visualRow)
- Description copied from interface:
RowMarginSupport
- Converts the visual row index as in the view to the actual row index as in the model.
- Specified by:
visualRowToActualRow
in interface RowMarginSupport
- Parameters:
visualRow
- the visual row index in the view.
- Returns:
- the actual row index in the model.
actualRowToVisualRow
public int actualRowToVisualRow(int actualRow)
- Description copied from interface:
RowMarginSupport
- Converts the actual row index as in the model to the visual row index as in the view.
- Specified by:
actualRowToVisualRow
in interface RowMarginSupport
- Parameters:
actualRow
- the actual row index as in the model.
- Returns:
- the visual row index in the view.
getBaselineAdjustment
public int getBaselineAdjustment()
- Description copied from interface:
RowMarginSupport
- Gets the baseline adjustment so that the text on the margin aligns properly with the text on the component. You
can override it to adjust the value if you notice the texts don't align.
- Specified by:
getBaselineAdjustment
in interface RowMarginSupport
- Returns:
- the baseline adjustment.