JavaTM 2
Platform
Std.  Ed.  v1. 4.0

java.awt.geom
Ŭ·¡½º RectangularShape

java.lang.Object 
  |
  +--java.awt.geom.RectangularShape
¸ðµç ±¸Çö ÀÎÅÍÆäÀ̽º:
Cloneable , Shape
Á÷°èÀÇ ±âÁ¸ÀÇ ¼­ºê Ŭ·¡½º:
Arc2D , Ellipse2D , Rectangle2D , RoundRectangle2D

public abstract class RectangularShape
extends Object
implements Shape , Cloneable

RectangularShape ´Â Áö¿À¸ÞÆ®¸®‚ª ±¸Çü ÇÁ·¹ÀÓ¿¡ ÀÇÇØ Á¤ÀǵǴ ¸¹Àº Shape ¿ÀºêÁ§Æ®ÀÇ base classÀÔ´Ï´Ù. ÀÌ Å¬·¡½º´Â ±× ÀÚü·Î ƯÁ¤ÀÇ Áö¿À¸ÞÆ®¸®¸¦ Á÷Á¢ ÁöÁ¤ÇÏÁö ¾Ê°í ´ÜÁö ¸ðµç Shape ¿ÀºêÁ§Æ®ÀÇ ÀüÄ«Å×°í¸®¿¡ ÀÇÇØ °è½ÂµÇ´Â Á¶ÀÛ ¸Þ¼Òµå¸¦ Á¦°øÇÕ´Ï´Ù. ÀÌ Å¬·¡½º°¡ Á¦°øÇÏ´Â Á¶ÀÛ ¸Þ¼Òµå¸¦ »ç¿ëÇϸé(ÀÚ), ¼­ºê Ŭ·¡½º°¡ ±× Áö¿À¸ÞÆ®¸®¸¦ Á¤ÀÇÇϱâ À§ÇÑ ÂüÁ¶¸¦ Á¦°øÇÏ´Â ±¸Çü ÇÁ·¹ÀÓÀ» ¹®ÀÇÇϰųª º¯°æÇϰųª ÇÒ ¼ö ÀÖ½À´Ï´Ù.


»ý¼ºÀÚÀÇ °³¿ä
protected RectangularShape ()
          À̰ÍÀº ÀνºÅϽº¸¦ Á÷Á¢Àº »ý¼ºÇÒ ¼ö ¾ø´Â Ãß»ó Ŭ·¡½ºÀÔ´Ï´Ù.
 
¸Þ¼ÒµåÀÇ °³¿ä
 Object clone ()
          ÀÌ ¿ÀºêÁ§Æ®¿Í °°Àº Ŭ·¡½º¿¡¼­, °°Àº ³»¿ëÀÇ »õ·Î¿î ¿ÀºêÁ§Æ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
 boolean contains (Point2D  p)
          ÁöÁ¤µÈ Point2D °¡ Shape ÀÇ °æ°è³»¿¡ ÀÖÀ»Áö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.
 boolean contains (Rectangle2D  r)
          Shape ÀÇ ³»ºÎ°¡, ÁöÁ¤µÈ Rectangle2D ¸¦ ¿ÏÀüÇÏ°Ô ³»Æ÷ ÇÒÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.
 Rectangle getBounds ()
          Shape ÀÇ ¹Ù¿îµò±×º¹½º¸¦ µ¹·ÁÁÝ´Ï´Ù.
 double getCenterX ()
          Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ Áß½ÉÀÇ X ÁÂÇ¥¸¦ double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.
 double getCenterY ()
          Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ Áß½ÉÀÇ Y ÁÂÇ¥¸¦ double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.
 Rectangle2D getFrame ()
          ÀÌ ¿ÀºêÁ§Æ®ÀÇ Çü»ó Àüü¸¦ Á¤ÀÇÇϴ ǥ½Ã¹üÀ§ Rectangle2D ¸¦ µ¹·ÁÁÝ´Ï´Ù.
abstract  double getHeight ()
          Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ³ôÀ̸¦ double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.
 double getMaxX ()
          Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ÃÖ´ëÀÇ X ÁÂÇ¥¸¦ double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.
 double getMaxY ()
          Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ÃÖ´ëÀÇ Y ÁÂÇ¥¸¦ double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.
 double getMinX ()
          Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ÃÖ¼ÒÀÇ X ÁÂÇ¥¸¦ double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.
 double getMinY ()
          Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ÃÖ¼ÒÀÇ Y ÁÂÇ¥¸¦ double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.
 PathIterator getPathIterator (AffineTransform  at, double flatness)
          Shape ¿ÀºêÁ§Æ®ÀÇ °æ°è¸¦ µû¶ó ¹Ýº¹ ó¸® ÇÏ´Â ¹Ýº¹ÀÚ ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÖ¾î,Shape ¿ÀºêÁ§Æ®ÀÇ Áö¿À¸ÞÆ®¸®ÀÇ À±°ûÀÇ Æòźȭ µÈ ºä¿¡ÀÇ ¾×¼¼½º¸¦ Á¦°øÇÕ´Ï´Ù.
abstract  double getWidth ()
          Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ÆøÀ» double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.
abstract  double getX ()
          Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ Á»󱸼®ÀÇ X ÁÂÇ¥¸¦ double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.
abstract  double getY ()
          Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ Á»󱸼®ÀÇ Y ÁÂÇ¥¸¦ double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.
 boolean intersects (Rectangle2D  r)
          Shape ÀÇ ³»ºÎ°¡, ÁöÁ¤µÈ Rectangle2D ÀÇ ³»ºÎ¿Í ±³Â÷ÇÒÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.
abstract  boolean isEmpty ()
          RectangularShape °¡ ÇÏ´ÃÀΰ¡ ¾î¶²°¡¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.
abstract  void setFrame (double x, double y, double w, double h)
          ÀÌ Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ À§Ä¡¿Í »çÀÌÁ, ÁöÁ¤µÈ ±¸ÇüÄ¡·Î ¼³Á¤ÇÕ´Ï´Ù.
 void setFrame (Point2D  loc, Dimension2D  size)
          ÀÌ Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ À§Ä¡¿Í »çÀÌÁ, °¢°¢ ÁöÁ¤µÈ Point2D ¹× Dimension2D ·Î ¼³Á¤ÇÕ´Ï´Ù.
 void setFrame (Rectangle2D  r)
          ÀÌ Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀ», ÁöÁ¤µÈ Rectangle2D ·Î ¼³Á¤ÇÕ´Ï´Ù.
 void setFrameFromCenter (double centerX, double centerY, double cornerX, double cornerY)
          ÀÌ Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀ», ÁöÁ¤µÈ Áß½ÉÁ¡ ¹× ¸ðÅüÀÌÀÇ Á¡ÀÇ ÁÂÇ¥¿¡ ±Ù°ÅÇØ ¼³Á¤ÇÕ´Ï´Ù.
 void setFrameFromCenter (Point2D  center, Point2D  corner)
          ÀÌ Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀ», Áß½ÉÀ» ³ªÅ¸³»´Â Point2D ¹× ¸ðÅüÀ̸¦ ³ªÅ¸³»´Â Point2D ¿¡ ±Ù°ÅÇØ ¼³Á¤ÇÕ´Ï´Ù.
 void setFrameFromDiagonal (double x1, double y1, double x2, double y2)
          ÀÌ Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ´ë°¢¼±À», ÁöÁ¤µÈ 2 °³ÀÇ ÁÂÇ¥¿¡ ±Ù°ÅÇØ ¼³Á¤ÇÕ´Ï´Ù.
 void setFrameFromDiagonal (Point2D  p1, Point2D  p2)
          ÀÌ Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ´ë°¢¼±À», ÁöÁ¤µÈ 2 °³ÀÇ Point2D ¿ÀºêÁ§Æ®¿¡ ±Ù°ÅÇØ ¼³Á¤ÇÕ´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ¿¡¼­ »ó¼Ó¹ÞÀº ¸Þ¼Òµå
equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 
ÀÎÅÍÆäÀ̽º java.awt. Shape ¿¡¼­ »ó¼Ó¹ÞÀº ¸Þ¼Òµå
contains , contains , getBounds2D , getPathIterator , intersects
 

»ý¼ºÀÚÀÇ »ó¼¼

RectangularShape

protected RectangularShape()
À̰ÍÀº ÀνºÅϽº¸¦ Á÷Á¢Àº »ý¼ºÇÒ ¼ö ¾ø´Â Ãß»ó Ŭ·¡½ºÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
Arc2D , Ellipse2D , Rectangle2D , RoundRectangle2D
¸Þ¼ÒµåÀÇ »ó¼¼

getX

public abstract double getX()
Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ Á»󱸼®ÀÇ X ÁÂÇ¥¸¦ double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ Á»󱸼®ÀÇ x ÁÂÇ¥

getY

public abstract double getY()
Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ Á»󱸼®ÀÇ Y ÁÂÇ¥¸¦ double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ Á»󱸼®ÀÇ y ÁÂÇ¥

getWidth

public abstract double getWidth()
Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ÆøÀ» double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ Æø

getHeight

public abstract double getHeight()
Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ³ôÀ̸¦ double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ³ôÀÌ

getMinX

public double getMinX()
Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ÃÖ¼ÒÀÇ X ÁÂÇ¥¸¦ double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ÃÖ¼ÒÀÇ x ÁÂÇ¥

getMinY

public double getMinY()
Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ÃÖ¼ÒÀÇ Y ÁÂÇ¥¸¦ double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ÃÖ¼ÒÀÇ y ÁÂÇ¥

getMaxX

public double getMaxX()
Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ÃÖ´ëÀÇ X ÁÂÇ¥¸¦ double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ÃÖ´ëÀÇ x ÁÂÇ¥

getMaxY

public double getMaxY()
Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ÃÖ´ëÀÇ Y ÁÂÇ¥¸¦ double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ÃÖ´ëÀÇ y ÁÂÇ¥

getCenterX

public double getCenterX()
Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ Áß½ÉÀÇ X ÁÂÇ¥¸¦ double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Shape ¿ÀºêÁ§Æ®ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ Áß½ÉÀÇ x ÁÂÇ¥

getCenterY

public double getCenterY()
Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ Áß½ÉÀÇ Y ÁÂÇ¥¸¦ double Á¤¹Ðµµ·Î µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Shape ¿ÀºêÁ§Æ®ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ Áß½ÉÀÇ y ÁÂÇ¥

getFrame

public Rectangle2D  getFrame()
ÀÌ ¿ÀºêÁ§Æ®ÀÇ Çü»ó Àüü¸¦ Á¤ÀÇÇϴ ǥ½Ã¹üÀ§ Rectangle2D ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
double ÁÂÇ¥·Î ÁöÁ¤µÈ Rectangle2D
°ü·Ã Ç׸ñ:
setFrame(double, double, double, double) , setFrame(Point2D, Dimension2D) , setFrame(Rectangle2D)

isEmpty

public abstract boolean isEmpty()
RectangularShape °¡ ÇÏ´ÃÀΰ¡ ¾î¶²°¡¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. ºñ¾úÀ» °æ¿ì´Â RectangularShape ¿¡ area´Â ¾ø½À´Ï´Ù.

¹Ýȯ°ª:
RectangularShape °¡ ÇÏ´ÃÀÎ °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false

setFrame

public abstract void setFrame(double x,
                              double y,
                              double w,
                              double h)
ÀÌ Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ À§Ä¡¿Í »çÀÌÁ, ÁöÁ¤µÈ ±¸ÇüÄ¡·Î ¼³Á¤ÇÕ´Ï´Ù. Ç¥½Ã¹üÀ§ ±¸ÇüÀº RectangularShape ÀÇ ¼­ºê Ŭ·¡½º°¡ Áö¿À¸ÞÆ®¸®¸¦ Á¤ÀÇÇϱâ À§Çؼ­ »ç¿ëÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
w - ÁöÁ¤µÈ ±¸Çü Çü»óÀÇ Æø
h - ÁöÁ¤µÈ ±¸Çü Çü»óÀÇ ³ôÀÌ
°ü·Ã Ç׸ñ:
getFrame()

setFrame

public void setFrame(Point2D  loc,
                     Dimension2D  size)
ÀÌ Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ À§Ä¡¿Í »çÀÌÁ, °¢°¢ ÁöÁ¤µÈ Point2D ¹× Dimension2D ·Î ¼³Á¤ÇÕ´Ï´Ù. Ç¥½Ã¹üÀ§ ±¸ÇüÀº RectangularShape ÀÇ ¼­ºê Ŭ·¡½º°¡ Áö¿À¸ÞÆ®¸®¸¦ Á¤ÀÇÇϱâ À§Çؼ­ »ç¿ëÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
loc - ÁöÁ¤µÈ Point2D
size - ÁöÁ¤µÈ Dimension2D
°ü·Ã Ç׸ñ:
getFrame()

setFrame

public void setFrame(Rectangle2D  r)
ÀÌ Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀ», ÁöÁ¤µÈ Rectangle2D ·Î ¼³Á¤ÇÕ´Ï´Ù. Ç¥½Ã¹üÀ§ ±¸ÇüÀº RectangularShape ÀÇ ¼­ºê Ŭ·¡½º°¡ Áö¿À¸ÞÆ®¸®¸¦ Á¤ÀÇÇϱâ À§Çؼ­ »ç¿ëÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
r - ÁöÁ¤µÈ Rectangle2D
°ü·Ã Ç׸ñ:
getFrame()

setFrameFromDiagonal

public void setFrameFromDiagonal(double x1,
                                 double y1,
                                 double x2,
                                 double y2)
ÀÌ Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ´ë°¢¼±À», ÁöÁ¤µÈ 2 °³ÀÇ ÁÂÇ¥¿¡ ±Ù°ÅÇØ ¼³Á¤ÇÕ´Ï´Ù. Ç¥½Ã¹üÀ§ ±¸ÇüÀº RectangularShape ÀÇ ¼­ºê Ŭ·¡½º°¡ Áö¿À¸ÞÆ®¸®¸¦ Á¤ÀÇÇϱâ À§Çؼ­ »ç¿ëÇÕ´Ï´Ù.


setFrameFromDiagonal

public void setFrameFromDiagonal(Point2D  p1,
                                 Point2D  p2)
ÀÌ Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀÇ ´ë°¢¼±À», ÁöÁ¤µÈ 2 °³ÀÇ Point2D ¿ÀºêÁ§Æ®¿¡ ±Ù°ÅÇØ ¼³Á¤ÇÕ´Ï´Ù. Ç¥½Ã¹üÀ§ ±¸ÇüÀº RectangularShape ÀÇ ¼­ºê Ŭ·¡½º°¡ Áö¿À¸ÞÆ®¸®¸¦ Á¤ÀÇÇϱâ À§Çؼ­ »ç¿ëÇÕ´Ï´Ù.


setFrameFromCenter

public void setFrameFromCenter(double centerX,
                               double centerY,
                               double cornerX,
                               double cornerY)
ÀÌ Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀ», ÁöÁ¤µÈ Áß½ÉÁ¡ ¹× ¸ðÅüÀÌÀÇ Á¡ÀÇ ÁÂÇ¥¿¡ ±Ù°ÅÇØ ¼³Á¤ÇÕ´Ï´Ù. Ç¥½Ã¹üÀ§ ±¸ÇüÀº RectangularShape ÀÇ ¼­ºê Ŭ·¡½º°¡ Áö¿À¸ÞÆ®¸®¸¦ Á¤ÀÇÇϱâ À§Çؼ­ »ç¿ëÇÕ´Ï´Ù.


setFrameFromCenter

public void setFrameFromCenter(Point2D  center,
                               Point2D  corner)
ÀÌ Shape ÀÇ Ç¥½Ã¹üÀ§ ±¸ÇüÀ», Áß½ÉÀ» ³ªÅ¸³»´Â Point2D ¹× ¸ðÅüÀ̸¦ ³ªÅ¸³»´Â Point2D ¿¡ ±Ù°ÅÇØ ¼³Á¤ÇÕ´Ï´Ù. Ç¥½Ã¹üÀ§ ±¸ÇüÀº RectangularShape ÀÇ ¼­ºê Ŭ·¡½º°¡ Áö¿À¸ÞÆ®¸®¸¦ Á¤ÀÇÇϱâ À§Çؼ­ »ç¿ëÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
center - ÁöÁ¤µÈ Áß½ÉÀÇ Point2D
corner - ÁöÁ¤µÈ ¸ðÅüÀÌÀÇ Point2D

contains

public boolean contains(Point2D  p)
ÁöÁ¤µÈ Point2D °¡ Shape ÀÇ °æ°è³»¿¡ ÀÖÀ»Áö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Shape ³»ÀÇ contains
ÆÄ¶ó¹ÌÅÍ:
p - ÁöÁ¤µÈ Point2D
¹Ýȯ°ª:
Point2D °¡ Shape ¿ÀºêÁ§Æ®ÀÇ °æ°è³»¿¡ ÀÖ´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false

intersects

public boolean intersects(Rectangle2D  r)
Shape ÀÇ ³»ºÎ°¡, ÁöÁ¤µÈ Rectangle2D ÀÇ ³»ºÎ¿Í ±³Â÷ÇÒÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Shape ³»ÀÇ intersects
ÆÄ¶ó¹ÌÅÍ:
r - ÁöÁ¤µÈ Rectangle2D
¹Ýȯ°ª:
Shape ¿Í ÁöÁ¤µÈ Rectangle2D °¡ ±³Â÷ÇÏ´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
°ü·Ã Ç׸ñ:
Shape.intersects(double, double, double, double)

contains

public boolean contains(Rectangle2D  r)
Shape ÀÇ ³»ºÎ°¡, ÁöÁ¤µÈ Rectangle2D ¸¦ ¿ÏÀüÇÏ°Ô ³»Æ÷ ÇÒÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Shape ³»ÀÇ contains
ÆÄ¶ó¹ÌÅÍ:
r - ÁöÁ¤µÈ Rectangle2D
¹Ýȯ°ª:
Shape °¡ ÁöÁ¤µÈ Rectangle2D ¸¦ ¿ÏÀüÇÏ°Ô ³»Æ÷ ÇÏ´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
°ü·Ã Ç׸ñ:
Shape.contains(double, double, double, double)

getBounds

public Rectangle  getBounds()
Shape ÀÇ ¹Ù¿îµò±×º¹½º¸¦ µ¹·ÁÁÝ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Shape ³»ÀÇ getBounds
¹Ýȯ°ª:
Shape ÀÇ °æ°è¸¦ ³ªÅ¸³»´Â Rectangle ¿ÀºêÁ§Æ®
°ü·Ã Ç׸ñ:
Shape.getBounds2D()

getPathIterator

public PathIterator  getPathIterator(AffineTransform  at,
                                    double flatness)
Shape ¿ÀºêÁ§Æ®ÀÇ °æ°è¸¦ µû¶ó ¹Ýº¹ ó¸® ÇÏ´Â ¹Ýº¹ÀÚ ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÖ¾î,Shape ¿ÀºêÁ§Æ®ÀÇ Áö¿À¸ÞÆ®¸®ÀÇ À±°ûÀÇ Æòźȭ µÈ ºä¿¡ÀÇ ¾×¼¼½º¸¦ Á¦°øÇÕ´Ï´Ù.

¹Ýº¹ÀÚ¿¡ ÀÇÇØ µ¹·ÁÁÖ¾îÁö´Â °ÍÀº SEG_MOVETO, SEG_LINETO, ¹× SEG_CLOSE ÀÇ Æ÷ÀÎÆ® ŸÀÔ »ÓÀÔ´Ï´Ù.

°î¼± ¼¼±×¸ÕÆ®(segment)ÀÇ ºÐÇÒÀÇ ¾çÀº Æòźȭ µÇÁö ¾Ê´Â º¯È¯À» ¹ÞÀº °î¼±»óÀÇ Á¡ÀÌ, µ¹·ÁÁÖ¾îÁö´Â Æòźȭ µÈ ÆÐ½º ¼¼±×¸ÕÆ®(segment)·ÎºÎÅ͵µ ¿Íµµ ¶³¾îÁö´Â °Å¸®¸¦ ÁöÁ¤ÇÏ´Â flatness ÆÄ¶ó¹ÌÅÍ¿¡ ÀÇÇØ Á¦¾îµË´Ï´Ù. ÀÓÀÇ·Î AffineTransform ¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖ¾î ±× °æ¿ì´Â ¹Ýº¹ 󸮷Πµ¹·ÁÁÖ¾îÁö´Â ÁÂÇ¥´Â °Å±â¿¡ ÀÀÇØ º¯È¯µË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Shape ³»ÀÇ getPathIterator
ÆÄ¶ó¹ÌÅÍ:
at - ¹Ýº¹ 󸮷Πµ¹·ÁÁÖ¾îÁö´Â ÁÂÇ¥¿¡ Àû¿ëµÇ´Â ¿É¼ÇÀÇ AffineTransform. º¯È¯µÇ¾î ÀÖÁö ¾ÊÀº ÁÂÇ¥°¡ ÇÊ¿äÇÑ °æ¿ì´Â null
flatness - °î¼± ¼¼±×¸ÕÆ®(segment)¸¦ ÀÛ¼ºÇϱâ À§Çؼ­ »ç¿ëµÇ´Â ¶óÀÎ ¼¼±×¸ÕÆ®(segment)°¡, ¿øÀÇ °î¼±»óÀÇ ÀÓÀÇÀÇ Á¡À¸·ÎºÎÅÍ ¸Ö¾îÁú ¼ö°¡ ÀÖ´Â ÃÖ´ëÀÇ °Å¸®
¹Ýȯ°ª:
Shape ¿ÀºêÁ§Æ®ÀÇ Æòźȭ µÈ Áö¿À¸ÞÆ®¸®¿¡ÀÇ ¾×¼¼½º¸¦ Á¦°øÇÏ´Â PathIterator ¿ÀºêÁ§Æ®

clone

public Object  clone()
ÀÌ ¿ÀºêÁ§Æ®¿Í °°Àº Ŭ·¡½º¿¡¼­, °°Àº ³»¿ëÀÇ »õ·Î¿î ¿ÀºêÁ§Æ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Object ³»ÀÇ clone
¹Ýȯ°ª:
ÀÌ ÀνºÅϽºÀÇ º¹Á¦
¿¹¿Ü:
OutOfMemoryError - ÃæºÐÇÑ ¸Þ¸ð¸®°¡ ¾ø´Â °æ¿ì
µµÀÔµÈ ¹öÁ¯:
1.2
°ü·Ã Ç׸ñ:
Cloneable

JavaTM 2
Platform
Std.  Ed.  v1. 4.0

¹ö±×ÀÇ º¸°í¿Í ±â´ÉÀÇ ¸®Äù½ºÆ®
ÀÌ¿ÜÀÇ API ·¹ÆÛ·±½º ¹× °³¹ßÀÚ¿ë ¹®¼­¿¡ ´ëÇØ¼­´Â Java 2 SDK SE °³¹ßÀÚ¿ë ¹®¼­¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. °³¹ßÀÚÀü¿ëÀÇ »ó¼¼ÇÑ ÇØ¼³, °³³äÀÇ °³¿ä, ¿ë¾îÀÇ Á¤ÀÇ, ¹ö±×ÀÇ È¸ÇÇÃ¥, ¹× ÄÚµå ½Ç·Ê°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ À־ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.