public final class RubySpan extends Object
The text covered by this span is known as the "base text", and the ruby text is stored in
rubyText
.
More information on ruby characters and span styling.
Modifier and Type | Class | Description |
---|---|---|
static interface |
RubySpan.Position |
The possible positions of the ruby text relative to the base text.
|
Modifier and Type | Field | Description |
---|---|---|
int |
position |
The position of the ruby text relative to the base text.
|
static int |
POSITION_OVER |
The ruby text should be positioned above the base text.
|
static int |
POSITION_UNDER |
The ruby text should be positioned below the base text.
|
static int |
POSITION_UNKNOWN |
The ruby position is unknown.
|
String |
rubyText |
The ruby text, i.e.
|
public static final int POSITION_UNKNOWN
public static final int POSITION_OVER
For vertical text it should be positioned to the right, same as CSS's ruby-position.
public static final int POSITION_UNDER
For vertical text it should be positioned to the left, same as CSS's ruby-position.
public final String rubyText
@Position public final int position