@PublicAPI public class AngleMonitor 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 |
---|
AngleMonitor()
Creates a new instance of AngleMonitor
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 double measurement()
measurement
in class MeasurementMonitor
public int maximumItemCount()
maximumItemCount
in class Monitor
public void getCoordinates(float[] c)
getCoordinates
in class MeasurementMonitor
c
- allocated array where coordinates will be putpublic void draw()
draw
in class GraphicComponent