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