Module :
java.desktop - Package :
java.awt
Version documentée : Java SE 17
Classe « Rectangle »
Informations générales
Héritage
java.lang.Object
java.awt.geom.RectangularShape
java.awt.geom.Rectangle2D
java.awt.Rectangle
Interfaces implémentées
java.awt.Shape
java.io.Serializable
Définition
public class Rectangle extends java.awt.geom.Rectangle2D
implements java.awt.Shape,
java.io.Serializable
Description
A venir.
Liste des attributs
Tous les attributs
Attributs d'instance
Attributs statiques
Attributs dépréciés
public |
int |
height |
|
public |
int |
width |
|
public |
int |
x |
|
public |
int |
y |
|
Liste des constructeurs
Constructeurs
Constructeurs dépréciés
Rectangle() |
|
Rectangle( Dimension d ) |
|
Rectangle( Point p ) |
|
Rectangle( Rectangle r ) |
|
Rectangle( int width, int height ) |
|
Rectangle( Point p, Dimension d ) |
|
Rectangle( int x, int y, int width, int height ) |
|
Liste des propriétés (getters/setters)
Propriétés
Propriétés dépréciées
public |
Rectangle |
bounds |
R/W |
public |
Rectangle2D |
bounds2D |
R/- |
public |
boolean |
empty |
R/- |
public |
double |
height |
R/- |
public |
Point |
location |
R/W |
public |
Dimension |
size |
R/W |
public |
double |
width |
R/- |
public |
double |
x |
R/- |
public |
double |
y |
R/- |
Propriétés héritées de la classe java.awt.geom.Rectangle2D
bounds2D, rect
Propriétés héritées de la classe java.awt.geom.RectangularShape
bounds, centerX, centerY, empty, frame, height, maxX, maxY, minX, minY, width, x, y
Propriétés héritées de la classe java.lang.Object
class
Liste des méthodes
Toutes les méthodes
Méthodes d'instance
Méthodes statiques
Méthodes concrètes
Méthodes abstraites
Méthodes dépréciées
public |
void |
add( Rectangle r ) |
|
public |
void |
add( Point pt ) |
|
public |
void |
add( int newx, int newy ) |
|
public |
boolean |
contains( int X, int Y, int W, int H ) |
|
public |
boolean |
contains( Rectangle r ) |
|
public |
boolean |
contains( Point p ) |
|
public |
boolean |
contains( int x, int y ) |
|
public |
Rectangle2D |
createIntersection( Rectangle2D r ) |
|
public |
Rectangle2D |
createUnion( Rectangle2D r ) |
|
public |
boolean |
equals( Object obj ) |
|
public |
Rectangle |
getBounds() |
|
public |
Rectangle2D |
getBounds2D() |
|
public |
double |
getHeight() |
|
public |
Point |
getLocation() |
|
public |
Dimension |
getSize() |
|
public |
double |
getWidth() |
|
public |
double |
getX() |
|
public |
double |
getY() |
|
public |
void |
grow( int h, int v ) |
|
public |
boolean |
inside( int X, int Y ) |
|
public |
Rectangle |
intersection( Rectangle r ) |
|
public |
boolean |
intersects( Rectangle r ) |
|
public |
boolean |
isEmpty() |
|
public |
void |
move( int x, int y ) |
|
public |
int |
outcode( double x, double y ) |
|
public |
void |
reshape( int x, int y, int width, int height ) |
|
public |
void |
resize( int width, int height ) |
|
public |
void |
setBounds( int x, int y, int width, int height ) |
|
public |
void |
setBounds( Rectangle r ) |
|
public |
void |
setLocation( Point p ) |
|
public |
void |
setLocation( int x, int y ) |
|
public |
void |
setRect( double x, double y, double width, double height ) |
|
public |
void |
setSize( int width, int height ) |
|
public |
void |
setSize( Dimension d ) |
|
public |
String |
toString() |
|
public |
void |
translate( int dx, int dy ) |
|
public |
Rectangle |
union( Rectangle r ) |
|
Méthodes héritées de la classe java.awt.geom.Rectangle2D
add, add, add, contains, contains, createIntersection, createUnion, equals, getBounds2D, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, outcode, setFrame, setRect, setRect, union
Méthodes héritées de la classe java.awt.geom.RectangularShape
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getHeight, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, getWidth, getX, getY, intersects, isEmpty, setFrame, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
Méthodes héritées de la classe java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Améliorations / Corrections
Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.
Emplacement :
Description des améliorations :