@PublicAPI public class DihedralMonitor extends MeasurementMonitor
Modifier and Type | Field and Description |
---|---|
protected DihedralControl |
control |
label, measure, measurement, textPosWindow
mode, selectedItemCoordinates, selectedItems, selectionPointer
active, associatedComponents, boundingBox, color, COMPONENT_TYPE_ENTIRE, drawProperties, drawType, gl, glu, graphicCell, irm, modifiesOrigin, motionMode, mousex, mousey, name, pickedItem, RENDERING_QUALITY_HIGH, RENDERING_QUALITY_LOW, RENDERING_QUALITY_MEDIUM, renderingQuality, rm, uoid, visible
Constructor and Description |
---|
DihedralMonitor()
Creates a new instance of DihedralMonitor
|
Modifier and Type | Method and Description |
---|---|
void |
control(int v)
Passes the control event to the control.
|
void |
draw()
Draws dotted lines between the components, and a circle around the middle line.
|
GraphicComponent |
getComponent()
Returns the molecule whose atoms are monitored.
|
void |
getCoordinates(float[] c)
Returns the centroid of the second and third selected elements.
|
protected byte[] |
getMonitorColor()
Returns the color of the control if it exists.
|
int |
maximumItemCount()
Returns 4, as measuring dihedral is defined on 4 components.
|
double |
measurement()
Measures the dihedral.
|
void |
select()
When the monitor is selected, a DihedralControl is created or changes
its direction if it was alredy created.
|
void |
setControl(DihedralControl control)
Sets a DihedralControl to the monitor.
|
void |
unSelect()
Sets the monitor to be unselected and destroys the DihedralControl.
|
getCoordinates, getDescription, getDescription, receiveNotificationOnCoordinateChange, refresh, selectItem, setLabel
clear, getSelectedElements, hasControl, hasInvisibleItem, hasTransparentPart, isFull, isVisible, onRemoveGraphicComponent, pickedIndicator, receiveNotificationOnInvisibility, receiveNotificationOnVisibility, refersTo
addDrawProperties, associate, cleanup, draw2DPart, drawBoundingBox, drawCoordinateAxes, drawSelection, drawTransparentPart, exclusiveSelection, exclusiveSelection, extendSelection, extendSelection, fadeSelected, fadeUnselected, getAssociatedComponents, getBoundingBox, getBoundingSphereRadius, getCell, getColor, getComponentElement, getDrawProperties, getDrawProperty, getGraphicComponent, getId, getLabelInformation, getLabelInformation, getName, getRenderingQuality, getUsableObject, getZCoordinateTo2DPart, glColor, has2DPart, hasSelectedElements, hideSelected, hideUnselected, invertSelection, invertSelection, isControllable, isGraphicComponent, isSelected, isSelected, isVisible, locateObject, notifyCoordinateChange, notifyInvisibility, notifySelection, notifyUnSelection, notifyVisibility, pickObject, projectVector, receiveNotificationOnSelection, receiveNotificationOnUnSelection, removeAssociation, resize, rotate, rotate, rotate, select, selectComponentElementsInside, setColor, setColor, setColor, setColor, setDrawProperties, setDrawProperty, setGL, setMotionMode, setName, setProgressBar, setRenderingQuality, setRotateMatrix, setVisible, showFaded, storeDrawProperty, toString, touchObject, translate, unSelect
protected DihedralControl control
public DihedralMonitor()
public int maximumItemCount()
maximumItemCount
in class Monitor
public void getCoordinates(float[] c)
getCoordinates
in class MeasurementMonitor
c
- allocated array where coordinates will be putpublic void select()
select
in interface chemaxon.marvin.space.UsableObject
select
in class GraphicComponent
public void unSelect()
public GraphicComponent getComponent()
public void setControl(DihedralControl control)
public void control(int v)
public double measurement()
measurement
in class MeasurementMonitor
public void draw()
draw
in class GraphicComponent
protected byte[] getMonitorColor()
getMonitorColor
in class MeasurementMonitor