public class MultipleAlignmentCoordManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CHAR_SIZE
size per character
|
static int |
DEFAULT_LINE_LENGTH
number of chars per line
|
static int |
DEFAULT_LINE_SEPARATION
separation between sequences in the alignment
|
static int |
DEFAULT_RIGHT_SPACER
Space on the right side between sequence and legend.
|
static int |
DEFAULT_X_SPACE
left boundary
|
static int |
DEFAULT_Y_SPACE
top boundary
|
int |
DEFAULT_Y_STEP
size of space between rows
|
static int |
SUMMARY_POS
Position at which the alignment summary is printed
|
Constructor and Description |
---|
MultipleAlignmentCoordManager(int size,
int length)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getAligSeq(java.awt.Point point)
Returns the AligSeq, the sequence number (structure), for a given point in the Panel
Returns -1 if not over a position in the sequence alignment.
|
java.awt.Point |
getEndLegendPosition(int lineNr,
int chainNr) |
java.awt.Point |
getLegendPosition(int lineNr,
int chainNr)
Provide the coordinates for where to draw the legend for line X and if it is chain 1 or 2
|
java.awt.Point |
getPanelPos(int aligSeq,
int i)
get the position of the sequence position on the Panel
|
int |
getPreferredHeight()
Y coordinate size
|
int |
getPreferredWidth()
X coordinate size
|
int |
getSeqPos(int aligSeq,
java.awt.Point p)
Convert from a X position in the JPanel to alignment position
|
int |
getSummaryPos() |
public static final int DEFAULT_RIGHT_SPACER
public static final int DEFAULT_LINE_LENGTH
public final int DEFAULT_Y_STEP
public static final int DEFAULT_CHAR_SIZE
public static final int DEFAULT_LINE_SEPARATION
public static final int DEFAULT_X_SPACE
public static final int DEFAULT_Y_SPACE
public static final int SUMMARY_POS
public MultipleAlignmentCoordManager(int size, int length)
size
- number of structures/sequences aligned (rows).length
- number of aligned residues (columns)public int getSummaryPos()
public int getPreferredWidth()
public int getPreferredHeight()
public int getSeqPos(int aligSeq, java.awt.Point p)
aligSeq
- sequence numberp
- point on panelpublic java.awt.Point getPanelPos(int aligSeq, int i)
aligSeq
- number of the sequence to ask for.i
- sequence positionpublic int getAligSeq(java.awt.Point point)
point
- public java.awt.Point getLegendPosition(int lineNr, int chainNr)
lineNr
- which line is this forchainNr
- the structure indexpublic java.awt.Point getEndLegendPosition(int lineNr, int chainNr)