|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.swing.tree.AbstractLayoutCache | +--javax.swing.tree.FixedHeightLayoutCache
ÁÖ: ÀÌ Å¬·¡½º´Â ÇâÈÄÀÇ ¸±¸®½º·Î ÇÑÃþ ´õ ¿ÀÇÂÀÌ µÉ ¿¹Á¤ÀÔ´Ï´Ù.
°æ°í:
ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ ¿ÀºêÁ§Æ®´Â ÇâÈÄÀÇ Swing ÀÇ ¸±¸®½º¿Í´Â ȣȯ¼ºÀ» °¡ÁöÁö ¾Ê½À´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈ ¼Æ÷Æ®´Â ´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÁ¯ÀÇ Swing ¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. 1.4 ¿¡¼´Â ¸ðµç JavaBeansTM ÀÇ Àå±â ¿î¿ë ¼Æ÷Æ®°¡, java.beans
ÆÐŰÁö¿¡ Ãß°¡µÇ¾ú½À´Ï´Ù. XMLEncoder
¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä |
Ŭ·¡½º javax.swing.tree. AbstractLayoutCache À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
AbstractLayoutCache.NodeDimensions |
ÇʵåÀÇ °³¿ä |
Ŭ·¡½º javax.swing.tree. AbstractLayoutCache ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
nodeDimensions , rootVisible , rowHeight , treeModel , treeSelectionModel |
»ý¼ºÀÚÀÇ °³¿ä | |
FixedHeightLayoutCache ()
|
¸Þ¼ÒµåÀÇ °³¿ä | |
Rectangle |
getBounds (TreePath path,
Rectangle placeIn)
ÆÐ½º¸¦ Ç¥Çö Çϴµ¥ ÇÊ¿äÇÑ °æ°è¸¦ ÁöÁ¤ÇÏ´Â ±¸ÇüÀ» µ¹·ÁÁÝ´Ï´Ù. |
boolean |
getExpandedState (TreePath path)
ÆÐ½º°¡ Àü°³µÇ¾î °¡½ÃÀÇ °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
TreePath |
getPathClosestTo (int x,
int y)
x, y ¿¡ °¡Àå °¡±î¿î ³ëµå¿¡ÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
TreePath |
getPathForRow (int row)
°Ç³×¹ÞÀº row ÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
int |
getRowCount ()
°¡½ÃÇàÀÇ ¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù. |
int |
getRowForPath (TreePath path)
path ·Î ½Äº°µÇ´Â ¸¶Áö¸· Ç׸ñÀÌ °¡½ÃÀÎ ÇàÀ» µ¹·ÁÁÝ´Ï´Ù. |
int |
getVisibleChildCount (TreePath path)
Çà¿¡ ´ëÇØ °¡½ÃÀÇ ¾ÆÀÌÀÇ ¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Enumeration |
getVisiblePathsFrom (TreePath path)
°Ç³×¹ÞÀº À§Ä¡·ÎºÎÅÍ °³½ÃµÇ´Â °¡½ÃÀÇ ÆÐ½º¸¦ Â÷·ÊÂ÷·Ê·Î ¿°ÅÇÏ´Â Enumerator ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
void |
invalidatePathBounds (TreePath path)
󸮴 ½Ç½ÃÇÏÁö ¾Ê½À´Ï´Ù. |
void |
invalidateSizes ()
ÂüÁ¶Çϰí ÀÖ´Â ¸ðµç »çÀÌÁ Àç°è»êÇÒ Çʿ䰡 ÀÖ´Â °ÍÀ» TreeState ¿¡ ÅëÁöÇÕ´Ï´Ù. |
boolean |
isExpanded (TreePath path)
ÇàÀ¸·Î ½Äº°µÇ´Â °ªÀÌ ÇöÀç Àü°³µÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
void |
setExpandedState (TreePath path,
boolean isExpanded)
ÆÐ½º path ÀÇ Àü°³ »óŸ¦ isExpanded ·Î¼ ¸¶Å© ºÙÀ̰í ÇÕ´Ï´Ù. |
void |
setModel (TreeModel newModel)
µ¥ÀÌÅ͸¦ Á¦°øÇÏ´Â TreeModel ¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setRootVisible (boolean rootVisible)
TreeModel ÀÇ ·çÆ® ³ëµå°¡ °¡½ÃÀΰ¡ ¾î¶²°¡¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setRowHeight (int rowHeight)
°¢ ¼¿ÀÇ ³ôÀ̸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
treeNodesChanged (TreeModelEvent e)
³ëµå ¶Ç´Â ÇüÁ¦ À§Á¦Æ®¼¼Æ®¿¡ ÇϵîÀÇ º¯°æÀÌ ÀÖ¾úÀ» ¶§¿¡ ºÒ·Á °©´Ï´Ù. |
void |
treeNodesInserted (TreeModelEvent e)
³ëµå°¡ Æ®¸®¿¡ »ðÀÔµÈ µÚ¿¡ ºÒ·Á °©´Ï´Ù. |
void |
treeNodesRemoved (TreeModelEvent e)
³ëµå°¡ Æ®¸®·ÎºÎÅÍ »èÁ¦µÈ µÚ¿¡ ºÒ·Á °©´Ï´Ù. |
void |
treeStructureChanged (TreeModelEvent e)
ÁöÁ¤µÈ ³ëµå·ÎºÎÅÍ ÇÏÀ§¿¡¼ Æ®¸®ÀÇ ´ëÆøÀûÀÎ ±¸Á¶ º¯°æÀ» ÇàÇÑ µÚ¿¡ ºÒ·Á °©´Ï´Ù. |
Ŭ·¡½º javax.swing.tree. AbstractLayoutCache ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
getModel , getNodeDimensions , getNodeDimensions , getPreferredHeight , getPreferredWidth , getRowHeight , getRowsForPaths , getSelectionModel , isFixedRowHeight , isRootVisible , setNodeDimensions , setSelectionModel |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
»ý¼ºÀÚÀÇ »ó¼¼ |
public FixedHeightLayoutCache()
¸Þ¼ÒµåÀÇ »ó¼¼ |
public void setModel(TreeModel newModel)
AbstractLayoutCache
³»ÀÇ setModel
newModel
- µ¥ÀÌÅ͸¦ Á¦°øÇÏ´Â TreeModelpublic void setRootVisible(boolean rootVisible)
AbstractLayoutCache
³»ÀÇ setRootVisible
rootVisible
- Æ®¸®ÀÇ ·çÆ® ³ëµå°¡ Ç¥½ÃµÇ´Â °æ¿ì´Â trueAbstractLayoutCache.rootVisible
public void setRowHeight(int rowHeight)
AbstractLayoutCache
³»ÀÇ setRowHeight
rowHeight
- °¢ ¼¿ÀÇ Çȼ¿ ´ÜÀ§ÀÇ ³ôÀÌpublic int getRowCount()
AbstractLayoutCache
³»ÀÇ getRowCount
public void invalidatePathBounds(TreePath path)
AbstractLayoutCache
³»ÀÇ invalidatePathBounds
path
- °»½ÅÁßÀÇ ÆÐ½ºpublic void invalidateSizes()
AbstractLayoutCache
³»ÀÇ invalidateSizes
public boolean isExpanded(TreePath path)
AbstractLayoutCache
³»ÀÇ isExpanded
public Rectangle getBounds(TreePath path, Rectangle placeIn)
AbstractLayoutCache
³»ÀÇ getBounds
path
- ³ëµå¸¦ ÁöÁ¤ÇÏ´Â TreePathplaceIn
- ÀÌ¿ë °¡´ÉÇÑ °ø°£À» ÁöÁ¤ÇÏ´Â Rectangle ¿ÀºêÁ§Æ®
public TreePath getPathForRow(int row)
AbstractLayoutCache
³»ÀÇ getPathForRow
row
- Á¶È¸µÇ´Â Çà
TreePath
public int getRowForPath(TreePath path)
AbstractLayoutCache
³»ÀÇ getRowForPath
path
- Á¶È¸ÁßÀÇ TreePath
public TreePath getPathClosestTo(int x, int y)
AbstractLayoutCache
³»ÀÇ getPathClosestTo
x
- ¹Ù¶÷Á÷ÇÑ À§Ä¡ÀÇ ¼öÆò ÄÄÆÛ³ÍÆ®y
- ¹Ù¶÷Á÷ÇÑ À§Ä¡ÀÇ ¼öÁ÷ ÄÄÆÛ³ÍÆ®
TreePath
public int getVisibleChildCount(TreePath path)
AbstractLayoutCache
³»ÀÇ getVisibleChildCount
path
- Á¶È¸ÁßÀÇ ÆÐ½º
public Enumeration getVisiblePathsFrom(TreePath path)
AbstractLayoutCache
³»ÀÇ getVisiblePathsFrom
path
- ¿°ÅÀÇ °³½Ã À§Ä¡
Enumerator
public void setExpandedState(TreePath path, boolean isExpanded)
path
ÀÇ Àü°³ »óŸ¦ isExpanded
·Î¼ ¸¶Å© ºÙÀ̰í ÇÕ´Ï´Ù.
AbstractLayoutCache
³»ÀÇ setExpandedState
path
- Àü°³ ¶Ç´Â ¼ö³³ÁßÀÇ ÆÐ½ºisExpanded
- ÆÐ½º¸¦ Àü°³ÇÏ´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â falsepublic boolean getExpandedState(TreePath path)
AbstractLayoutCache
³»ÀÇ getExpandedState
path
- Á¶È¸ÁßÀÇ ÆÐ½º
public void treeNodesChanged(TreeModelEvent e)
³ëµå ¶Ç´Â ÇüÁ¦ À§Á¦Æ®¼¼Æ®¿¡ ÇϵîÀÇ º¯°æÀÌ ÀÖ¾úÀ» ¶§¿¡ ºÒ·Á °©´Ï´Ù. ³ëµåÀÇ Æ®¸®³»ÀÇ À§Ä¡³ª, ³ëµåÀÇ ¾ÆÀÌÀÇ ¹è¿Àº º¯°æµÇ¾î ÀÖÁö ¾Ê¾Æµµ, ´Ù¸¥ ¼Ó¼ºÀÌ º¯°æµÇ°í ÀÖÀ¸¸é(ÀÚ), Ç¥Çö¿¡ ¿µÇâÀ» ¹ÌĨ´Ï´Ù. ¿¹¸¦ µé¾î, ÆÄÀϸíÀÌ º¯°æµÇ°í ÀÖ¾î, ÆÄÀÏ ½Ã½ºÅÛ³»¿¡¼ÀÇ À§Ä¡´Â º¯ÇÔ¾ø´Â °æ¿ì µîÀÔ´Ï´Ù.
e.path()´Â º¯°æµÈ ³ëµåÀÇ ºÎ¸ð¸¦ ÆÐ½º¿¡ µ¹·ÁÁÝ´Ï´Ù.
e.childIndices()´Â º¯°æµÈ ³ëµåÀÇ À妽º¸¦ µ¹·ÁÁÝ´Ï´Ù.
AbstractLayoutCache
³»ÀÇ treeNodesChanged
e
- TreeModelEvent
public void treeNodesInserted(TreeModelEvent e)
³ëµå°¡ Æ®¸®¿¡ »ðÀÔµÈ µÚ¿¡ ºÒ·Á °©´Ï´Ù.
e.path()´Â »õ·Î¿î ³ëµåÀÇ ºÎ¸ð¸¦ µ¹·ÁÁÝ´Ï´Ù.
e.childIndices()´Â »õ·Î¿î ³ëµåÀÇ À妽º¸¦ ½Â¼øÀ¸·Î µ¹·ÁÁÝ´Ï´Ù.
AbstractLayoutCache
³»ÀÇ treeNodesInserted
e
- TreeModelEvent
public void treeNodesRemoved(TreeModelEvent e)
³ëµå°¡ Æ®¸®·ÎºÎÅÍ »èÁ¦µÈ µÚ¿¡ ºÒ·Á °©´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â ¼ºê Æ®¸®°¡ Æ®¸®·ÎºÎÅÍ »èÁ¦µÇ¾úÀ» °æ¿ì¿¡, »èÁ¦µÈ ¼ºê Æ®¸®ÀÇ ·çÆ®¿¡ ´ëÇØ¼ 1 ȸ¸¸ ºÒ·Á °¡´Â °Í¿¡¼ ¸¸³ª¸ç, »èÁ¦µÈ °¢ ÇüÁ¦ À§Á¦Æ®¼¼Æ®¿¡ ´ëÇØ¼ °¢°¢ 1 ȸ ºÒ·Á °¡´Â °ÍÀº ¾Æ´Õ´Ï´Ù.
e.path()´Â »èÁ¦µÈ ³ëµåÀÇ ¿øÀÇ ºÎ¸ð¸¦ µ¹·ÁÁÝ´Ï´Ù.
e.childIndices()´Â ³ëµå°¡ »èÁ¦µÇ±â Àü¿¡ °¡Áö°í ÀÖ´ø À妽º¸¦ ½Â¼øÀ¸·Î µ¹·ÁÁÝ´Ï´Ù.
AbstractLayoutCache
³»ÀÇ treeNodesRemoved
e
- TreeModelEvent
public void treeStructureChanged(TreeModelEvent e)
ÁöÁ¤µÈ ³ëµå·ÎºÎÅÍ ÇÏÀ§¿¡¼ Æ®¸®ÀÇ ´ëÆøÀûÀÎ ±¸Á¶ º¯°æÀ» ÇàÇÑ µÚ¿¡ ºÒ·Á °©´Ï´Ù. e.getPath()·Î µ¹·ÁÁÖ¾îÁö´Â ÆÐ½ºÀÇ ±æÀ̰¡ 1 À¸·Î, ¼±µÎÀÇ ¿ä¼Ò°¡ ÇöÀçÀÇ ·çÆ® ³ëµå¸¦ ½Äº°ÇÏÁö ¾Ê´Â °æ¿ì, ¼±µÎÀÇ ¿ä¼Ò°¡ Æ®¸®ÀÇ »õ·Î¿î ·çÆ®°¡ µË´Ï´Ù.
e.path()´Â ³ëµå¿¡ÀÇ ÆÐ½º¸¦ º¸°ü À¯ÁöÇÕ´Ï´Ù.
e.childIndices()´Â null ¸¦ µ¹·ÁÁÝ´Ï´Ù.
AbstractLayoutCache
³»ÀÇ treeStructureChanged
e
- TreeModelEvent
|
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.