JIDE 3.5.15

com.jidesoft.gauge
Interface NeedleRenderer

All Known Implementing Classes:
DefaultNeedleRenderer

public interface NeedleRenderer

The NeedleRenderer interface specifies


Method Summary
 Shape paintNeedle(Graphics2D g2d, AbstractGauge gauge, Double value, double x, double y, double angle, double radius, NeedleStyle style)
          Paints a needle onto a meter
 

Method Detail

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 drawn
gauge - the Meter component onto which the needle will be painted
x - the x coordinate of the needle pivot
y - the y coordinate of the needle pivot
angle - the angle in degrees
radius - the radius of the needle in pixels
style - the needle style, which provides preferred styling details. A renderer should respect these preferences but on occasions may have good reason to override them.

JIDE 3.5.15