com.jidesoft.gauge
Interface NeedleRenderer
- All Known Implementing Classes:
- DefaultNeedleRenderer
public interface NeedleRenderer
The NeedleRenderer interface specifies
paintNeedle
Shape paintNeedle(Graphics2D g2d,
AbstractGauge gauge,
Double value,
double x,
double y,
double angle,
double radius,
NeedleStyle style)
- Paints a needle onto a meter
- Parameters:
g2d
- the Graphics context onto which the needle is to be drawngauge
- the Meter component onto which the needle will be paintedx
- the x coordinate of the needle pivoty
- the y coordinate of the needle pivotangle
- the angle in degreesradius
- the radius of the needle in pixelsstyle
- the needle style, which provides preferred styling details. A renderer should respect these
preferences but on occasions may have good reason to override them.