|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.bio.structure.align.gui.aligpanel.AFPChainCoordManager
public class AFPChainCoordManager
Field Summary | |
---|---|
static int |
DEFAULT_CHAR_SIZE
size per character |
static int |
DEFAULT_LINE_LENGTH
number of chars per line |
static int |
DEFAULT_LINE_SEPARATION
separation of line 1 and 2 in 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 |
static int |
DEFAULT_Y_STEP
size of space between rows |
static int |
SUMMARY_POS
Position at which the alignment summary is printed |
Constructor Summary | |
---|---|
AFPChainCoordManager()
|
Method Summary | |
---|---|
int |
getAligSeq(Point point)
returns the AligSeq (0 or 1) for a point returns -1 if not over an alig seq. |
Point |
getEndLegendPosition(int lineNr,
int chainNr)
|
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 |
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,
Point p)
Convert from a X position in the JPanel to alignment position |
int |
getSummaryPos()
|
void |
setAFPChain(AFPChain afpChain)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_RIGHT_SPACER
public static final int DEFAULT_LINE_LENGTH
public static 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
Constructor Detail |
---|
public AFPChainCoordManager()
Method Detail |
---|
public int getSummaryPos()
public int getPreferredWidth()
public int getPreferredHeight()
public int getSeqPos(int aligSeq, Point p)
aligSeq
- sequence 0 or 1p
- point on panel
public Point getPanelPos(int aligSeq, int i)
aligSeq
- 0 or 1 for which of the two sequences to ask for.i
- sequence position
public void setAFPChain(AFPChain afpChain)
public int getAligSeq(Point point)
point
-
public Point getLegendPosition(int lineNr, int chainNr)
lineNr
- which line is this forchainNr
- is it chain 0 or 1
public Point getEndLegendPosition(int lineNr, int chainNr)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |