EditableStyledDocument<PS,SEG,S>
, StyledDocument<PS,SEG,S>
, StyleSpans<S>
CodeArea
, GenericEditableStyledDocument
, GenericStyledArea
, InlineCssTextArea
, InlineCssTextField
, ReadOnlyStyledDocument
, SimpleEditableStyledDocument
, StyleClassedTextArea
, StyleClassedTextField
, StyledTextArea
, StyledTextField
, TwoLevelNavigator
public interface TwoDimensional
There are two basic kinds of two dimensional objects.
List<List<Object>>
. The major
dimension's value indicates the index of
the "inner list" within the "outer list" while the minor
dimension's value indicates the index
of the object within an "inner list."
List<ObjectWithLengthMethod
as in List<String>
. The major
dimension's value indicates the index within the list while the minor
dimension's value
indicates how far into that length-object a position is (e.g. how many characters into a String
is a position).
Not all two dimensional objects are rectangular, so the valid values of the minor dimension depends on the major dimension.
Modifier and Type | Interface | Description |
---|---|---|
static class |
TwoDimensional.Bias |
Determines whether to add 1 when the end of an inner list is reached
|
static interface |
TwoDimensional.Position |
A two dimensional position, with a major offset (such as a paragraph index within a document)
and a minor dimension (such as a segment index or column position within a paragraph).
|
Modifier and Type | Method | Description |
---|---|---|
TwoDimensional.Position |
offsetToPosition(int offset,
TwoDimensional.Bias bias) |
Creates a two dimensional position in some entity (e.g.
|
TwoDimensional.Position |
position(int major,
int minor) |
Creates a two dimensional position in some entity (e.g.
|
TwoDimensional.Position position(int major, int minor)
major
value is the index within the outer list) and the minor
value is either the index within the inner list or some amount of length in a list of objects that have length.TwoDimensional.Position offsetToPosition(int offset, TwoDimensional.Bias bias)
offset
value is an absolute position in that entity.