|
|||||||||
| 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
public abstract class Monitor
The Monitor is for "watching" something in the scene.
The direct subclasses are MeasurementMonitor, PositionMonitor
and Label.
A MeasurementMonitor watches some objects, and measures something between them.
A PositionMonitor is watching a location as a center of a transformation.
A Label is watching an object and describes it.
| Field Summary | |
|---|---|
protected Control |
control
|
protected int |
mode
|
protected int[] |
selectedItemCoordinates
|
protected ComponentElement[] |
selectedItems
Storage of the items of monitoring. |
protected int |
selectionPointer
Points to the next empty space in selectedItems. |
| 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 |
Monitor()
Creates a new instance of Monitor. |
| Method Summary | |
|---|---|
void |
clear()
Deletes all items from selectedItems. |
ComponentElement[] |
getSelectedElements()
Returns the set of the monitored items. |
boolean |
hasControl()
Returns true if the monitor has a control. |
boolean |
hasInvisibleItem()
Retruns true if any of the selected elements is hidden. |
boolean |
hasTransparentPart()
In wire mode (now only this is available) monitors are drawn with blending enabled. |
boolean |
isFull()
Returns true if the monitor is full and can measure. |
boolean |
isVisible()
A monitor is visible if all of its selected components are visible, and it is not hidden explicitly. |
abstract int |
maximumItemCount()
Returns the number of items necessary for monitoring. |
void |
onRemoveGraphicComponent()
|
double |
pickedIndicator()
Monitors do not really have z coordinate, they are the nearer to us. |
void |
receiveNotificationOnCoordinateChange(GraphicComponent gc)
Gets notification from its selected components if their coordinates have been changed. |
void |
receiveNotificationOnInvisibility(GraphicComponent gc)
If the component to that this monitor is assigned becomes hidden, this monitor will also behave so. |
void |
receiveNotificationOnVisibility(GraphicComponent gc)
If the component to that this monitor is assigned becomes visible, this monitor will also behave so. |
boolean |
refersTo(GraphicComponent component)
Retruns true if component is between the selected elements. |
void |
selectItem(ComponentElement item)
Puts item to the selection. |
void |
unSelect()
Sets the component not to be selected. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ComponentElement[] selectedItems
protected int[] selectedItemCoordinates
protected int selectionPointer
protected Control control
protected int mode
| Constructor Detail |
|---|
protected Monitor()
Monitor. Initializes selectedItems with
a maximum item count, and becames a GraphicComponent which does not
modify the origin of the Cell it is in.
| Method Detail |
|---|
public void onRemoveGraphicComponent()
onRemoveGraphicComponent in class GraphicComponentpublic abstract int maximumItemCount()
public ComponentElement[] getSelectedElements()
public void selectItem(ComponentElement item)
public void receiveNotificationOnCoordinateChange(GraphicComponent gc)
receiveNotificationOnCoordinateChange in class GraphicComponentgc - component changing coordinatespublic void receiveNotificationOnVisibility(GraphicComponent gc)
receiveNotificationOnVisibility in class GraphicComponentgc - public void receiveNotificationOnInvisibility(GraphicComponent gc)
receiveNotificationOnInvisibility in class GraphicComponentgc - public boolean isFull()
public boolean hasControl()
public void clear()
public boolean isVisible()
isVisible in interface chemaxon.marvin.space.UsableObjectisVisible in class GraphicComponentpublic boolean hasInvisibleItem()
public boolean refersTo(GraphicComponent component)
public void unSelect()
unSelect in interface chemaxon.marvin.space.UsableObjectunSelect in class GraphicComponentpublic double pickedIndicator()
locateObject() returns the same as pickedIndicator(),
then we say that the monitor was picked.
public boolean hasTransparentPart()
hasTransparentPart in class GraphicComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||