|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.awt.font.GraphicAttribute | +--java.awt.font.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
´Â ÀÌ ShapeGraphicAttribute
ÀÇ ¿øÁ¡À» ±âÁ¡À¸·Î¼ È£½ºÆ® TextLayout
¿¡ Ç¥Çö µÈ´Ù. ¿ÀºêÁ§Æ®´Â shape
¿¡ÀÇ ÂüÁ¶¸¦ ÀúÀåÇÏ´Âalignment
- ShapeGraphicAttribute
·ÎºÎÅÍÀÇ ¹èÄ¡ ¹æ¹ýÀÇ Çϳª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
- ±×·¡ÇÈÀÇ Ç¥Çö area°¡ µÇ´Â Graphics2D
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 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.