danger.text.span
Class BaselineShiftSpan.Superscript
java.lang.Object
danger.text.span.BaselineShiftSpan.Superscript
- All Implemented Interfaces:
- BaselineShiftSpan, CharacterHeightAffectingSpan, CharacterSpan, MetricAffectingSpan
- Enclosing interface:
- BaselineShiftSpan
public static class BaselineShiftSpan.Superscript
- extends Object
- implements BaselineShiftSpan
Standard implementation of BaselineShiftSpan to create superscript text.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaselineShiftSpan.Superscript
public BaselineShiftSpan.Superscript()
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