L'interface Shape
![]()
Les objets implantant cette interface seront à même d'être utilisés dans un certain nombre de fonctions mettant en oeuvre des surfaces (en particulier la méthode draw de la classe Graphics2D).
Valeur rendue  | 
    Nom et paramètres  | 
  
boolean  | 
    contains(double x, double y) | 
boolean  | 
    contains(double x, double y, double w, double h) | 
boolean  | 
    contains(Point2D p) | 
boolean  | 
    contains(Rectangle2D r) | 
Rectangle  | 
    getBounds() | 
Rectangle2D  | 
    getBounds2D() | 
PathIterator  | 
    getPathIterator(AffineTransform at) | 
PathIterator  | 
    getPathIterator(AffineTransform at, double flatness) | 
boolean  | 
    intersects(double x, double y, double w, double h) | 
boolean  | 
    intersects(Rectangle2D r) | 
void  | 
    clearRect(int x,int y,int width,int height)  | 
  
void  | 
    clipRect(int x,int y,int width,int height)  | 
  
Les classes qui implantent Shape sont: