Class pmr.cml.FEATURENode
All Packages Class Hierarchy This Package Previous Next Index
Class pmr.cml.FEATURENode
java.lang.Object
|
+----pmr.sgml.SGMLNode
|
+----pmr.sgml.DrawableSGMLNode
|
+----pmr.cml.DrawableX_Node
|
+----pmr.cml.FEATURENode
- public class FEATURENode
- extends DrawableX_Node
FEATURENode holds 'features' for macromolecules. This maps fairly
directly onto SwissProt FT and various fields in PDB. Still
being thrashed out!
- Author:
- (C) P. Murray-Rust, 1996
-
FEATURENode(String, SGMLTree)
-
-
announce(DrawableX_Node)
- called (at least) by SEQUENCENode.
-
contains(int)
- does a feature contain a given residue number?
-
createAdd0(SGMLTree, int, String, FEATURENode, String, String, String)
-
-
createAndAdd(SGMLTree, int, String, String, DrawableX_Node, int, int, String, String)
- create from a data entry; this has to add it to the tree as well
The target is a node such as a SEQUENCENode or ATOMSNode
-
createAndAdd(SGMLTree, int, String, String, Vector, String, String)
- this adds a range of addresses to the Feature
-
debug()
- for debug
-
display()
- displays the nodes.
-
display(Graphics)
- no routine yet to display the relationships...
-
getColor()
- color of SGMLNode text - overridden by subclasses?
-
getEnd()
- end of the feature (counts from ONE!)
-
getFeatureString()
- description of the Feature
-
getKeyword()
-
-
getStart()
- start of the feature (counts from ONE!)
-
getTitle()
- get title from TITLE, DICTNAME, BUILTIN if present, else TITLE
-
isDisulfide()
- is the feature a disulfide?
-
isNotMature()
- is the feature not in the mature protein? (e.g.
-
isStructural()
- is the feature structural?
-
mayContain(SGMLNode)
- can this node contain others.
-
process()
- complex objects may require processing; override this.
-
processKeywords()
-
-
showHelp()
- display Help
FEATURENode
public FEATURENode(String giName,
SGMLTree tree)
createAndAdd
public static int createAndAdd(SGMLTree tree,
int parentIndex,
String title,
String keyword,
DrawableX_Node target,
int start,
int end,
String description,
String convention)
- create from a data entry; this has to add it to the tree as well
The target is a node such as a SEQUENCENode or ATOMSNode
createAndAdd
public static int createAndAdd(SGMLTree tree,
int parentIndex,
String title,
String keyword,
Vector fullAddresses,
String description,
String convention)
- this adds a range of addresses to the Feature
createAdd0
public static void createAdd0(SGMLTree tree,
int index,
String title,
FEATURENode node,
String keyword,
String description,
String convention)
getFeatureString
public String getFeatureString()
- description of the Feature
getStart
public int getStart()
- start of the feature (counts from ONE!)
getEnd
public int getEnd()
- end of the feature (counts from ONE!)
contains
public boolean contains(int resno)
- does a feature contain a given residue number?
isDisulfide
public boolean isDisulfide()
- is the feature a disulfide?
isStructural
public boolean isStructural()
- is the feature structural?
isNotMature
public boolean isNotMature()
- is the feature not in the mature protein? (e.g. PROPEP or SIGNAL)?
getColor
public Color getColor()
- color of SGMLNode text - overridden by subclasses?
- Overrides:
- getColor in class SGMLNode
getTitle
public String getTitle()
- get title from TITLE, DICTNAME, BUILTIN if present, else TITLE
- Overrides:
- getTitle in class DrawableX_Node
getKeyword
public String getKeyword()
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
processKeywords
public void processKeywords()
announce
public void announce(DrawableX_Node node)
- called (at least) by SEQUENCENode. Tells the user about the FEATURE.
At present uses postMessage()
display
public void display()
- displays the nodes. Doesn't yet clear subaddresses in nodes before it
starts... see RELATION
- Overrides:
- display in class DrawableSGMLNode
display
public void display(Graphics g)
- no routine yet to display the relationships...
- Overrides:
- display in class DrawableX_Node
debug
public void debug()
- for debug
- Overrides:
- debug in class DrawableX_Node
All Packages Class Hierarchy This Package Previous Next Index