|
|||||||||
| 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.AngleMonitor
public class AngleMonitor
Monitor for measuring angle between 3 components, the first 2 determines a line,
the second 2 another. The angle will be determined by the 2 lines.
Component can be any GraphicComponent with a proper getCoordinates()
function returning a vector.
| Field Summary |
|---|
| Fields inherited from class chemaxon.marvin.space.monitor.MeasurementMonitor |
|---|
label, measure, measurement, textPosWindow |
| Fields inherited from class chemaxon.marvin.space.monitor.Monitor |
|---|
control, 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 | |
|---|---|
AngleMonitor()
Creates a new instance of AngleMonitor |
|
| Method Summary | |
|---|---|
void |
draw()
Draws the anglemonitor as lines between the components, and an arc between the lines. |
void |
getCoordinates(float[] c)
Returns the centroid of the selected elements. |
int |
maximumItemCount()
Returns 3 as the angle is measured between 3 elements. |
double |
measurement()
Does the angle measurement. |
| Methods inherited from class chemaxon.marvin.space.monitor.MeasurementMonitor |
|---|
getCoordinates, getDescription, getDescription, getMonitorColor, 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, unSelect |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AngleMonitor()
| Method Detail |
|---|
public double measurement()
measurement in class MeasurementMonitorpublic int maximumItemCount()
maximumItemCount in class Monitorpublic void getCoordinates(float[] c)
getCoordinates in class MeasurementMonitorc - allocated array where coordinates will be putpublic void draw()
draw in class GraphicComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||