|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.proteinshader.structure.Region org.proteinshader.structure.Helix
public class Helix
This concrete subclass of Region holds information specific to a
protein Helix.
PDB HELIX records are usually generated automatically with the Kabsch
and Sander algoritnm (Kabsch and Sander, 1983, Biopolymers 22:
2577-2637), but they may be specified by the depositor of the
structure entry.
Field Summary | |
---|---|
static HelixShapeEnum |
DEFAULT_SHAPE
The default Helix shape is ALPHA_RIBBON. |
static HelixEnum |
DEFAULT_TYPE
The default Helix type is RH_ALPHA. |
Constructor Summary | |
---|---|
Helix(String helixID,
String serialNo,
String startResidueID,
String endResidueID,
Chain chain,
HelixEnum type,
HelixShapeEnum shape)
Constructs a Helix. |
Method Summary | |
---|---|
void |
accept(Visitor visitor)
Accepts a Visitor and does a callback. |
String |
getHelixID()
Returns the Helix ID. |
String |
getSerialNo()
Returns the serial number of the Helix. |
HelixShapeEnum |
getShape()
Returns the shape that should be used to represent the Helix. |
HelixEnum |
getType()
Returns the type of Helix. |
void |
setShape(HelixShapeEnum shape)
Sets the shape that should be used to represent the Helix. |
void |
setShapeToDefault()
Sets the shape the default value, DEFAULT_SHAPE. |
void |
setType(HelixEnum type)
Sets the type of Helix. |
String |
toString()
Returns the Helix ID. |
Methods inherited from class org.proteinshader.structure.Region |
---|
createSegments, getAminoAcidAfterRegion, getAminoAcidBeforeRegion, getChainID, getEndResidueID, getModelID, getSegment, getStartResidueID, getStructureID, iteratorAminoAcids, iteratorSegments, markAminoAcids, numberOfAminoAcids, numberOfSegments, processID, setSegmentAlpha, setSegmentAlphaToDefault, setSegmentRGB, setSegmentRGBToDefault, setSegmentsToAminoAcidColors, setSegmentsToRegionColor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final HelixEnum DEFAULT_TYPE
public static final HelixShapeEnum DEFAULT_SHAPE
Constructor Detail |
---|
public Helix(String helixID, String serialNo, String startResidueID, String endResidueID, Chain chain, HelixEnum type, HelixShapeEnum shape) throws InvalidRegionException, InvalidIDException
helixID
- Helix identifier from a PDB HELIX record.serialNo
- serial number of the Helix.startResidueID
- ID of the first AminoAcid in the sequence.endResidueID
- ID of the last AminoAcid in the sequence.chain
- Chain the Helix belongs to.type
- type of Helix as a HelixEnumshape
- shape to use to represent the Helix.
InvalidRegionException
- if the sequence of AminoAcids
(with at least two Residues)
cannot be found on the Chain.
InvalidIDException
- if the helixID, serialNo,
startResidueID, or endResidueID is
null or does not have at least one
non-whitespace character.Method Detail |
---|
public void accept(Visitor visitor) throws VisitorException
accept
in interface Visitable
accept
in class Region
visitor
- the Visitor to do a callback with.
VisitorException
- if an error occurs while an object is
being visited.public String getHelixID()
public String getSerialNo()
public HelixEnum getType()
public void setType(HelixEnum type)
type
- the type as a HelixEnum.public HelixShapeEnum getShape()
public void setShape(HelixShapeEnum shape)
shape
- the shape as a HelixShapeEnum.public void setShapeToDefault()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |