JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.border
Ŭ·¡½º AbstractBorder

java.lang.Object 
  »óÀ§¸¦ È®Àå javax.swing.border.AbstractBorder
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
Serializable, Border
¾Ë·ÁÁø Á÷°è ¼­ºê Ŭ·¡½º:
BasicBorders.ButtonBorder, BasicBorders.FieldBorder, BasicBorders.MarginBorder, BasicBorders.MenuBarBorder, BevelBorder, CompoundBorder, EmptyBorder, EtchedBorder, LineBorder, MetalBorders.ButtonBorder, MetalBorders.Flush3DBorder, MetalBorders.InternalFrameBorder, MetalBorders.MenuBarBorder, MetalBorders.MenuItemBorder, MetalBorders.OptionDialogBorder, MetalBorders.PaletteBorder, MetalBorders.PopupMenuBorder, MetalBorders.ScrollPaneBorder, MetalBorders.TableHeaderBorder, MetalBorders.ToolBarBorder, TitledBorder

public abstract class AbstractBorder
extends Object
implements Border, Serializable

»çÀÌÁî ÁöÁ¤ÀÌ ¾ø´Â ºñ¾îÀÖ´Â º¸´õ¸¦ ±¸ÇöÇϴ Ŭ·¡½ºÀÔ´Ï´Ù. ´Ù¸¥ º¸´õÀÇ Å¬·¡½º¸¦ °£´ÜÇÏ°Ô ÆÄ»ýÇÒ ¼ö ÀÖ´Â Æí¸®ÇÑ base class¸¦ Á¦°øÇÕ´Ï´Ù.

°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ­ µÈ °´Ã¼´Â ÇâÈÄÀÇ Swing ¸±¸®Áî¿Í ȣȯµÇÁö ¾ÊÀ» ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈ­ÀÇ Áö¿øÀº ´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÀüÀÇ Swing¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI¿¡ ÀûÀýÇÏ°í ÀÖ½À´Ï´Ù. JDK ¹öÀü 1.4 ÀÌÈÄ, ¸ðµç JavaBeans Àå±â°£ÀÇ ¿î¿ë Áö¿øÀº java.beans ÆÐÅ°Áö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº XMLEncoder¸¦ ÂüÁ¶ÇϽʽÿÀ.


»ý¼ºÀÚ °³¿ä
AbstractBorder ()
           
 
¸Þ¼­µå °³¿ä
 Insets getBorderInsets (Component  c)
          ÀÌ µðÆúÆ® ±¸ÇöÀº, top, left, bottom ¹× right Çʵ尡 0 À¸·Î ¼³Á¤µÇ´Â »õ·Î¿î InsetsÀνºÅϽº¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 Insets getBorderInsets (Component  c, Insets  insets)
          ÀÎ ¼¼Æ® ÆĶó¹ÌÅ͸¦, ÀÌ Border ÇöÀçÀÇ ÀÎ ¼¼Æ®·Î ´Ù½Ã ÃʱâÈ­ÇÕ´Ï´Ù.
static Rectangle getInteriorRectangle (Component  c, Border  b, int x, int y, int width, int height)
          º¸´õÀÇ ÀÎ ¼¼Æ®·ÎºÎÅÍ ÀμöÀÇ °ªÀ» °¨»êÇØ ±¸ÇüÀ» ¸®ÅÏÇÕ´Ï´Ù.
 Rectangle getInteriorRectangle (Component  c, int x, int y, int width, int height)
          Á¤Àû ¸Þ¼­µå¸¦ È£ÃâÇÏ´Â °£ÀÌ ¸Þ¼­µåÀÔ´Ï´Ù.
 boolean isBorderOpaque ()
          ÀÌ µðÆúÆ® ±¸ÇöÀº false¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 void paintBorder (Component  c, Graphics  g, int x, int y, int width, int height)
          ÀÌ µðÆúÆ® ±¸Çö¿¡¼­´Â ÆäÀÎÆ®¸¦ ½Ç½ÃÇÏÁö ¾Ê½À´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

»ý¼ºÀÚ »ó¼¼

AbstractBorder

public AbstractBorder()
¸Þ¼­µåÀÇ »ó¼¼

paintBorder

public void paintBorder(Component  c,
                        Graphics  g,
                        int x,
                        int y,
                        int width,
                        int height)
ÀÌ µðÆúÆ® ±¸Çö¿¡¼­´Â ÆäÀÎÆ®¸¦ ½Ç½ÃÇÏÁö ¾Ê½À´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Border ³»ÀÇ paintBorder
ÆĶó¹ÌÅÍ:
c - ÀÌ º¸´õ°¡ ÆäÀÎÆ® µÇ´Â ÄÄÆÛ³ÍÆ®
g - ÆäÀÎÆ®ÀÇ ±×·¡ÇÈ
x - ÆäÀÎÆ® µÈ º¸´õÀÇ x ÁÂÇ¥
y - ÆäÀÎÆ® µÈ º¸´õÀÇ y ÁÂÇ¥
width - ÆäÀÎÆ® µÈ º¸´õÀÇ Æø
height - ÆäÀÎÆ® µÈ º¸´õÀÇ ³ôÀÌ

getBorderInsets

public Insets  getBorderInsets(Component  c)
ÀÌ µðÆúÆ® ±¸ÇöÀº, top, left, bottom ¹× right Çʵ尡 0 À¸·Î ¼³Á¤µÇ´Â »õ·Î¿î InsetsÀνºÅϽº¸¦ ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Border ³»ÀÇ getBorderInsets
ÆĶó¹ÌÅÍ:
c - ÀÌ º¸´õÀÇ ÀÎ ¼¼Æ®ÀÇ °ªÀ» Àû¿ëÇÏ´Â ÄÄÆÛ³ÍÆ®
¹Ýȯ°ª:
0¿¡ ÃʱâÈ­µÇ´Â »õ·Î¿î Insets °´Ã¼

getBorderInsets

public Insets  getBorderInsets(Component  c,
                              Insets  insets)
ÀÎ ¼¼Æ® ÆĶó¹ÌÅ͸¦, ÀÌ Border ÇöÀçÀÇ ÀÎ ¼¼Æ®·Î ´Ù½Ã ÃʱâÈ­ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
c - ÀÌ º¸´õÀÇ ÀÎ ¼¼Æ®ÀÇ °ªÀ» Àû¿ëÇÏ´Â ÄÄÆÛ³ÍÆ®
insets - ´Ù½Ã ÃʱâÈ­ÇÏ´Â °´Ã¼
¹Ýȯ°ª:
insets °´Ã¼

isBorderOpaque

public boolean isBorderOpaque()
ÀÌ µðÆúÆ® ±¸ÇöÀº false¸¦ ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Border ³»ÀÇ isBorderOpaque
¹Ýȯ°ª:
false

getInteriorRectangle

public Rectangle  getInteriorRectangle(Component  c,
                                      int x,
                                      int y,
                                      int width,
                                      int height)
Á¤Àû ¸Þ¼­µå¸¦ È£ÃâÇÏ´Â °£ÀÌ ¸Þ¼­µåÀÔ´Ï´Ù.

ÆĶó¹ÌÅÍ:
c - ÀÌ º¸´õ°¡ °è»êµÇ´Â ÄÄÆÛ³ÍÆ®
x - º¸´õÀÇ x ÁÂÇ¥
y - º¸´õÀÇ y ÁÂÇ¥
width - º¸´õÀÇ Æø
height - º¸´õÀÇ ³ôÀÌ
¹Ýȯ°ª:
³»ºÎ ÁÂÇ¥¸¦ °¡Áö´Â Rectangle

getInteriorRectangle

public static Rectangle  getInteriorRectangle(Component  c,
                                             Border  b,
                                             int x,
                                             int y,
                                             int width,
                                             int height)
º¸´õÀÇ ÀÎ ¼¼Æ®·ÎºÎÅÍ ÀμöÀÇ °ªÀ» °¨»êÇØ ±¸ÇüÀ» ¸®ÅÏÇÕ´Ï´Ù. ÄÄÆÛ³ÍÆ®°¡ ·»´õ¸µÀÇÇØ ¹¯´Â ¿µ¿ªÀ» º¸´õ¿Í ±³Â÷ÇÏÁö ¾Ê°Ô °áÁ¤Çϴµ¥ Æí¸®ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
c - ÀÌ º¸´õ°¡ °è»êµÇ´Â ÄÄÆÛ³ÍÆ®
b - Border °´Ã¼
x - º¸´õÀÇ x ÁÂÇ¥
y - º¸´õÀÇ y ÁÂÇ¥
width - º¸´õÀÇ Æø
height - º¸´õÀÇ ³ôÀÌ
¹Ýȯ°ª:
³»ºÎ ÁÂÇ¥¸¦ °¡Áö´Â Rectangle

JavaTM 2 Platform
Standard Ed. 5.0

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