JavaTM 2
Platform
Std.  Ed.  v1. 4.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 ´Â ÀÌ ShapeGraphicAttribute ÀÇ ¿øÁ¡À» ±âÁ¡À¸·Î¼­ È£½ºÆ® TextLayout ¿¡ Ç¥Çö µÈ´Ù. ¿ÀºêÁ§Æ®´Â shape ¿¡ÀÇ ÂüÁ¶¸¦ ÀúÀåÇÏ´Â
alignment - ShapeGraphicAttribute ·ÎºÎÅÍÀÇ ¹èÄ¡ ¹æ¹ýÀÇ Çϳª
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 - ±×·¡ÇÈÀÇ Ç¥Çö area°¡ µÇ´Â Graphics2D

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
Std.  Ed.  v1. 4.0

¹ö±×ÀÇ º¸°í¿Í ±â´ÉÀÇ ¸®Äù½ºÆ®
ÀÌ¿ÜÀÇ API ·¹ÆÛ·±½º ¹× °³¹ßÀÚ¿ë ¹®¼­¿¡ ´ëÇØ¼­´Â Java 2 SDK SE °³¹ßÀÚ¿ë ¹®¼­¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. °³¹ßÀÚÀü¿ëÀÇ »ó¼¼ÇÑ ÇØ¼³, °³³äÀÇ °³¿ä, ¿ë¾îÀÇ Á¤ÀÇ, ¹ö±×ÀÇ È¸ÇÇÃ¥, ¹× ÄÚµå ½Ç·Ê°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

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.