edu.mssm.crover.domain2d
Interface HelixModel

All Superinterfaces:
edu.mssm.crover.domain2d.AbstractModel, edu.mssm.crover.domain2d.BrushingModelInterface, edu.mssm.crover.domain2d.DraggingModelInterface, edu.mssm.crover.domain2d.SelectedModelInterface
All Known Implementing Classes:
DefaultHelixModel

public interface HelixModel
extends edu.mssm.crover.domain2d.DraggingModelInterface, edu.mssm.crover.domain2d.SelectedModelInterface, edu.mssm.crover.domain2d.BrushingModelInterface, edu.mssm.crover.domain2d.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
 void addObserver(java.util.Observer o)
           
 java.awt.geom.Point2D getDirection()
          Gets the direction of the drawing.
 int getHelixType()
          Gets the type of this helix.
 int[] getPeriodicity()
          Gets the periodicity of the helix.
 boolean isBrushing()
           
 boolean isDraggable()
           
 boolean isSelected()
           
 void setBrushing(boolean new_state)
           
 void setDirection(java.awt.geom.Point2D extremity)
          Sets the direction of the drawing: extremity is the end of a vector starting at (0,0).
 void setDragging(boolean new_state)
           
 void setHelixType(int type)
          Sets the type of this helix.
 void setPeriodicity(int[] new_per)
          Sets the periodicity of the helix.
 void setSelected(boolean new_state)
           
 void toggleSelected()
           
 

Field Detail

LEFT_HANDED

public static final int LEFT_HANDED
A left-handed helix.

See Also:
Constant Field Values

RIGHT_HANDED

public static final int RIGHT_HANDED
A right-handed helix.

See Also:
Constant Field Values
Method Detail

setPeriodicity

public 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

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

See Also:
setPeriodicity(int[])

setHelixType

public 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

public int getHelixType()
Gets the type of this helix.


setDirection

public void setDirection(java.awt.geom.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

public java.awt.geom.Point2D getDirection()
Gets the direction of the drawing.


isDraggable

public boolean isDraggable()

setDragging

public void setDragging(boolean new_state)

isSelected

public boolean isSelected()

setSelected

public void setSelected(boolean new_state)

toggleSelected

public void toggleSelected()

isBrushing

public boolean isBrushing()

setBrushing

public void setBrushing(boolean new_state)

addObserver

public void addObserver(java.util.Observer o)


Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.