danger.text.span
Class AlignmentSpan.Standard

java.lang.Object
  extended by danger.text.span.AlignmentSpan.Standard
All Implemented Interfaces:
AlignmentSpan, MetricAffectingSpan, ParagraphSpan
Enclosing interface:
AlignmentSpan


public static class AlignmentSpan.Standard
extends Object
implements AlignmentSpan

Standard implementation of AlignmentSpan, which changes the alignment of the text that it covers.


Nested Class Summary
 
Nested classes/interfaces inherited from interface danger.text.span.AlignmentSpan
AlignmentSpan.Standard
 
Nested classes/interfaces inherited from interface danger.text.span.ParagraphSpan
ParagraphSpan.Set
 
Field Summary
 
Fields inherited from interface danger.text.span.AlignmentSpan
ALIGNMENT_SPAN_TYPE
 
Fields inherited from interface danger.text.span.ParagraphSpan
PARAGRAPH_SPAN_TYPE
 
Constructor Summary
AlignmentSpan.Standard(int alignment)
          Create a new standard AlignmentSpan with the specified alignment.
 
Method Summary
 int getAlignment()
          Return the alignment associated with this span.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlignmentSpan.Standard

public AlignmentSpan.Standard(int alignment)
Create a new standard AlignmentSpan with the specified alignment. Acceptable arguments are WrappedText.JUSTIFY_LEFT, WrappedText.JUSTIFY_CENTER, and WrappedText.JUSTIFY_RIGHT

Method Detail

getAlignment

public int getAlignment()
Description copied from interface: AlignmentSpan
Return the alignment associated with this span. Return values should be WrappedText.JUSTIFY_LEFT, WrappedText.JUSTIFY_CENTER, or WrappedText.JUSTIFY_RIGHT

Specified by:
getAlignment in interface AlignmentSpan