JavaTM 2 Platform
Standard Ed. 5.0

java.awt.geom
Ŭ·¡½º RectangularShape

java.lang.Object 
  »óÀ§¸¦ È®Àå java.awt.geom.RectangularShape
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
Shape, Cloneable
Á÷°èÀÇ ±âÁ¸ÀÇ ¼­ºê Ŭ·¡½º:
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 ¿¡ ¿µ¿ªÀº ¾ø½À´Ï´Ù.

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

setFrame

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

ÆÄ¶ó¹ÌÅÍ:
x,  y - ÁöÁ¤µÈ ±¸Çü Çü»óÀÇ Á»󱸼®ÀÇ ÁÂÇ¥
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 ¼­ºê Ŭ·¡½º°¡ Áö¿À¸ÞÆ®¸®¸¦ Á¤ÀÇÇϱâ À§Çؼ­ »ç¿ëÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
x1,  y1 - ÃÖÃÊ·Î ÁöÁ¤µÈ ÁÂÇ¥
x2,  y2 - 2 ¹øÂ°·Î ÁöÁ¤µÈ ÁÂÇ¥

setFrameFromDiagonal

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

ÆÄ¶ó¹ÌÅÍ:
p1,  p2 - ÁöÁ¤µÈ 2 °³ÀÇ Point2D ¿ÀºêÁ§Æ®

setFrameFromCenter

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

ÆÄ¶ó¹ÌÅÍ:
centerX,  centerY - Áß½ÉÁ¡ÀÇ ÁÂÇ¥
cornerX,  cornerY - °¢ÀÇ Á¡ÀÇ ÁÂÇ¥

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
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.