JavaTM 2 Platform
Standard Ed. 5.0

java.awt.font
Ŭ·¡½º ShapeGraphicAttribute

java.lang.Object 
  »óÀ§¸¦ È®Àå java.awt.font.GraphicAttribute 
      »óÀ§¸¦ È®Àå java.awt.font.ShapeGraphicAttribute

public final class ShapeGraphicAttribute
extends GraphicAttribute

ShapeGraphicAttribute Ŭ·¡½º´Â TextLayout¿¡ Çü»óÀ» ·»´õ¸µ ÇÏ´Â GraphicAttribute ±¸ÇöÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
GraphicAttribute

ÇÊµå °³¿ä
static boolean FILL
          ÀüºÎ Ä¥ÇÒ Çʿ䰡 ÀÖ´Â Çü»óÀ» ³ªÅ¸³»´Â ŰÀÔ´Ï´Ù.
static boolean STROKE
          1 Çȼ¿ÆøÀÇ stroke·Î ·»´õ¸µ ÇÒ Çʿ䰡 ÀÖ´Â Çü»óÀ» ³ªÅ¸³»´Â ŰÀÔ´Ï´Ù.
 
Ŭ·¡½º java.awt.font. GraphicAttribute ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå
BOTTOM_ALIGNMENT, CENTER_BASELINE, HANGING_BASELINE, ROMAN_BASELINE, TOP_ALIGNMENT
 
»ý¼ºÀÚ °³¿ä
ShapeGraphicAttribute (Shape  shape, int alignment, boolean stroke)
          ÁöÁ¤µÈ Shape ShapeGraphicAttribute¸¦ ±¸ÃàÇÕ´Ï´Ù.
 
¸Þ¼­µå °³¿ä
 void draw (Graphics2D  graphics, float x, float y)
          ÁöÁ¤µÈ Àå¼Ò¿¡ ±×·¡ÇÈÀ» ·»´õ¸µ ÇÕ´Ï´Ù.
 boolean equals (Object  rhs)
          ÀÌ ShapeGraphicAttribute¸¦, ÁöÁ¤µÈ Object¿Í ºñ±³ÇÕ´Ï´Ù.
 boolean equals (ShapeGraphicAttribute  rhs)
          ÀÌ ShapeGraphicAttributeÀ» ÁöÁ¤µÈ ShapeGraphicAttribute¿Í ºñ±³ÇÕ´Ï´Ù.
 float getAdvance ()
          ÀÌ ShapeGraphicAttribute À¯È¿³ÐÀ̸¦ ¸®ÅÏÇÕ´Ï´Ù.
 float getAscent ()
          ÀÌ ShapeGraphicAttribute ¾Æ¼¾Æ®¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 Rectangle2D getBounds ()
          ÀÌ ShapeGraphicAttribute¿¡ ÀÇÇØ ·»´õ¸µ µÇ´Â ÀüºñÆ®¸¦ µÑ·¯½Î´Â Rectangle2D¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 float getDescent ()
          ÀÌ ShapeGraphicAttribute µð ¼¾Æ®¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 int hashCode ()
          ÀÌ ShapeGraphicAttribute ÇØ½Ã Äڵ带 ¸®ÅÏÇÕ´Ï´Ù.
 
Ŭ·¡½º java.awt.font. GraphicAttribute ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
getAlignment, getJustificationInfo
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

ÇʵåÀÇ »ó¼¼

STROKE

public static final boolean STROKE
1 Çȼ¿ÆøÀÇ stroke·Î ·»´õ¸µ ÇÒ Çʿ䰡 ÀÖ´Â Çü»óÀ» ³ªÅ¸³»´Â ŰÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
Á¤¼ö Çʵ尪

FILL

public static final boolean FILL
ÀüºÎ Ä¥ÇÒ Çʿ䰡 ÀÖ´Â Çü»óÀ» ³ªÅ¸³»´Â ŰÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
Á¤¼ö Çʵ尪
»ý¼ºÀÚ »ó¼¼

ShapeGraphicAttribute

public ShapeGraphicAttribute(Shape  shape,
                             int alignment,
                             boolean stroke)
ÁöÁ¤µÈ Shape ShapeGraphicAttribute¸¦ ±¸ÃàÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
shape - ·»´õ¸µ ÇÏ´Â Shape. Shape´Â È£½ºÆ® TextLayout ÀÌ ShapeGraphicAttribute ¿øÁ¡À» ¿øÁ¡À¸·Î ÇØ, ·»´õ¸µ µÈ´Ù. ÀÌ °´Ã¼´Â shape¿¡ ÀÇ ÂüÁ¶¸¦ º¸°ü À¯ÁöÇÏ´Â
alignment - ÀÌ ShapeGraphicAttribute ¹èÄ¡ ¹æ¹ýÀÇ 1°³
stroke - Shape¸¦ stroke·Î ·»´õ¸µ ÇÒ Çʿ䰡 ÀÖ´Â °æ¿ì´Â true, Shape¸¦ ÀüºÎ Ä¥ÇÒ Çʿ䰡 ÀÖ´Â °æ¿ì´Â false
¸Þ¼­µåÀÇ »ó¼¼

getAscent

public float getAscent()
ÀÌ ShapeGraphicAttribute ¾Æ¼¾Æ®¸¦ ¸®ÅÏÇÕ´Ï´Ù. ShapeGraphicAttribute ¾Æ¼¾Æ®´Â ±× Shape ¿øÁ¡À¸·ÎºÎÅÍ, ±× Shape °æ°èÀÇ ÃÖ»óºÎ±îÁöÀÇ Á¤ÀÇ °Å¸®ÀÔ´Ï´Ù.

Á¤ÀÇ:
Ŭ·¡½º GraphicAttribute ³»ÀÇ getAscent
¹Ýȯ°ª:
ÀÌ ShapeGraphicAttribute ¾Æ¼¾Æ®
°ü·Ã Ç׸ñ:
GraphicAttribute.getBounds()

getDescent

public float getDescent()
ÀÌ ShapeGraphicAttribute µð ¼¾Æ®¸¦ ¸®ÅÏÇÕ´Ï´Ù. ShapeGraphicAttribute µð ¼¾Æ®¶õ ±× Shape ¿øÁ¡À¸·ÎºÎÅÍ, ±× Shape °æ°èÀÇ ÃÖÇϺαîÁöÀÇ °Å¸®ÀÔ´Ï´Ù.

Á¤ÀÇ:
Ŭ·¡½º GraphicAttribute ³»ÀÇ getDescent
¹Ýȯ°ª:
ÀÌ ShapeGraphicAttribute µð ¼¾Æ®
°ü·Ã Ç׸ñ:
GraphicAttribute.getBounds()

getAdvance

public float getAdvance()
ÀÌ ShapeGraphicAttribute À¯È¿³ÐÀ̸¦ ¸®ÅÏÇÕ´Ï´Ù. ShapeGraphicAttribute À¯È¿ÆøÀ̶õ ±× Shape ¿øÁ¡À¸·ÎºÎÅÍ, ±× Shape °æ°èÀÇ ¿ì´Ü±îÁöÀÇ °Å¸®ÀÔ´Ï´Ù.

Á¤ÀÇ:
Ŭ·¡½º GraphicAttribute ³»ÀÇ getAdvance
¹Ýȯ°ª:
ÀÌ ShapeGraphicAttribute À¯È¿Æø
°ü·Ã Ç׸ñ:
GraphicAttribute.getBounds()

draw

public void draw(Graphics2D  graphics,
                 float x,
                 float y)
ÁöÁ¤µÈ Àå¼Ò¿¡ ±×·¡ÇÈÀ» ·»´õ¸µ ÇÕ´Ï´Ù. Shape´Â ¿øÁ¡ (x,  y)¿¡¼­ ·»´õ¸µ µË´Ï´Ù.

Á¤ÀÇ:
Ŭ·¡½º GraphicAttribute ³»ÀÇ draw
ÆÄ¶ó¹ÌÅÍ:
graphics - ±×·¡ÇÈÀÇ ·»´õ¸µÃ³ Graphics2D
x,  y - ±×·¡ÇÈÀÌ ·»´õ¸µ µÇ´Â »ç¿ëÀÚ °ø°£ ÁÂÇ¥

getBounds

public Rectangle2D  getBounds()
ÀÌ ShapeGraphicAttribute¿¡ ÀÇÇØ ·»´õ¸µ µÇ´Â ÀüºñÆ®¸¦ µÑ·¯½Î´Â Rectangle2D¸¦ ¸®ÅÏÇÕ´Ï´Ù. À̰ÍÀº ·»´õ¸µ À§Ä¡¸¦ ±âÁØÀ¸·ÎÀÇÇØ ³ªÅ¸³³´Ï´Ù. ±×·¡ÇÈÀº ¿øÁ¡, ¾Æ¼¾Æ®, µð ¼¾Æ®, À¯È¿³ÐÀ̸¦ ³Ñ¾î ·»´õ¸µ ÇÒ ¼ö ÀÖ½À´Ï´Ù¸¸, ±× °æ¿ì´Â ±×·¡ÇÈÀ» ·»´õ¸µ ÇÏ´Â À§Ä¡¸¦ ÀÌ ¸Þ¼­µåÀÇ ±¸ÇöÀ¸·Î °¡¸®Å³ Çʿ䰡 ÀÖ½À´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º GraphicAttribute ³»ÀÇ getBounds
¹Ýȯ°ª:
ÀÌ ShapeGraphicAttribute¿¡ ÀÇÇØ ·»´õ¸µ µÇ´Â ÀüºñÆ®¸¦ µÑ·¯½Î´Â Rectangle2D

hashCode

public int hashCode()
ÀÌ ShapeGraphicAttribute ÇØ½Ã Äڵ带 ¸®ÅÏÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Object ³»ÀÇ hashCode
¹Ýȯ°ª:
ÀÌ ShapeGraphicAttribute ÇØ½Ã Äڵ尪
°ü·Ã Ç׸ñ:
Object.equals(java.lang.Object), Hashtable

equals

public boolean equals(Object  rhs)
ÀÌ ShapeGraphicAttribute¸¦, ÁöÁ¤µÈ Object¿Í ºñ±³ÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Object ³»ÀÇ equals
ÆÄ¶ó¹ÌÅÍ:
rhs - µ¿ÀÏÇÑÁö ¾î¶²Áö¸¦ ºñ±³ÇÏ´Â Object
¹Ýȯ°ª:
ÀÌ ShapeGraphicAttribute°¡ rhs¿Í µ¿ÀÏÇÑ °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
°ü·Ã Ç׸ñ:
Object.hashCode(), Hashtable

equals

public boolean equals(ShapeGraphicAttribute  rhs)
ÀÌ ShapeGraphicAttributeÀ» ÁöÁ¤µÈ ShapeGraphicAttribute¿Í ºñ±³ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
rhs - µ¿ÀÏÇÑÁö ¾î¶²Áö¸¦ ºñ±³ÇÏ´Â ShapeGraphicAttribute
¹Ýȯ°ª:
ÀÌ ShapeGraphicAttribute°¡ rhs¿Í µ¿ÀÏÇÑ °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false

JavaTM 2 Platform
Standard Ed. 5.0

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