private static class NewFileWindow.StructItem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BP |
static int |
DOT |
static int |
ERROR |
static int |
HELIX |
(package private) int |
len |
(package private) int |
pos1 |
(package private) int |
pos2 |
(package private) int |
seq1 |
(package private) int |
seq2 |
(package private) int |
type |
Modifier | Constructor and Description |
---|---|
private |
StructItem(int type,
int pos1,
int pos2) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsBase(int baseIndex)
Returns true if this helix element the nucleobase as the given index.
|
static NewFileWindow.StructItem |
Dot(int seqPos,
int charPos) |
static NewFileWindow.StructItem |
Error(int charPos) |
static NewFileWindow.StructItem |
Error(int charPos1,
int charPos2) |
int |
getBase(int positionInHelix)
Returns the sequence-index of the 5'-base at the 0-based position in this helix
|
int |
getPair(int baseIndex)
Returns -1 if the given index does not belong to this structure element or if it is not paired.
|
int |
getTextRegion(int[] regions)
A client calls with with an already-created array of integers.
|
static NewFileWindow.StructItem |
Helix(int seq1,
int seq2,
int len,
int pos1,
int pos2) |
(package private) boolean |
isSelected(int selStart,
int selEnd)
Returns true if the selection falls inside the element and NOT beyond it.
|
static NewFileWindow.StructItem |
Pair(int seq1,
int seq2,
int pos1,
int pos2) |
int |
pairCount() |
public static final int BP
public static final int DOT
public static final int ERROR
public static final int HELIX
int len
final int pos1
final int pos2
int seq1
int seq2
final int type
public boolean containsBase(int baseIndex)
public static NewFileWindow.StructItem Dot(int seqPos, int charPos)
public static NewFileWindow.StructItem Error(int charPos)
public static NewFileWindow.StructItem Error(int charPos1, int charPos2)
public int getBase(int positionInHelix)
public int getPair(int baseIndex)
public int getTextRegion(int[] regions)
regions
- an already-instantiated array of integers to receive the text regions.public static NewFileWindow.StructItem Helix(int seq1, int seq2, int len, int pos1, int pos2)
boolean isSelected(int selStart, int selEnd)
public static NewFileWindow.StructItem Pair(int seq1, int seq2, int pos1, int pos2)
public int pairCount()