|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.awt.geom.RectangularShape
java.awt.geom.Rectangle2D
java.awt.geom.Rectangle2D.Float
public static class Rectangle2D.Float
Float
Ŭ·¡½º´Â float ÁÂÇ¥·Î ÁöÁ¤µÇ´Â ±¸ÇüÀ» Á¤ÀÇÇÕ´Ï´Ù.
Áßø(Nested) Ŭ·¡½º °³¿ä |
---|
Ŭ·¡½º java.awt.geom. Rectangle2D ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º |
---|
Rectangle2D.Double,
Rectangle2D.Float |
ÇÊµå °³¿ä | |
---|---|
float |
height
ÀÌ Rectangle2D
³ôÀÌÀÔ´Ï´Ù. |
float |
width
ÀÌ Rectangle2D
ÆøÀÔ´Ï´Ù. |
float |
x
ÀÌ Rectangle2D
x ÁÂÇ¥ÀÔ´Ï´Ù. |
float |
y
ÀÌ Rectangle2D
y ÁÂÇ¥ÀÔ´Ï´Ù. |
Ŭ·¡½º java.awt.geom. Rectangle2D ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
OUT_BOTTOM,
OUT_LEFT,
OUT_RIGHT,
OUT_TOP |
»ý¼ºÀÚ °³¿ä | |
---|---|
Rectangle2D.Float ()
»õ·Î¿î Rectangle2D ¸¦ ±¸ÃàÇØ, À§Ä¡ (0.0, 0. 0) ¹× »çÀÌÁî (0.0, 0. 0)¿¡ ÃʱâÈÇÕ´Ï´Ù. |
|
Rectangle2D.Float (float x,
float y,
float w,
float h)
ÁöÁ¤µÈ float ÁÂÇ¥·ÎºÎÅÍ Rectangle2D ¸¦ ±¸Ãà ¹× ÃʱâÈÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
Rectangle2D |
createIntersection (Rectangle2D r)
ÀÌ Rectangle2D ¿Í
ÁöÁ¤µÈ Rectangle2D
°øÅë ºÎºÐÀ» ³ªÅ¸³»´Â »õ·Î¿î Rectangle2D °´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
Rectangle2D |
createUnion (Rectangle2D r)
ÀÌ Rectangle2D ¿Í
ÁöÁ¤µÈ Rectangle2D
ÈÁýÇÕÀ» ³ªÅ¸³»´Â »õ·Î¿î Rectangle2D °´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
Rectangle2D |
getBounds2D ()
ÀÌ Rectangle2D
°íÁ¤¹Ðµµ ¹Ù¿îµù¹Ú½º¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
double |
getHeight ()
ÀÌ Rectangle2D
³ôÀ̸¦ ¹èÁ¤¹Ðµµ·Î ¸®ÅÏÇÕ´Ï´Ù. |
double |
getWidth ()
ÀÌ Rectangle2D
³ÐÀ̸¦ ¹èÁ¤¹Ðµµ·Î ¸®ÅÏÇÕ´Ï´Ù. |
double |
getX ()
ÀÌ Rectangle2D
X ÁÂÇ¥¸¦ ¹èÁ¤¹Ðµµ·Î ¸®ÅÏÇÕ´Ï´Ù. |
double |
getY ()
ÀÌ Rectangle2D
Y ÁÂÇ¥¸¦ ¹èÁ¤¹Ðµµ·Î ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
isEmpty ()
ÀÌ Rectangle2D °¡ ºñ¾îÀÖ´ÂÁö ÆÇÁ¤ÇÕ´Ï´Ù. |
int |
outcode (double x,
double y)
ÀÌ Rectangle2D ¸¦ ±âÁØ¿¡
ÁöÁ¤µÈ float ÇüÀÇ ÁÂÇ¥ÀÇ Àå¼Ò¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. |
void |
setRect (double x,
double y,
double w,
double h)
ÀÌ Rectangle2D
À§Ä¡ ¹× »çÀÌÁ, ÁöÁ¤µÈ double ÇüÀÇ °ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. |
void |
setRect (float x,
float y,
float w,
float h)
ÀÌ Rectangle2D
À§Ä¡ ¹× »çÀÌÁ, ÁöÁ¤µÈ float ÇüÀÇ °ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. |
void |
setRect (Rectangle2D r)
ÀÌ Rectangle2D ¸¦, ÁöÁ¤µÈ Rectangle2D ¿Í
°°°Ô µÇµµ·Ï ¼³Á¤ÇÕ´Ï´Ù. |
String |
toString ()
ÀÌ Rectangle2D
String Ç¥ÇöÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Ŭ·¡½º java.awt.geom. Rectangle2D ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
add,
add,
add,
contains,
contains,
equals,
getPathIterator,
getPathIterator,
hashCode,
intersect,
intersects,
intersectsLine,
intersectsLine,
outcode,
setFrame,
union |
Ŭ·¡½º java.awt.geom. RectangularShape ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
contains,
contains,
getBounds,
getCenterX,
getCenterY,
getFrame,
getMaxX,
getMaxY,
getMinX,
getMinY,
intersects,
setFrame,
setFrame,
setFrameFromCenter,
setFrameFromCenter,
setFrameFromDiagonal,
setFrameFromDiagonal |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
ÇʵåÀÇ »ó¼¼ |
---|
public float x
Rectangle2D
x ÁÂÇ¥ÀÔ´Ï´Ù.
public float y
Rectangle2D
y ÁÂÇ¥ÀÔ´Ï´Ù.
public float width
Rectangle2D
ÆøÀÔ´Ï´Ù.
public float height
Rectangle2D
³ôÀÌÀÔ´Ï´Ù.
»ý¼ºÀÚ »ó¼¼ |
---|
public Rectangle2D.Float()
Rectangle2D
¸¦ ±¸ÃàÇØ, À§Ä¡ (0.0, 0. 0) ¹× »çÀÌÁî (0.0, 0. 0)¿¡ ÃʱâÈÇÕ´Ï´Ù.
public Rectangle2D.Float(float x, float y, float w, float h)
Rectangle2D
¸¦ ±¸Ãà ¹× ÃʱâÈÇÕ´Ï´Ù.
x, y
- »õ·Ó°Ô ±¸ÃàµÇ´Â Rectangle2D
Á»󱸼®ÀÇ ÁÂÇ¥w
- »õ·Ó°Ô ±¸ÃàµÇ´Â Rectangle2D
Æøh
- »õ·Ó°Ô ±¸ÃàµÇ´Â Rectangle2D
³ôÀ̸޼µåÀÇ »ó¼¼ |
---|
public double getX()
Rectangle2D
X ÁÂÇ¥¸¦ ¹èÁ¤¹Ðµµ·Î ¸®ÅÏÇÕ´Ï´Ù.
RectangularShape
³»ÀÇ getX
Rectangle2D
X ÁÂÇ¥public double getY()
Rectangle2D
Y ÁÂÇ¥¸¦ ¹èÁ¤¹Ðµµ·Î ¸®ÅÏÇÕ´Ï´Ù.
RectangularShape
³»ÀÇ getY
Rectangle2D
Y ÁÂÇ¥public double getWidth()
Rectangle2D
³ÐÀ̸¦ ¹èÁ¤¹Ðµµ·Î ¸®ÅÏÇÕ´Ï´Ù.
RectangularShape
³»ÀÇ getWidth
Rectangle2D
Æøpublic double getHeight()
Rectangle2D
³ôÀ̸¦ ¹èÁ¤¹Ðµµ·Î ¸®ÅÏÇÕ´Ï´Ù.
RectangularShape
³»ÀÇ getHeight
Rectangle2D
³ôÀÌpublic boolean isEmpty()
Rectangle2D
°¡ ºñ¾îÀÖ´ÂÁö ÆÇÁ¤ÇÕ´Ï´Ù.
RectangularShape
³»ÀÇ isEmpty
Rectangle2D
°¡ ºñ¾îÀÖ´Â °æ¿ì´Â true
, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
public void setRect(float x, float y, float w, float h)
Rectangle2D
À§Ä¡ ¹× »çÀÌÁ, ÁöÁ¤µÈ float ÇüÀÇ °ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù.
x, y
- ÀÌ Rectangle2D
Á»󱸼®ÀÇ À§Ä¡¸¦ ³ªÅ¸³»´Â ÁÂÇ¥w
- ÀÌ Rectangle2D
³ÐÀ̸¦ ³ªÅ¸³»´Â °ªh
- ÀÌ Rectangle2D
³ôÀ̸¦ ³ªÅ¸³»´Â °ªpublic void setRect(double x, double y, double w, double h)
Rectangle2D
À§Ä¡ ¹× »çÀÌÁ, ÁöÁ¤µÈ double ÇüÀÇ °ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù.
Rectangle2D
³»ÀÇ setRect
x, y
- ÀÌ Rectangle2D
Á»󱸼®ÀÇ À§Ä¡¸¦ ³ªÅ¸³»´Â ÁÂÇ¥w
- ÀÌ Rectangle2D
³ÐÀ̸¦ ³ªÅ¸³»´Â °ªh
- ÀÌ Rectangle2D
³ôÀ̸¦ ³ªÅ¸³»´Â °ªpublic void setRect(Rectangle2D r)
Rectangle2D
¸¦, ÁöÁ¤µÈ Rectangle2D
¿Í
°°°Ô µÇµµ·Ï ¼³Á¤ÇÕ´Ï´Ù.
Rectangle2D
³»ÀÇ setRect
r
- ÁöÁ¤µÈ Rectangle2D
public int outcode(double x, double y)
Rectangle2D
¸¦ ±âÁØ¿¡
ÁöÁ¤µÈ float ÇüÀÇ ÁÂÇ¥ÀÇ Àå¼Ò¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. ÀÌ ¸Þ¼µå´Â ÀÌ Rectangle2D
°¢º¯¿¡ ´ëÇØ, ÁöÁ¤µÈ ÁÂÇ¥°¡ ÀÌ Rectangle2D
¿ÜÀÇ ¿·°ú °°Àº »çÀ̵忡°Ô ÀÖ´ÂÁö¸¦ ³ªÅ¸³»´Â ÀûÀýÇÑ ¸¶½ºÅ©Ä¡ÀÇ 2 Ç×³í¸®ÇÕÀ» °è»êÇÕ´Ï´Ù.
Rectangle2D
³»ÀÇ outcode
x, y
- ÁöÁ¤µÈ ÁÂÇ¥
Rectangle2D.OUT_LEFT
,
Rectangle2D.OUT_TOP
,
Rectangle2D.OUT_RIGHT
,
Rectangle2D.OUT_BOTTOM
public Rectangle2D getBounds2D()
Rectangle2D
°íÁ¤¹Ðµµ ¹Ù¿îµù¹Ú½º¸¦ ¸®ÅÏÇÕ´Ï´Ù.
Shape
³»ÀÇ getBounds2D
Rectangle2D
³»ÀÇ getBounds2D
Rectangle2D
¹Ù¿îµù¹Ú½º
Shape.getBounds()
public Rectangle2D createIntersection(Rectangle2D r)
Rectangle2D
¿Í
ÁöÁ¤µÈ Rectangle2D
°øÅë ºÎºÐÀ» ³ªÅ¸³»´Â »õ·Î¿î Rectangle2D
°´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù.
Rectangle2D
³»ÀÇ createIntersection
r
- ÀÌ Rectangle2D
¿Í
±³Â÷ÇÏ´Â Rectangle2D
Rectangle2D
°÷ÀÇ Rectangle2D
¾çÂÊ ¸ðµÎ¿¡ Æ÷ÇԵǴ ÃÖ´ëÀÇ Rectangle2D
public Rectangle2D createUnion(Rectangle2D r)
Rectangle2D
¿Í
ÁöÁ¤µÈ Rectangle2D
ÈÁýÇÕÀ» ³ªÅ¸³»´Â »õ·Î¿î Rectangle2D
°´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù.
Rectangle2D
³»ÀÇ createUnion
r
- ÀÌ Rectangle2D
¿Í
°áÇյǴ Rectangle2D
Rectangle2D
°÷ÀÇ Rectangle2D
¾çÂÊ ¸ðµÎ¸¦ Æ÷ÇÔÇÑ ÃÖ¼ÒÀÇ Rectangle2D
public String toString()
Rectangle2D
String
Ç¥ÇöÀ» ¸®ÅÏÇÕ´Ï´Ù.
Object
³»ÀÇ toString
Rectangle2D
¸¦ ³ªÅ¸³»´Â String
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.