edu.mssm.crover.domain2d
Interface HelixModel

All Superinterfaces:
AbstractModel, BrushingModelInterface, DraggingModelInterface, SelectedModelInterface
All Known Implementing Classes:
DefaultHelixModel

public interface HelixModel
extends DraggingModelInterface, SelectedModelInterface, BrushingModelInterface, AbstractModel

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[] new_per)
          Sets the periodicity of the helix.
 
Methods inherited from interface edu.mssm.crover.domain2d.DraggingModelInterface
isDraggable, setDragging
 
Methods inherited from interface edu.mssm.crover.domain2d.SelectedModelInterface
isSelected, setSelected, toggleSelected
 
Methods inherited from interface edu.mssm.crover.domain2d.BrushingModelInterface
isBrushing, setBrushing
 
Methods inherited from interface edu.mssm.crover.domain2d.AbstractModel
addObserver
 

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[] new_per)
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.



Copyright © 2004 Weill Cornell Medical College. All Rights Reserved.