public class GaugeController extends java.lang.Object implements ComponentController
| Constructor and Description |
|---|
GaugeController(BaseGauge gauge)
Initializes a new instance of the
GaugeController class. |
| Modifier and Type | Method and Description |
|---|---|
void |
drawInteraction(java.awt.Graphics graphics)
Draws a representation of the current state of user interaction on specified Graphics surface.
|
Component |
getComponent() |
ComponentAnimation |
getRunningAnimation()
For internal use.
|
void |
onMouseDown(double x,
double y)
Called when the user presses a mouse button.
|
void |
onMouseMove(double x,
double y)
Called when the user moves the mouse.
|
void |
onMouseUp(double x,
double y)
Called when the user releases a mouse button.
|
public GaugeController(BaseGauge gauge)
GaugeController class.public void onMouseDown(double x,
double y)
onMouseDown in interface ComponentControllerx - A double value specifying the horizontal position of mouse pointer.y - A double value specifying the vertical position of mouse pointer.public void onMouseMove(double x,
double y)
onMouseMove in interface ComponentControllerx - A double value specifying the horizontal position of mouse pointer.y - A double value specifying the vertical position of mouse pointer.public void onMouseUp(double x,
double y)
onMouseUp in interface ComponentControllerx - A double value specifying the horizontal position of mouse pointer.y - A double value specifying the vertical position of mouse pointer.public void drawInteraction(java.awt.Graphics graphics)
drawInteraction in interface ComponentControllergraphics - A Graphics instance.public ComponentAnimation getRunningAnimation()
getRunningAnimation in interface ComponentControllerComponentAnimation-derived class.public Component getComponent()
getComponent in interface ComponentController