|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
| ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå | ||||||||||
java.lang.Object
|
+--java.awt.font.GraphicAttribute
|
+--java.awt.font.ImageGraphicAttribute
ImageGraphicAttribute Ŭ·¡½º´Â TextLayout ¿¡ À̹ÌÁö¸¦ Ç¥Çö ÇÏ´Â GraphicAttribute ÀÇ ±¸ÇöÀÔ´Ï´Ù.
GraphicAttribute | ÇʵåÀÇ °³¿ä |
| Ŭ·¡½º java.awt.font. GraphicAttribute ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
BOTTOM_ALIGNMENT , CENTER_BASELINE , HANGING_BASELINE , ROMAN_BASELINE , TOP_ALIGNMENT |
| »ý¼ºÀÚÀÇ °³¿ä | |
ImageGraphicAttribute (Image image,
int alignment)
ÁöÁ¤µÈ Image ·ÎºÎÅÍ ImageGraphicAttribute ¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
ImageGraphicAttribute (Image image,
int alignment,
float originX,
float originY)
ÁöÁ¤µÈ Image ·ÎºÎÅÍ ImageGraphicAttribute ¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
| ¸Þ¼ÒµåÀÇ °³¿ä | |
void |
draw (Graphics2D graphics,
float x,
float y)
±×·¡ÇÈÀ», ÁöÁ¤µÈ À§Ä¡¿¡ Ç¥Çö ÇÕ´Ï´Ù. |
boolean |
equals (ImageGraphicAttribute rhs)
ÀÌ ImageGraphicAttribute À», ÁöÁ¤µÈ ImageGraphicAttribute ¿Í ºñ±³ÇÕ´Ï´Ù. |
boolean |
equals (Object rhs)
ÀÌ ImageGraphicAttribute ¸¦, ÁöÁ¤µÈ Object ¿Í ºñ±³ÇÕ´Ï´Ù. |
float |
getAdvance ()
ÀÌ ImageGraphicAttribute ÀÇ À¯È¿ÆøÀ» µ¹·ÁÁÝ´Ï´Ù. |
float |
getAscent ()
ÀÌ ImageGraphicAttribute ÀÇ ¾Æ¼¾Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Rectangle2D |
getBounds ()
ÀÌ ImageGraphicAttribute ¿¡ ÀÇÇØ Ç¥Çö µÇ´Â ÀüºñÆ®¸¦ µÑ·¯½Î´Â Rectangle2D ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
float |
getDescent ()
ÀÌ ImageGraphicAttribute ÀÇ µð ¼¾Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù. |
int |
hashCode ()
ÀÌ ImageGraphicAttribute ÀÇ ÇØ½Ã Äڵ带 µ¹·ÁÁÝ´Ï´Ù. |
| Ŭ·¡½º java.awt.font. GraphicAttribute ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
getAlignment , getJustificationInfo |
| Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , finalize , getClass , notify , notifyAll , toString , wait , wait , wait |
| »ý¼ºÀÚÀÇ »ó¼¼ |
public ImageGraphicAttribute(Image image,
int alignment)
Image ·ÎºÎÅÍ ImageGraphicAttribute ¸¦ ±¸ÃàÇÕ´Ï´Ù. ¿øÁ¡Àº (0, 0)ÀÔ´Ï´Ù.
image - ÀÌ ImageGraphicAttribute ¿¡ ÀÇÇØ Ç¥Çö µÇ´Â Image. ÀÌ ¿ÀºêÁ§Æ®´Â image ¿¡ ´ëÇÑ ÂüÁ¶¸¦ º¸°ü À¯ÁöÇÏ´Âalignment - ÀÌ ImageGraphicAttribute ÀÇ ¹èÄ¡ ¹æ¹ýÀÇ 1 °³
public ImageGraphicAttribute(Image image,
int alignment,
float originX,
float originY)
Image ·ÎºÎÅÍ ImageGraphicAttribute ¸¦ ±¸ÃàÇÕ´Ï´Ù. Image ÀÇ Æ÷ÀÎÆ® (originX, originY)´Â ÅØ½ºÆ®³»ÀÇ ImageGraphicAttribute ÀÇ ¿øÁ¡¿¡ ³ªÅ¸³³´Ï´Ù.
image - ÀÌ ImageGraphicAttribute ¿¡ ÀÇÇØ Ç¥Çö µÇ´Â Image. ÀÌ ¿ÀºêÁ§Æ®´Â image ¿¡ ´ëÇÑ ÂüÁ¶¸¦ º¸°ü À¯ÁöÇÏ´Âalignment - ÀÌ ImageGraphicAttribute ÀÇ ¹èÄ¡ ¹æ¹ýÀÇ 1 °³| ¸Þ¼ÒµåÀÇ »ó¼¼ |
public float getAscent()
ImageGraphicAttribute ÀÇ ¾Æ¼¾Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù. ImageGraphicAttribute ÀÇ ¾Æ¼¾Æ®¶õ, À̹ÌÁöÀÇ »ó´Ü¿¡¼ ¿øÁ¡±îÁöÀÇ °Å¸®ÀÔ´Ï´Ù.
GraphicAttribute ³»ÀÇ getAscent ImageGraphicAttribute ÀÇ ¾Æ¼¾Æ®GraphicAttribute.getBounds() public float getDescent()
ImageGraphicAttribute ÀÇ µð ¼¾Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù. ImageGraphicAttribute ÀÇ µð ¼¾Æ®¶õ, ¿øÁ¡À¸·ÎºÎÅÍ À̹ÌÁöÀÇ ÇϴܱîÁöÀÇ °Å¸®ÀÔ´Ï´Ù.
GraphicAttribute ³»ÀÇ getDescent ImageGraphicAttribute ÀÇ µð ¼¾Æ®GraphicAttribute.getBounds() public float getAdvance()
ImageGraphicAttribute ÀÇ À¯È¿ÆøÀ» µ¹·ÁÁÝ´Ï´Ù. ImageGraphicAttribute ÀÇ À¯È¿ÆøÀ̶õ, ¿øÁ¡À¸·ÎºÎÅÍ À̹ÌÁöÀÇ ¿ì´Ü±îÁöÀÇ °Å¸®ÀÔ´Ï´Ù.
GraphicAttribute ³»ÀÇ getAdvance ImageGraphicAttribute ÀÇ À¯È¿ÆøGraphicAttribute.getBounds() public Rectangle2D getBounds()
ImageGraphicAttribute ¿¡ ÀÇÇØ Ç¥Çö µÇ´Â ÀüºñÆ®¸¦ µÑ·¯½Î´Â Rectangle2D ¸¦ µ¹·ÁÁÝ´Ï´Ù. À̰ÍÀº Ç¥Çö À§Ä¡¸¦ ±âÁØÀ¸·Î ÇØ ³ªÅ¸³³´Ï´Ù. ±×·¡ÇÈÀº ¿øÁ¡, ¾Æ¼¾Æ®, µð ¼¾Æ®, À¯È¿ÆøÀ» ³Ñ¾î Ç¥Çö ÇÒ ¼ö ÀÖ½À´Ï´Ù¸¸, ±× °æ¿ì´Â ±×·¡ÇÈÀ» Ç¥Çö ÇÏ´Â À§Ä¡¸¦ ÀÌ ¸Þ¼ÒµåÀÇ ±¸ÇöÀ¸·Î °¡¸®Å³ Çʿ䰡 ÀÖ½À´Ï´Ù.
GraphicAttribute ³»ÀÇ getBounds ImageGraphicAttribute ¿¡ ÀÇÇØ Ç¥Çö µÇ´Â ÀüºñÆ®¸¦ µÑ·¯½Î´Â Rectangle2D
public void draw(Graphics2D graphics,
float x,
float y)
GraphicAttribute ³»ÀÇ draw graphics - ±×·¡ÇÈÀÇ Ç¥ÇöóÀÇ Graphics2D public int hashCode()
ImageGraphicAttribute ÀÇ ÇØ½Ã Äڵ带 µ¹·ÁÁÝ´Ï´Ù.
Object ³»ÀÇ hashCode Object.equals(java.lang.Object) ,
Hashtable public boolean equals(Object rhs)
ImageGraphicAttribute ¸¦, ÁöÁ¤µÈ Object ¿Í ºñ±³ÇÕ´Ï´Ù.
Object ³»ÀÇ equals rhs - µ¿ÀÏÇÑÁö ¾î¶²Áö¸¦ ºñ±³ÇÏ´Â Object
ImageGraphicAttribute °¡ rhs ¿Í µ¿ÀÏÇÑ °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â falseObject.hashCode() ,
Hashtable public boolean equals(ImageGraphicAttribute rhs)
ImageGraphicAttribute À», ÁöÁ¤µÈ ImageGraphicAttribute ¿Í ºñ±³ÇÕ´Ï´Ù.
rhs - µ¿ÀÏÇÑÁö ¾î¶²Áö¸¦ ºñ±³ÇÏ´Â ImageGraphicAttribute
ImageGraphicAttribute °¡ rhs ¿Í µ¿ÀÏÇÑ °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
| ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå | ||||||||||
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.