JIDE 3.5.15

com.jidesoft.gauge
Class DialIndicator

java.lang.Object
  extended by com.jidesoft.gauge.DialIndicator
All Implemented Interfaces:
Drawable, ZOrder

public class DialIndicator
extends Object
implements Drawable, ZOrder

An indicator lamp with either an 'on' (or active) state or an 'off' (inactive) state. You can specify the colour of the lamp and appropriate gradient fills are calculated to give a glassy appearance to the lamp.


Constructor Summary
DialIndicator(Dial dial, float size, float radius, float angle, Color color)
          Creates a DialIndicator
 
Method Summary
 void draw(Graphics g)
          Draw the object implementing this interface onto the supplied Graphics context
 int getZOrder()
           
 boolean isActive()
           
 void setActive(boolean active)
           
 void setZOrder(int zOrder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialIndicator

public DialIndicator(Dial dial,
                     float size,
                     float radius,
                     float angle,
                     Color color)
Creates a DialIndicator

Parameters:
dial - the dial to which this DialIndicator will be added
size - the size of the indicator as a proportion of the radius of the dial
radius - the offset radius from the pivot point of the dial (for positioning the indicator)
angle - the offset angle from the pivot point of the dial (for positioning the indicator)
color - the color of the indicator when switched off
Method Detail

getZOrder

public int getZOrder()
Specified by:
getZOrder in interface ZOrder

setZOrder

public void setZOrder(int zOrder)
Specified by:
setZOrder in interface ZOrder

isActive

public boolean isActive()

setActive

public void setActive(boolean active)

draw

public void draw(Graphics g)
Description copied from interface: Drawable
Draw the object implementing this interface onto the supplied Graphics context

Specified by:
draw in interface Drawable
Parameters:
g - the Graphics context

JIDE 3.5.15