package nomadgui.state;

import java.awt.geom.*;
import java.awt.*;
import javax.swing.*;

class Wheel extends RoundRectangle2D.Float {

  public GradientPaint tread;
  
  Wheel(float x, float y, float w, float h) {
    super(x, y, w, h, .4f*w, .4f*w);
  }

  synchronized public GradientPaint setTread(float from_x, float from_y,
					     Color c1, float to_x, float to_y,
					     Color c2, boolean cy) {
    tread = new GradientPaint(from_x, from_y, c1, to_x, to_y, c2, cy);
    
    return tread;
  }
  
}
