Class pmr.cml.SEQUENCENode
All Packages Class Hierarchy This Package Previous Next Index
Class pmr.cml.SEQUENCENode
java.lang.Object
|
+----pmr.sgml.SGMLNode
|
+----pmr.sgml.DrawableSGMLNode
|
+----pmr.cml.DrawableX_Node
|
+----pmr.cml.SEQUENCENode
- public class SEQUENCENode
- extends DrawableX_Node
- implements SubAddressable
a macromolecular sequence. At present I have only tested it with proteins
I am still undecided as to whether to hold one chain per sequence or multiple
chains. For example interchain disulphides cause a problem! Start with one
chain per SEQUENCE Where do the FEATUREs then live??? Perhaps both under MOL
(for molecular features - including interchain disulphides and active sites)
and under SEQUENCE for chain-only features.
- Author:
- (C) P. Murray-Rust, 1996
-
SEQUENCENode(String, SGMLTree)
-
-
addSubAddress(IntRange)
-
-
addSubAddresses(IntRangeVector)
-
-
clearSubAddresses()
-
-
createAndAdd(SGMLTree, int, String, String, int, String)
-
-
debug()
- for debug
-
display(Graphics)
- used by the ScrollableTopLevel to paint the object, or can be used to
draw the object to somewhere else.
-
drawFeature(Graphics, FEATURENode, int, int, int)
-
-
drawFeature0(Graphics, FEATURENode, int, int, int, int, int, int)
-
-
drawFeatures(Graphics)
-
-
drawIcon(Graphics, int, int)
- draw a CML icon
-
drawSequenceString(Graphics)
-
-
drawVLine(Graphics, int, int, int)
-
-
getChainID()
-
-
getChainLength()
-
-
getFeatures()
-
-
getFreeBar(int, int, int)
- get first free bar and reserve it for this feature.
-
getResiduesPerLine()
-
-
getSequenceString()
- get the sequence as a 1-letter string
-
getSubAddresses()
-
-
highlightRegion(Graphics, int, int, int)
-
-
highlightResidue(Graphics, int, int)
-
-
highlightSubAddresses(boolean)
-
-
mayContain(SGMLNode)
- can this node contain others.
-
mouseUp(Event, int, int)
- action when mouse is unclicked; if not overridden, no action
-
process()
- complex objects may require processing; override this.
-
process1()
-
-
showHelp()
- display Help
SEQUENCENode
public SEQUENCENode(String giName,
SGMLTree tree)
createAndAdd
public static int createAndAdd(SGMLTree tree,
int parentIndex,
String id,
String chainString,
int length,
String convention)
showHelp
public void showHelp()
- display Help
- Overrides:
- showHelp in class DrawableX_Node
mayContain
public boolean mayContain(SGMLNode n)
- can this node contain others.
- Overrides:
- mayContain in class DrawableX_Node
process
public void process()
- complex objects may require processing; override this.
- Overrides:
- process in class DrawableSGMLNode
getChainID
public String getChainID()
getChainLength
public int getChainLength()
getFeatures
public FEATURENode[] getFeatures()
getResiduesPerLine
public int getResiduesPerLine()
display
public void display(Graphics g)
- used by the ScrollableTopLevel to paint the object, or can be used to
draw the object to somewhere else.
- Overrides:
- display in class DrawableX_Node
debug
public void debug()
- for debug
- Overrides:
- debug in class DrawableX_Node
process1
public void process1()
getSequenceString
public String getSequenceString()
- get the sequence as a 1-letter string
getFreeBar
public int getFreeBar(int featureIndex,
int start,
int end)
- get first free bar and reserve it for this feature. If no bars free,
use the last one (nbars-1).
drawFeatures
public void drawFeatures(Graphics g)
highlightResidue
public void highlightResidue(Graphics g,
int featureIndex,
int index)
highlightRegion
public void highlightRegion(Graphics g,
int featureIndex,
int start,
int end)
drawFeature
public void drawFeature(Graphics g,
FEATURENode feat,
int start,
int end,
int featureIndex)
drawFeature0
public void drawFeature0(Graphics g,
FEATURENode feat,
int x0,
int y0,
int yoffset,
int x1,
int lbar,
int rbar)
drawVLine
public void drawVLine(Graphics g,
int x,
int y,
int dy)
drawSequenceString
public void drawSequenceString(Graphics g)
mouseUp
public boolean mouseUp(Event evt,
int x,
int y)
- action when mouse is unclicked; if not overridden, no action
- Overrides:
- mouseUp in class DrawableX_Node
clearSubAddresses
public void clearSubAddresses()
addSubAddress
public void addSubAddress(IntRange ir)
addSubAddresses
public void addSubAddresses(IntRangeVector irv)
getSubAddresses
public IntRangeVector getSubAddresses()
highlightSubAddresses
public void highlightSubAddresses(boolean onOff)
drawIcon
public int drawIcon(Graphics g,
int x,
int y)
- draw a CML icon
- Overrides:
- drawIcon in class DrawableX_Node
All Packages Class Hierarchy This Package Previous Next Index