danger.text.span
Class BaselineShiftSpan.Superscript

java.lang.Object
  extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface danger.text.span.BaselineShiftSpan
BaselineShiftSpan.Standard, BaselineShiftSpan.Subscript, BaselineShiftSpan.Superscript
 
Field Summary
 
Fields inherited from interface danger.text.span.CharacterHeightAffectingSpan
CHARACTER_HEIGHT_AFFECTING_SPAN_TYPE
 
Constructor Summary
BaselineShiftSpan.Superscript()
           
 
Method Summary
 int getBaselineShift(Font f)
          Return the baseline shift associated with this span.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaselineShiftSpan.Superscript

public BaselineShiftSpan.Superscript()
Method Detail

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