RbDe rbde-349 (20120127151154)

edu.mssm.crover.domain2d
Interface HelixModel

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultHelixModel

public interface HelixModel
extends Serializable

Helix model. Model represented by a HelicalDomain.

See Also:
HelicalDomain

Field Summary
static int LEFT_HANDED
          A left-handed helix.
static int RIGHT_HANDED
          A right-handed helix.
 
Method Summary
 Point2D getDirection()
          Gets the direction of the drawing.
 int getHelixType()
          Gets the type of this helix.
 int[] getPeriodicity()
          Gets the periodicity of the helix.
 void setDirection(Point2D extremity)
          Sets the direction of the drawing: extremity is the end of a vector starting at (0,0).
 void setHelixType(int type)
          Sets the type of this helix.
 void setPeriodicity(int[] newPeriodicity)
          Sets the periodicity of the helix.
 

Field Detail

LEFT_HANDED

static final int LEFT_HANDED
A left-handed helix.

See Also:
Constant Field Values

RIGHT_HANDED

static final int RIGHT_HANDED
A right-handed helix.

See Also:
Constant Field Values
Method Detail

setPeriodicity

void setPeriodicity(int[] newPeriodicity)
Sets the periodicity of the helix. The array of integers encodes the periodicity of the helix. Each integer give the number of residue to display for each turn of a helix. When the array ends, new values are taken from the start, in a cycle. Example: {3,4} makes helices with alternatively 3 or 4 residues per diagonal line. {2,2} would represent a kind of beta-strand with a helix representation.


getPeriodicity

int[] getPeriodicity()
Gets the periodicity of the helix.

See Also:
setPeriodicity(int[])

setHelixType

void setHelixType(int type)
Sets the type of this helix. A helix can be left-handed or right-handed.

See Also:
LEFT_HANDED, RIGHT_HANDED

getHelixType

int getHelixType()
Gets the type of this helix.


setDirection

void setDirection(Point2D extremity)
Sets the direction of the drawing: extremity is the end of a vector starting at (0,0). The vector point in the direction in which the helix is rendered.


getDirection

Point2D getDirection()
Gets the direction of the drawing.


RbDe rbde-349 (20120127151154)

Copyright © 2003-2012 Institute for Computational Biomedicine, All Rights Reserved.