Class AFPChainCoordManager
java.lang.Object
org.biojava.nbio.structure.align.gui.aligpanel.AFPChainCoordManager
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
size per characterstatic final int
number of chars per linestatic final int
separation of line 1 and 2 in alignmentstatic final int
Space on the right side between sequence and legend.static final int
left boundarystatic final int
top boundarystatic final int
size of space between rowsstatic final int
Position at which the alignment summary is printed -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getAligSeq
(Point point) returns the AligSeq (0 or 1) for a point returns -1 if not over an alig seq.getEndLegendPosition
(int lineNr, int chainNr) getLegendPosition
(int lineNr, int chainNr) provide the coordinates for where to draw the legend for line X and if it is chain 1 or 2getPanelPos
(int aligSeq, int i) get the position of the sequence position on the Panelint
Y coordinate sizeint
X coordinate sizeint
Convert from a X position in the JPanel to alignment positionint
void
setAFPChain
(AFPChain afpChain)
-
Field Details
-
DEFAULT_RIGHT_SPACER
Space on the right side between sequence and legend.- See Also:
-
DEFAULT_LINE_LENGTH
number of chars per line- See Also:
-
DEFAULT_Y_STEP
size of space between rows- See Also:
-
DEFAULT_CHAR_SIZE
size per character- See Also:
-
DEFAULT_LINE_SEPARATION
separation of line 1 and 2 in alignment- See Also:
-
DEFAULT_X_SPACE
left boundary- See Also:
-
DEFAULT_Y_SPACE
top boundary- See Also:
-
SUMMARY_POS
Position at which the alignment summary is printed- See Also:
-
-
Constructor Details
-
AFPChainCoordManager
public AFPChainCoordManager()
-
-
Method Details
-
getSummaryPos
-
getPreferredWidth
X coordinate size- Returns:
- the preferred width
-
getPreferredHeight
Y coordinate size- Returns:
- the preferred height
-
getSeqPos
Convert from a X position in the JPanel to alignment position- Parameters:
aligSeq
- sequence 0 or 1p
- point on panel- Returns:
- the sequence position for a point on the Panel
-
getPanelPos
get the position of the sequence position on the Panel- Parameters:
aligSeq
- 0 or 1 for which of the two sequences to ask for.i
- sequence position- Returns:
- the point on a panel for a sequence position
-
setAFPChain
-
getAligSeq
returns the AligSeq (0 or 1) for a point returns -1 if not over an alig seq.- Parameters:
point
-- Returns:
- which of the two sequences a point on the panel corresponds to
-
getLegendPosition
provide the coordinates for where to draw the legend for line X and if it is chain 1 or 2- Parameters:
lineNr
- which line is this forchainNr
- is it chain 0 or 1- Returns:
- get the point where to draw the legend
-
getEndLegendPosition
-