|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.marvin.space.GraphicComponent
chemaxon.marvin.space.monitor.Monitor
chemaxon.marvin.space.monitor.MeasurementMonitor
chemaxon.marvin.space.monitor.DihedralMonitor
public class DihedralMonitor
Monitor for measuring dihedral. Dihedral of 4 components is the angle between the 2 planes determinde by the first 3 and the second 3 components. Measuring dihedral has only sense if the 4 elements are 4 atoms of a molecule.
| Field Summary | |
|---|---|
protected DihedralControl |
control
|
| Fields inherited from class chemaxon.marvin.space.monitor.MeasurementMonitor |
|---|
label, measure, measurement, textPosWindow |
| Fields inherited from class chemaxon.marvin.space.monitor.Monitor |
|---|
mode, selectedItemCoordinates, selectedItems, selectionPointer |
| Fields inherited from class chemaxon.marvin.space.GraphicComponent |
|---|
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 Summary | |
|---|---|
DihedralMonitor()
Creates a new instance of DihedralMonitor |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class chemaxon.marvin.space.monitor.MeasurementMonitor |
|---|
getCoordinates, getDescription, getDescription, receiveNotificationOnCoordinateChange, refresh, selectItem, setLabel |
| Methods inherited from class chemaxon.marvin.space.monitor.Monitor |
|---|
clear, getSelectedElements, hasControl, hasInvisibleItem, hasTransparentPart, isFull, isVisible, onRemoveGraphicComponent, pickedIndicator, receiveNotificationOnInvisibility, receiveNotificationOnVisibility, refersTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected DihedralControl control
| Constructor Detail |
|---|
public DihedralMonitor()
| Method Detail |
|---|
public int maximumItemCount()
maximumItemCount in class Monitorpublic void getCoordinates(float[] c)
getCoordinates in class MeasurementMonitorc - allocated array where coordinates will be putpublic void select()
select in interface chemaxon.marvin.space.UsableObjectselect in class GraphicComponentpublic void unSelect()
unSelect in interface chemaxon.marvin.space.UsableObjectunSelect in class Monitorpublic GraphicComponent getComponent()
public void setControl(DihedralControl control)
public void control(int v)
public double measurement()
measurement in class MeasurementMonitorpublic void draw()
draw in class GraphicComponentprotected byte[] getMonitorColor()
getMonitorColor in class MeasurementMonitor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||