|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
| ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå | ||||||||||
java.lang.Object
|
+--javax.swing.border.AbstractBorder
|
+--javax.swing.border.LineBorder
Á÷¼± º¸´õ¸¦ ±¸ÇöÇϴ Ŭ·¡½ºÀÔ´Ï´Ù. º¸´õÀÇ ±½±â´Â ÀÓÀÇ, Ä®¶ó´Â ´Ü»öÀÔ´Ï´Ù.
°æ°í:
ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ ¿ÀºêÁ§Æ®´Â ÇâÈÄÀÇ Swing ¸±¸®½º¿ÍÀÇ È£È¯¼ºÀÌ ¾ø¾îÁú ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈÀÇ ¼Æ÷Æ®´Â ´Ü±â ±â¾ïÀ̳ª, °°Àº ¹öÁ¯ÀÇ Swing ¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. JDK ¹öÁ¯ 1.4 ÀÌÈÄ, ¸ðµç JavaBeans ÀÇ Àå±â ±â¾ï¿ë ¼Æ÷Æ®´Â java.beans ÆÐŰÁö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ °ÍÀº XMLEncoder ¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
| ÇʵåÀÇ °³¿ä | |
protected Color |
lineColor
|
protected boolean |
roundedCorners
|
protected int |
thickness
|
| »ý¼ºÀÚÀÇ °³¿ä | |
LineBorder (Color color)
Á÷¼± º¸´õ¸¦, ÁöÁ¤µÈ Ä®¶ó ¹× ±½±â (thickness = 1)·Î ÀÛ¼ºÇÕ´Ï´Ù. |
|
LineBorder (Color color,
int thickness)
ÁöÁ¤µÈ »ö°ú ±½±â·Î Á÷¼± º¸´õ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
|
LineBorder (Color color,
int thickness,
boolean roundedCorners)
ÁöÁ¤µÈ »ö°ú ±½±â¿Í ±¸¼®ÀÇ Çü»óÀ¸·Î Á÷¼± º¸´õ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
|
| ¸Þ¼ÒµåÀÇ °³¿ä | |
static Border |
createBlackLineBorder ()
±½±â 1 À¸·Î Color.black ÀÇ LineBorder ¸¦ ÃëµæÇϴµ¥ Æí¸®ÇÑ ¸Þ¼ÒµåÀÔ´Ï´Ù. |
static Border |
createGrayLineBorder ()
±½±â 1 À¸·Î Color.gray ÀÇ LineBorder ¸¦ ÃëµæÇϴµ¥ Æí¸®ÇÑ ¸Þ¼ÒµåÀÔ´Ï´Ù. |
Insets |
getBorderInsets (Component c)
º¸´õÀÇ ÀÎ ¼¼Æ®ÀÇ °ªÀ» µ¹·ÁÁÝ´Ï´Ù. |
Insets |
getBorderInsets (Component c,
Insets insets)
insets ÆÄ¶ó¹ÌÅ͸¦, ÀÌ Border ÀÇ ÇöÀçÀÇ Insets ·Î ´Ù½Ã ÃʱâÈÇÕ´Ï´Ù. |
Color |
getLineColor ()
º¸´õÀÇ Ä®¶ó¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
getRoundedCorners ()
º¸´õÀÇ ±¸¼®À» µÕ±Û°Ô Ç¥Çö ÇÒÁö ¾î¶³Áö¸¦ µ¹·ÁÁÝ´Ï´Ù. |
int |
getThickness ()
º¸´õÀÇ ±½±â¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isBorderOpaque ()
º¸´õ°¡ ºÒÅõ¸íÇѰ¡ ¾î¶²°¡¸¦ µ¹·ÁÁÝ´Ï´Ù. |
void |
paintBorder (Component c,
Graphics g,
int x,
int y,
int width,
int height)
ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ º¸´õ¸¦, ÁöÁ¤µÈ À§Ä¡ ¹× »çÀÌÁî·Î paint ÇÕ´Ï´Ù. |
| Ŭ·¡½º javax.swing.border. AbstractBorder ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
getInteriorRectangle , getInteriorRectangle |
| Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| ÇʵåÀÇ »ó¼¼ |
protected int thickness
protected Color lineColor
protected boolean roundedCorners
| »ý¼ºÀÚÀÇ »ó¼¼ |
public LineBorder(Color color)
color - º¸´õÀÇ Ä®¶ó
public LineBorder(Color color,
int thickness)
color - º¸´õÀÇ Ä®¶óthickness - º¸´õÀÇ ±½±â
public LineBorder(Color color,
int thickness,
boolean roundedCorners)
color - º¸´õÀÇ Ä®¶óthickness - º¸´õÀÇ ±½±âroundedCorners - º¸´õÀÇ ±¸¼®À» µÕ±Û°Ô ÇÒÁö ¾î¶³Áö| ¸Þ¼ÒµåÀÇ »ó¼¼ |
public static Border createBlackLineBorder()
public static Border createGrayLineBorder()
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Border ³»ÀÇ paintBorder AbstractBorder ³»ÀÇ paintBorder c - ÀÌ º¸´õ°¡ paint µÇ´Â ÄÄÆÛ³ÍÆ®g - paintÀÇ ±×·¡ÇȽºx - paint µÈ º¸´õÀÇ x ÁÂÇ¥y - paint µÈ º¸´õÀÇ y ÁÂÇ¥width - paint µÈ º¸´õÀÇ Æøheight - paint µÈ º¸´õÀÇ ³ôÀÌpublic Insets getBorderInsets(Component c)
Border ³»ÀÇ getBorderInsets AbstractBorder ³»ÀÇ getBorderInsets c - ÀÌ º¸´õÀÇ ÀÎ ¼¼Æ®ÀÇ °ªÀ» Àû¿ëÇÏ´Â ÄÄÆÛ³ÍÆ®
Insets ¿ÀºêÁ§Æ®
public Insets getBorderInsets(Component c,
Insets insets)
AbstractBorder ³»ÀÇ getBorderInsets c - ÀÌ º¸´õÀÇ ÀÎ ¼¼Æ®ÀÇ °ªÀ» Àû¿ëÇÏ´Â ÄÄÆÛ³ÍÆ®insets - ´Ù½Ã ÃʱâÈÇÏ´Â ¿ÀºêÁ§Æ®
insets ¿ÀºêÁ§Æ®public Color getLineColor()
public int getThickness()
public boolean getRoundedCorners()
public boolean isBorderOpaque()
Border ³»ÀÇ isBorderOpaque AbstractBorder ³»ÀÇ isBorderOpaque
|
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.