public class DistanceMonitor extends MeasurementMonitor
GraphicComponent
with a proper getCoordinates()
function returning a vector.label, measure, measurement, textPosWindow
control, 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 |
---|
DistanceMonitor()
Creates a new instance of DistanceMonitor
|
Modifier and Type | Method and Description |
---|---|
void |
draw()
Draws solid line between the measured elements.
|
int |
maximumItemCount()
Returns 2 as distance can be measured between 2 elements.
|
double |
measurement()
Measures the distance.
|
getCoordinates, getCoordinates, getDescription, getDescription, getMonitorColor, receiveNotificationOnCoordinateChange, refresh, selectItem, setLabel
clear, getSelectedElements, hasControl, hasInvisibleItem, hasTransparentPart, isFull, isVisible, onRemoveGraphicComponent, pickedIndicator, receiveNotificationOnInvisibility, receiveNotificationOnVisibility, refersTo, unSelect
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, select, selectComponentElementsInside, setColor, setColor, setColor, setColor, setDrawProperties, setDrawProperty, setGL, setMotionMode, setName, setProgressBar, setRenderingQuality, setRotateMatrix, setVisible, showFaded, storeDrawProperty, toString, touchObject, translate, unSelect
public DistanceMonitor()
public int maximumItemCount()
maximumItemCount
in class Monitor
public double measurement()
measurement
in class MeasurementMonitor
public void draw()
draw
in class GraphicComponent