Exemplo n.º 1
0
 public Ellipse2D evaluate(Ellipse2D v0, Ellipse2D v1, float fraction) {
   double x = v0.getX() + ((v1.getX() - v0.getX()) * fraction);
   double y = v0.getY() + ((v1.getY() - v0.getY()) * fraction);
   double w = v0.getWidth() + ((v1.getWidth() - v0.getWidth()) * fraction);
   double h = v0.getHeight() + ((v1.getHeight() - v0.getHeight()) * fraction);
   Ellipse2D value = (Ellipse2D) v0.clone();
   value.setFrame(x, y, w, h);
   return value;
 }
Exemplo n.º 2
0
 public void setLocation(Point p) {
   nshape.setFrame(p.x, p.y, nshape.getWidth(), nshape.getHeight());
 }
Exemplo n.º 3
0
 public void setLocation(int x, int y) {
   nshape.setFrame(x, y, nshape.getWidth(), nshape.getHeight());
 }
 @Override
 public int getWidth() {
   return (int) circle.getWidth();
 }