You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FigureElement.java 904B

123456789101112131415161718192021222324252627282930
  1. /* *******************************************************************
  2. * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Common Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://www.eclipse.org/legal/cpl-v10.html
  8. *
  9. * Contributors:
  10. * PARC initial implementation
  11. * ******************************************************************/
  12. package figures;
  13. import java.awt.*;
  14. import java.awt.geom.*;
  15. public interface FigureElement {
  16. public static final int MIN_VALUE = 0;
  17. public static final int MAX_VALUE = 500;
  18. public abstract void move(int dx, int dy);
  19. public abstract Rectangle getBounds();
  20. public abstract boolean contains(Point2D p);
  21. public abstract void paint(Graphics2D g2);
  22. }