|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.awt.font.GraphicAttribute
java.awt.font.ShapeGraphicAttribute
public final class ShapeGraphicAttribute
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 |
ÇʵåÀÇ »ó¼¼ |
---|
public static final boolean STROKE
public static final boolean FILL
»ý¼ºÀÚ »ó¼¼ |
---|
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
¸Þ¼µåÀÇ »ó¼¼ |
---|
public float getAscent()
ShapeGraphicAttribute
¾Æ¼¾Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù. ShapeGraphicAttribute
¾Æ¼¾Æ®´Â ±× Shape
¿øÁ¡À¸·ÎºÎÅÍ, ±× Shape
°æ°èÀÇ ÃÖ»óºÎ±îÁöÀÇ Á¤ÀÇ °Å¸®ÀÔ´Ï´Ù.
GraphicAttribute
³»ÀÇ getAscent
ShapeGraphicAttribute
¾Æ¼¾Æ®GraphicAttribute.getBounds()
public float getDescent()
ShapeGraphicAttribute
µð ¼¾Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù. ShapeGraphicAttribute
µð ¼¾Æ®¶õ
±× Shape
¿øÁ¡À¸·ÎºÎÅÍ, ±× Shape
°æ°èÀÇ ÃÖÇϺαîÁöÀÇ °Å¸®ÀÔ´Ï´Ù.
GraphicAttribute
³»ÀÇ getDescent
ShapeGraphicAttribute
µð ¼¾Æ®GraphicAttribute.getBounds()
public float getAdvance()
ShapeGraphicAttribute
À¯È¿ÆøÀ» µ¹·ÁÁÝ´Ï´Ù. ShapeGraphicAttribute
À¯È¿ÆøÀ̶õ
±× Shape
¿øÁ¡À¸·ÎºÎÅÍ, ±× Shape
°æ°èÀÇ ¿ì´Ü±îÁöÀÇ °Å¸®ÀÔ´Ï´Ù.
GraphicAttribute
³»ÀÇ getAdvance
ShapeGraphicAttribute
À¯È¿ÆøGraphicAttribute.getBounds()
public void draw(Graphics2D graphics, float x, float y)
Shape
´Â
¿øÁ¡ (x, y)¿¡¼ ·»´õ¸µ µË´Ï´Ù.
GraphicAttribute
³»ÀÇ draw
graphics
- ±×·¡ÇÈÀÇ ·»´õ¸µÃ³ Graphics2D
x, y
- ±×·¡ÇÈÀÌ ·»´õ¸µ µÇ´Â À¯Àú °ø°£ ÁÂÇ¥public Rectangle2D getBounds()
ShapeGraphicAttribute
¿¡
ÇØ ·»´õ¸µ µÇ´Â ÀüºñÆ®¸¦ µÑ·¯½Î´Â Rectangle2D
¸¦
µ¹·ÁÁÝ´Ï´Ù. À̰ÍÀº, ·»´õ¸µ À§Ä¡¸¦ ±âÁØÀ¸·Î ÇØ ³ªÅ¸³³´Ï´Ù. ±×·¡ÇÈÀº, ¿øÁ¡, ¾Æ¼¾Æ®, µð ¼¾Æ®, À¯È¿ÆøÀ» ³Ñ¾î ·»´õ¸µ ÇÒ ¼ö ÀÖ½À´Ï´Ù¸¸, ±× °æ¿ì´Â ±×·¡ÇÈÀ» ·»´õ¸µ ÇÏ´Â À§Ä¡¸¦ ÀÌ ¸Þ¼µåÀÇ ±¸ÇöÀ¸·Î °¡¸®Å³ Çʿ䰡 ÀÖ½À´Ï´Ù.
GraphicAttribute
³»ÀÇ getBounds
ShapeGraphicAttribute
¿¡
ÇØ ·»´õ¸µ µÇ´Â ÀüºñÆ®¸¦ µÑ·¯½Î´Â Rectangle2D
public int hashCode()
ShapeGraphicAttribute
ÇØ½Ã Äڵ带 µ¹·ÁÁÝ´Ï´Ù.
Object
³»ÀÇ hashCode
ShapeGraphicAttribute
ÇØ½Ã ÄÚµåÄ¡Object.equals(java.lang.Object)
,
Hashtable
public boolean equals(Object rhs)
ShapeGraphicAttribute
¸¦
, ÁöÁ¤µÈ Object
¿Í ºñ±³ÇÕ´Ï´Ù.
Object
³»ÀÇ equals
rhs
- µ¿ÀÏÇÑÁö ¾î¶²Áö¸¦ ºñ±³ÇÏ´Â Object
ShapeGraphicAttribute
°¡ rhs
¿Í µ¿ÀÏÇÑ °æ¿ì´Â true
, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
Object.hashCode()
,
Hashtable
public boolean equals(ShapeGraphicAttribute rhs)
ShapeGraphicAttribute
À»
, ÁöÁ¤µÈ ShapeGraphicAttribute
¿Í ºñ±³ÇÕ´Ï´Ù.
rhs
- µ¿ÀÏÇÑÁö ¾î¶²Áö¸¦ ºñ±³ÇÏ´Â ShapeGraphicAttribute
ShapeGraphicAttribute
°¡ 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 µµ ÂüÁ¶ÇϽʽÿÀ.