danger.text.span
Class BaselineShiftSpan.Subscript
java.lang.Object
danger.text.span.BaselineShiftSpan.Subscript
- All Implemented Interfaces:
- BaselineShiftSpan, CharacterHeightAffectingSpan, CharacterSpan, MetricAffectingSpan
- Enclosing interface:
- BaselineShiftSpan
public static class BaselineShiftSpan.Subscript
- extends Object
- implements BaselineShiftSpan
Standard implementation of BaselineShiftSpan to create subscript text.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaselineShiftSpan.Subscript
public BaselineShiftSpan.Subscript()
getBaselineShift
public int getBaselineShift(Font f)
- Description copied from interface:
BaselineShiftSpan
- Return the baseline shift associated with this span.
Negative numbers move the baseline upward; positive numbers
move it downward. The font argument is provided so that
implementations can return shifts relative to the metrics
of the affected text.
- Specified by:
getBaselineShift in interface BaselineShiftSpan