|
|||||||||
| 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
public abstract class MeasurementMonitor
Monitor that measures something on its elements. The measured value is supposed
to be drawn as a Label by selecting this monitor as
the selected item of the label.
| Field Summary | |
|---|---|
protected Label |
label
|
protected java.lang.String |
measure
|
protected double |
measurement
|
protected double[] |
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 | |
|---|---|
protected |
MeasurementMonitor()
Creates a new instance of MeasureMonitor |
| Method Summary | |
|---|---|
void |
getCoordinates(ComponentElement item,
float[] c)
Returns the centroid of the selected elements. |
void |
getCoordinates(float[] c)
Returns the centroid of the selected elements. |
java.lang.String |
getDescription()
Returns the measurement as a description. |
java.lang.String |
getDescription(ComponentElement element)
Returns the measurement as a description. |
protected byte[] |
getMonitorColor()
|
abstract double |
measurement()
Returns the measurement measured by the monitor as a double. |
void |
receiveNotificationOnCoordinateChange(GraphicComponent gc)
Gets notification from its selected components if their coordinates have been changed. |
void |
refresh()
Deletes the position and the value of the measurement to recount. |
void |
selectItem(ComponentElement item)
Puts the item to the selection and clears its description. |
void |
setLabel(Label label)
Sets the Label of the monitor that is to display the measurement. |
| Methods inherited from class chemaxon.marvin.space.monitor.Monitor |
|---|
clear, getSelectedElements, hasControl, hasInvisibleItem, hasTransparentPart, isFull, isVisible, maximumItemCount, onRemoveGraphicComponent, pickedIndicator, receiveNotificationOnInvisibility, receiveNotificationOnVisibility, refersTo, unSelect |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double measurement
protected double[] textPosWindow
protected java.lang.String measure
protected Label label
| Constructor Detail |
|---|
protected MeasurementMonitor()
| Method Detail |
|---|
public void setLabel(Label label)
label - public void selectItem(ComponentElement item)
selectItem in class Monitoritem - item to selectpublic void receiveNotificationOnCoordinateChange(GraphicComponent gc)
receiveNotificationOnCoordinateChange in class Monitorgc - component changing coordinatespublic abstract double measurement()
public void getCoordinates(float[] c)
getCoordinates in class GraphicComponentc - allocated array where coordinates will be put
public void getCoordinates(ComponentElement item,
float[] c)
getCoordinates in class GraphicComponentitem - specific part of the componentc - allocated array where coordinates will be putpublic java.lang.String getDescription()
getDescription in class GraphicComponentStringpublic java.lang.String getDescription(ComponentElement element)
getDescription in class GraphicComponentelement - specific part of the component
Stringpublic void refresh()
protected byte[] getMonitorColor()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||