public class GaugeMouseEvent
extends java.util.EventObject
| Constructor and Description |
|---|
GaugeMouseEvent(java.lang.Object source,
ScaleElement element,
java.awt.geom.Point2D position,
double value)
Initializes a new instance of the
GaugeMouseEvent class. |
| Modifier and Type | Method and Description |
|---|---|
ScaleElement |
getElement()
Gets a reference to the clicked gauge element, if any.
|
java.awt.geom.Point2D |
getPosition()
Gets the position of the mouse relative to the clicked element.
|
double |
getValue()
Get the gauge value corresponding to the clicked point.
|
public GaugeMouseEvent(java.lang.Object source,
ScaleElement element,
java.awt.geom.Point2D position,
double value)
GaugeMouseEvent class.element - The clicked gauge element, if any.position - The position of the mouse relative to the clicked element.value - The gauge value corresponding to the clicked point.public ScaleElement getElement()
public java.awt.geom.Point2D getPosition()
public double getValue()