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 µµ ÂüÁ¶ÇϽʽÿÀ.