|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.swing.DefaultDesktopManager
public class DefaultDesktopManager
DesktopManager
±¸ÇöÀÔ´Ï´Ù. Çö½ÃÁ¡¿¡¼´Â ÀÓÀÇÀÇ ºÎ¸ð·Î JInternalFrame
¸¦ °ü¸®Çϱâ À§ÇÑ ±âº» µ¿ÀÛÀ» ±¸ÇöÇÕ´Ï´Ù. JDesktop
ÀÚ½ÄÀÌ ¾Æ´Ñ JInternalFrame
´Â
ÀÌ ÄÄÆÛ³ÍÆ®¸¦ »ç¿ëÇØ ±× µ¥½ºÅ©Å¾ ¾ç½ÄÀÇ ¾×¼ÇÀ» ó¸®ÇÕ´Ï´Ù.
ÀÌ Å¬·¡½º´Â ´Ù¾çÇÑ JInternalFrame ¸Þ¼µå¿¡ Á¤Ã¥¸¦ Á¦°øÇÕ´Ï´Ù¸¸, Á÷Á¢ È£ÃâµÇ´Â °ÍÀº ¾Æ´Ï°í, ´Ù¾çÇÑ JInternalFrame ¸Þ¼µå°¡ DesktopManager¿¡ ºÒ·¯ µé¿©Áý´Ï´Ù.
JDesktopPane
,
JInternalFrame
»ý¼ºÀÚ °³¿ä | |
---|---|
DefaultDesktopManager ()
|
¸Þ¼µå °³¿ä | |
---|---|
void |
activateFrame (JInternalFrame f)
f¸¦ Ȱ¼ºÈ ÇØ, ÇÁ·±Æ®·Î À̵¿ÇÕ´Ï´Ù. |
void |
beginDraggingFrame (JComponent f)
º¸Åë, »ç¿ëÀÚ°¡ ÄÄÆÛ³ÍÆ®ÀÇ µå·¡±× °³½Ã¸¦ ³ªÅ¸³»¸é È£ÃâÇÕ´Ï´Ù. |
void |
beginResizingFrame (JComponent f,
int direction)
º¸Åë, »ç¿ëÀÚ°¡ ÇÁ·¹ÀÓÀÇ »çÀÌÁî º¯°æ °³½Ã¸¦ ³ªÅ¸³»¸é È£ÃâÇÕ´Ï´Ù. |
void |
closeFrame (JInternalFrame f)
ÇÁ·¹ÀÓÀ» »èÁ¦ÇØ, Çʿ信 µû¶ó¼ ±× ºÎ¸ð·ÎºÎÅÍ desktopIcon À»
»èÁ¦ÇÕ´Ï´Ù. |
void |
deactivateFrame (JInternalFrame f)
º¸Åë, ÇÁ·¹ÀÓÀÌ Æ÷Ä¿½º¸¦ ÀÒÀº °ÍÀ» ³ªÅ¸³À´Ï´Ù. |
void |
deiconifyFrame (JInternalFrame f)
desktopIcon¸¦ ±× ºÎ¸ð·ÎºÎÅÍ »èÁ¦ÇØ, ±× ÇÁ·¹ÀÓÀ» ºÎ¸ð¿¡°Ô Ãß°¡ÇÕ´Ï´Ù. |
void |
dragFrame (JComponent f,
int newX,
int newY)
µå·¡±× µÇ°í ÀÖ´Â ÇÁ·¹ÀÓÀÇ °¡½Ã À§°ªÀÌ ÁöÁ¤µÈ À§Ä¡·Î À̵¿ÇÕ´Ï´Ù. |
void |
endDraggingFrame (JComponent f)
µå·¡±× ¼¼¼ÇÀÇ ¸¶Áö¸·À» ³ªÅ¸³À´Ï´Ù. |
void |
endResizingFrame (JComponent f)
»çÀÌÁî º¯°æ ¼¼¼ÇÀÇ ¸¶Áö¸·À» ³ªÅ¸³À´Ï´Ù. |
protected Rectangle |
getBoundsForIconOf (JInternalFrame f)
iconifyFrame()ÀÇ ÄÚµå´Â ÀÌ ¸Þ¼µå¸¦ È£ÃâÇØ, desktopIcon ÀûÀýÇÑ °æ°è¸¦ ÁöÁ¤ÇÕ´Ï´Ù. |
protected Rectangle |
getPreviousBounds (JInternalFrame f)
ÄÄÆÛ³ÍÆ®ÀÇ º¸Åë ÀÇ °æ°è¸¦ ÄÄÆÛ³ÍÆ® ÃÖ´ëÈÀÇ Á÷Àü¿¡ ¸®ÅÏÇÕ´Ï´Ù. |
void |
iconifyFrame (JInternalFrame f)
ÇÁ·¹ÀÓÀ» ±× ºÎ¸ð·ÎºÎÅÍ »èÁ¦ÇØ, ±× desktopIcon À»
ºÎ¸ð¿¡°Ô Ãß°¡ÇÕ´Ï´Ù. |
void |
maximizeFrame (JInternalFrame f)
±× ºÎ¸ðÀÇ °æ°è¸¦ ä¿ìµµ·Ï, ÇÁ·¹ÀÓÀÇ »çÀÌÁ º¯°æÇÕ´Ï´Ù. |
void |
minimizeFrame (JInternalFrame f)
maximizeFrame
È£ÃâÀüÀÇ »çÀÌÁî¿Í À§Ä¡¿¡ ÇÁ·¹ÀÓÀ» º¹¿øÇÕ´Ï´Ù. |
void |
openFrame (JInternalFrame f)
ÀÌ ¸Þ¼µå´Â ÀϹÝÀûÀ¸·Î ºÒ·Á°¡ Áö ¾Ê½À´Ï´Ù. |
protected void |
removeIconFor (JInternalFrame f)
f desktopIcon¸¦ »èÁ¦ÇÏ´Â °£ÀÌ ¸Þ¼µå°¡ ÇÊ¿äÇÕ´Ï´Ù. |
void |
resizeFrame (JComponent f,
int newX,
int newY,
int newWidth,
int newHeight)
»õ·Î¿î °ªÀ» ÁöÁ¤ÇØ setBoundsForFrame ¸¦ È£ÃâÇÕ´Ï´Ù. |
void |
setBoundsForFrame (JComponent f,
int newX,
int newY,
int newWidth,
int newHeight)
JComponent ¸¦ À̵¿ÇØ, ¿µÇâÀ» ¹ÞÀº ¿µ¿ªÀ» ÀçÆäÀÎÆ® ÇÕ´Ï´Ù. |
protected void |
setPreviousBounds (JInternalFrame f,
Rectangle r)
ÄÄÆÛ³ÍÆ®ÀÇ °æ°è¸¦, ÃÖ´ë Ç¥½Ã È£ÃâÀÇ Á÷Àü¿¡ Æ÷ÇÔÇÕ´Ï´Ù. |
protected void |
setWasIcon (JInternalFrame f,
Boolean value)
ÄÄÆÛ³ÍÆ®¸¦ÀڽľÆÀÌÄÜÈ ÇØ, desktopIcon
°æ°è°¡ À¯È¿ÇÏ°Ô µÇµµ·Ï ¼³Á¤ÇÕ´Ï´Ù. |
protected boolean |
wasIcon (JInternalFrame f)
ÄÄÆÛ³ÍÆ®°¡ÀڽľÆÀÌÄÜÈ µÇ¾î desktopIcon
°æ°è°¡ À¯È¿ÇÑ °æ¿ì´Â true ¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public DefaultDesktopManager()
¸Þ¼µåÀÇ »ó¼¼ |
---|
public void openFrame(JInternalFrame f)
DesktopManager
³»ÀÇ openFrame
public void closeFrame(JInternalFrame f)
desktopIcon
À»
»èÁ¦ÇÕ´Ï´Ù.
DesktopManager
³»ÀÇ closeFrame
f
- »èÁ¦ÇÏ´Â JInternalFrame
public void maximizeFrame(JInternalFrame f)
DesktopManager
³»ÀÇ maximizeFrame
f
- »çÀÌÁ º¯°æÇÏ´Â ÇÁ·¹ÀÓpublic void minimizeFrame(JInternalFrame f)
maximizeFrame
È£ÃâÀüÀÇ »çÀÌÁî¿Í À§Ä¡¿¡ ÇÁ·¹ÀÓÀ» º¹¿øÇÕ´Ï´Ù.
DesktopManager
³»ÀÇ minimizeFrame
f
- º¹¿øÇÏ´Â JInternalFrame
public void iconifyFrame(JInternalFrame f)
desktopIcon
À»
ºÎ¸ð¿¡°Ô Ãß°¡ÇÕ´Ï´Ù.
DesktopManager
³»ÀÇ iconifyFrame
f
-ÀڽľÆÀÌÄÜÈ ÇÏ´Â JInternalFrame
public void deiconifyFrame(JInternalFrame f)
DesktopManager
³»ÀÇ deiconifyFrame
f
-ÀڽľÆÀÌÄÜÈ ÇØÁ¦ÇÏ´Â JInternalFrame
public void activateFrame(JInternalFrame f)
IS_SELECTED_PROPERTY
°¡ false
·Î
¼³Á¤µË´Ï´Ù. Ȱ¼ºÈµÈ ÇÁ·¹ÀÓÀº ·¹À̾î Àüü·Î 1°³
»ÓÀÔ´Ï´Ù.
DesktopManager
³»ÀÇ activateFrame
f
- Ȱ¼ºÈ
ÇÏ´Â JInternalFrame
public void deactivateFrame(JInternalFrame f)
DesktopManager
񃬣:
DesktopManager
³»ÀÇ deactivateFrame
public void beginDraggingFrame(JComponent f)
DesktopManager
񃬣:
DesktopManager
³»ÀÇ beginDraggingFrame
public void dragFrame(JComponent f, int newX, int newY)
endDraggingFrame
°¡ ºÒ·Á °¥ ¶§±îÁö º¯°æµÇÁö ¾Ê½À´Ï´Ù.
DesktopManager
³»ÀÇ dragFrame
public void endDraggingFrame(JComponent f)
DesktopManager
񃬣:
DesktopManager
³»ÀÇ endDraggingFrame
public void beginResizingFrame(JComponent f, int direction)
DesktopManager
񃬣:
DesktopManager
³»ÀÇ beginResizingFrame
public void resizeFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)
setBoundsForFrame
¸¦ È£ÃâÇÕ´Ï´Ù.
DesktopManager
³»ÀÇ resizeFrame
f
- »çÀÌÁî º¯°æµÇ´Â ÄÄÆÛ³ÍÆ®newX
- »õ·Î¿î x ÁÂÇ¥newY
- »õ·Î¿î y ÁÂÇ¥newWidth
- »õ·Î¿îÆønewHeight
- »õ·Î¿î ³ôÀÌpublic void endResizingFrame(JComponent f)
DesktopManager
񃬣:
DesktopManager
³»ÀÇ endResizingFrame
public void setBoundsForFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)
JComponent
¸¦ À̵¿ÇØ, ¿µÇâÀ» ¹ÞÀº ¿µ¿ªÀ» ÀçÆäÀÎÆ® ÇÕ´Ï´Ù.
DesktopManager
³»ÀÇ setBoundsForFrame
protected void removeIconFor(JInternalFrame f)
protected Rectangle getBoundsForIconOf(JInternalFrame f)
protected void setPreviousBounds(JInternalFrame f, Rectangle r)
f
- »çÀÌÁî º¯°æµÇ´Â ÄÄÆÛ³ÍÆ®r
- ´Ù¸¥ ¸Åü¿¡ º¸Á¸µÇ´Â º¸Åë
ÀÇ °æ°èprotected Rectangle getPreviousBounds(JInternalFrame f)
f
- ´ë»óÀÇ JInternalFrame
protected void setWasIcon(JInternalFrame f, Boolean value)
desktopIcon
°æ°è°¡ À¯È¿ÇÏ°Ô µÇµµ·Ï ¼³Á¤ÇÕ´Ï´Ù.
protected boolean wasIcon(JInternalFrame f)
desktopIcon
°æ°è°¡ À¯È¿ÇÑ °æ¿ì´Â true
¸¦ ¸®ÅÏÇÕ´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
¸¦ ¸®ÅÏÇÕ´Ï´Ù.
f
- ´ë»óÀÇ JInternalFrame
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 µµ ÂüÁ¶ÇϽʽÿÀ.