|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.strbio.util.ui.ProteinTools
public class ProteinTools
This contains a set of static routines for drawing information about Proteins into Graphics objects.
Version 1.0, 7/9/99 - original version, modified from Pred2ary 1.31
Constructor Summary | |
---|---|
ProteinTools()
|
Method Summary | |
---|---|
static void |
draw2aryStructure(java.awt.Graphics g,
int drawX,
int drawY,
int fontWidth,
int fontHeight,
int fontLeading,
Protein pr,
int startRes,
int n)
This draws a line of letters showing the actual 2ary structure of a protein, from residue startRes (expressed in the protein's internal numbering scheme; 0 = first residue, etc). |
static void |
drawAxes(java.awt.Graphics g,
int drawX,
int drawY,
int fontWidth,
int n)
This draws a set of axes for a graph. |
static void |
drawGraph(java.awt.Graphics g,
int drawX,
int drawY,
int fontWidth,
int fontHeight,
double[] data,
int start,
int n)
This graphs a set of generic data in the 0-1 range. |
static void |
drawMajorNumberTick(java.awt.Graphics g,
int drawX,
int drawY,
int fontWidth,
int fontHeight,
boolean above)
Draw a major tick for sequence number above or below a given positon. |
static void |
drawMinorNumberTick(java.awt.Graphics g,
int drawX,
int drawY,
int fontWidth,
int fontHeight,
boolean above)
Draw a minor number tick for sequence number above or below a given positon. |
static void |
drawNumber(java.awt.Graphics g,
int n,
int drawX,
int drawY,
int fontWidth)
Draw sequence number at a given position. |
static void |
drawNumberLine(java.awt.Graphics g,
int drawX,
int drawY,
int fontWidth,
int fontHeight,
int startRes,
int n,
boolean above,
boolean[] skipPos)
Draw a line of numbers labeling residue positions in a protein. |
static void |
drawPred2aryGraph(java.awt.Graphics g,
int drawX,
int drawY,
int fontWidth,
int fontHeight,
Protein pr,
int startRes,
int n)
This draws a graph of the secondary structure probabilities. |
static void |
drawPred2aryStructure(java.awt.Graphics g,
int drawX,
int drawY,
int fontWidth,
int fontHeight,
int fontLeading,
Protein pr,
int startRes,
int n)
This draws a line of letters showing the actual 2ary structure of a protein, from residue startRes to startRes+n (expressed in the protein's internal numbering scheme; 0 = first residue, etc). |
static void |
drawTextGraph(java.awt.Graphics g,
int drawX,
int drawY,
int fontWidth,
int fontHeight,
int fontLeading,
char[] ch,
double[] data,
int start,
int n)
This draws a line of text, and colors the text according to a set of data in the 0-1 range. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProteinTools()
Method Detail |
---|
public static void drawNumber(java.awt.Graphics g, int n, int drawX, int drawY, int fontWidth)
public static void drawMajorNumberTick(java.awt.Graphics g, int drawX, int drawY, int fontWidth, int fontHeight, boolean above)
public static void drawMinorNumberTick(java.awt.Graphics g, int drawX, int drawY, int fontWidth, int fontHeight, boolean above)
public static void drawNumberLine(java.awt.Graphics g, int drawX, int drawY, int fontWidth, int fontHeight, int startRes, int n, boolean above, boolean[] skipPos)
public static void draw2aryStructure(java.awt.Graphics g, int drawX, int drawY, int fontWidth, int fontHeight, int fontLeading, Protein pr, int startRes, int n)
public static void drawPred2aryStructure(java.awt.Graphics g, int drawX, int drawY, int fontWidth, int fontHeight, int fontLeading, Protein pr, int startRes, int n)
public static void drawAxes(java.awt.Graphics g, int drawX, int drawY, int fontWidth, int n)
public static void drawPred2aryGraph(java.awt.Graphics g, int drawX, int drawY, int fontWidth, int fontHeight, Protein pr, int startRes, int n)
public static void drawGraph(java.awt.Graphics g, int drawX, int drawY, int fontWidth, int fontHeight, double[] data, int start, int n)
public static void drawTextGraph(java.awt.Graphics g, int drawX, int drawY, int fontWidth, int fontHeight, int fontLeading, char[] ch, double[] data, int start, int n)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |