danger.text.span
Class AlignmentSpan.Standard
java.lang.Object
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.
|
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 |
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
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