|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.awt.font.GraphicAttribute
java.awt.font.ImageGraphicAttribute
public final class 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°³
originX, originY
- ÅØ½ºÆ® ÀºÇà³»ÀÇ ImageGraphicAttribute
¿øÁ¡¿¡ ³ªÅ¸³ª´Â Image
³»ÀÇ Á¡ÀÇ ÁÂÇ¥¸Þ¼µåÀÇ »ó¼¼ |
---|
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
x, y
- ±×·¡ÇÈÀÌ ·»´õ¸µ µÇ´Â »ç¿ëÀÚ
°ø°£ ÁÂÇ¥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
, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
Object.hashCode()
,
Hashtable
public boolean equals(ImageGraphicAttribute rhs)
ImageGraphicAttribute
À» ÁöÁ¤µÈ ImageGraphicAttribute
¿Í
ºñ±³ÇÕ´Ï´Ù.
rhs
- µ¿ÀÏÇÑÁö ¾î¶²Áö¸¦ ºñ±³ÇÏ´Â ImageGraphicAttribute
ImageGraphicAttribute
°¡ rhs
¿Í
µ¿ÀÏÇÑ °æ¿ì´Â true
, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.