|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
java.lang.Objectjavax.swing.tree.AbstractLayoutCache
javax.swing.tree.VariableHeightLayoutCache
public class VariableHeightLayoutCache
ÁÖ: ÀÌ Å¬·¡½º´Â ÇâÈÄÀÇ ¸±¸®½º·Î ¶ÇÇÑ ¿ÀÇÂÀÌ µÉ ¿¹Á¤ÀÔ´Ï´Ù.
°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ °´Ã¼´Â ÇâÈÄÀÇ Swing ¸±¸®Áî¿Í
ȣȯµÇÁö ¾ÊÀ» ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈÀÇ Áö¿øÀº
´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÀüÀÇ Swing¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. JDK ¹öÀü
1.4 ÀÌÈÄ, ¸ðµç JavaBeans™
Àå±â°£ÀÇ ¿î¿ë Áö¿øÀº
java.beans ÆÐŰÁö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº XMLEncoder¸¦
ÂüÁ¶ÇϽʽÿÀ.
| Áßø(Nested) Ŭ·¡½º °³¿ä |
|---|
| Ŭ·¡½º javax.swing.tree. AbstractLayoutCache ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º |
|---|
AbstractLayoutCache.NodeDimensions |
| ÇÊµå °³¿ä |
|---|
| Ŭ·¡½º javax.swing.tree. AbstractLayoutCache ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
|---|
nodeDimensions,
rootVisible,
rowHeight,
treeModel,
treeSelectionModel |
| »ý¼ºÀÚ °³¿ä | |
|---|---|
VariableHeightLayoutCache ()
|
|
| ¸Þ¼µå °³¿ä | |
|---|---|
Rectangle |
getBounds (TreePath path,
Rectangle placeIn)
path·Î
½Äº°µÇ´Â Ç׸ñÀ» ·»´õ¸µ ÇØ, ¶óº§ ºÎºÐÀ» µÑ·¯½Î´Â 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 ³»ÀÇ ¿µ¿ªÀÇ ÀûÀýÇÑ Æø°ú ³ôÀ̸¦ ¸®ÅÏÇÕ´Ï´Ù. |
int |
getRowCount ()
°¡½ÃÇàÀÇ ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
int |
getRowForPath (TreePath path)
path ·Î ½Äº°µÇ´Â ¸¶Áö¸· Ç׸ñÀÌ °¡½ÃÀÎ ÇàÀ» ¸®ÅÏÇÕ´Ï´Ù. |
int |
getVisibleChildCount (TreePath path)
path¿¡ ´ëÇØ °¡½ÃÀÇÀÚ½Ä
ÀÇ ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
Enumeration <TreePath > |
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 - µ¥ÀÌÅ͸¦ Á¦°øÇÏ´Â TreeModelpublic 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 - ´ë»óÀÇ TreePathisExpanded - ÆÐ½º¸¦ Àü°³ÇÏ´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â falsepublic boolean getExpandedState(TreePath path)
AbstractLayoutCache ³»ÀÇ getExpandedState path - Á¶È¸ÁßÀÇ ÆÐ½º
public Rectangle getBounds(TreePath path,
Rectangle placeIn)
path·Î
½Äº°µÇ´Â Ç׸ñÀ» ·»´õ¸µ ÇØ, ¶óº§ ºÎºÐÀ» µÑ·¯½Î´Â Rectangle¸¦ ¸®ÅÏÇÕ´Ï´Ù.
AbstractLayoutCache ³»ÀÇ getBounds path - ·»´õ¸µ µÇ´Â ÆÐ½ºplaceIn - µÑ·¯½Î´Â ±¸ÇüÀÇ °æ°è
nullpublic TreePath getPathForRow(int row)
row
ÆÐ½º¸¦ ¸®ÅÏÇÕ´Ï´Ù. row°¡ °¡½Ã°¡ ¾Æ´Ñ °æ¿ì´Â nullÀÌ ¸®Åϵ˴ϴÙ
.
AbstractLayoutCache ³»ÀÇ getPathForRow row - ´ë»óÀÇ À§Ä¡
row
ÆÐ½º. row°¡ °¡½Ã°¡ ¾Æ´Ñ °æ¿ì´Â nullpublic int getRowForPath(TreePath path)
AbstractLayoutCache ³»ÀÇ getRowForPath path - ´ë»óÀÇ TreePath
public int getRowCount()
AbstractLayoutCache ³»ÀÇ getRowCount public void invalidatePathBounds(TreePath path)
path
°æ°è°¡ ¹«È¿·Î °»½ÅÀÌ ÇÊ¿äÇÑ ÀÏÀ» LayoutCache¿¡ ÅëÁöÇÕ´Ï´Ù.
AbstractLayoutCache ³»ÀÇ invalidatePathBounds path - ÇöÀç ¹«È¿ÀÎ TreePathpublic int getPreferredHeight()
AbstractLayoutCache ³»ÀÇ getPreferredHeight public int getPreferredWidth(Rectangle bounds)
visibleRegion ³»ÀÇ ¿µ¿ªÀÇ ÀûÀýÇÑ Æø°ú ³ôÀ̸¦ ¸®ÅÏÇÕ´Ï´Ù.
AbstractLayoutCache ³»ÀÇ getPreferredWidth bounds - Á¶È¸ÁßÀÇ ¿µ¿ª
public TreePath getPathClosestTo(int x,
int y)
nullÀ»
¸®ÅÏÇÕ´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì´Â Ç×»ó À¯È¿ÇÑ ÆÐ½º¸¦ ¸®ÅÏÇÕ´Ï´Ù. ¸®ÅÏµÈ °´Ã¼°¡ Á¤È®ÇÏ°Ô x, y¿¡ ÀÖÀ»Áö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÒ Çʿ䰡 ÀÖ´Â °æ¿ì´Â ¸®ÅÏµÈ ÆÐ½ºÀÇ ±¸ÇüÀ» ÃëµæÇØ, x, y¿Í
ºñ±³ÇÕ´Ï´Ù.
AbstractLayoutCache ³»ÀÇ getPathClosestTo x - x ÁÂÇ¥y - y ÁÂÇ¥
public Enumeration <TreePath > getVisiblePathsFrom(TreePath path)
Enumerator¸¦ ¸®ÅÏÇÕ´Ï´Ù. ¿°ÅÀÇ ¼ø¼ºÎ´Â ÆÐ½ºÀÇ Ç¥½Ã¿¡ ±Ù°ÅÇÕ´Ï´Ù.
AbstractLayoutCache ³»ÀÇ getVisiblePathsFrom path - TreePath
°³½Ã À§Ä¡
Enumeratorpublic 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 - ´ë»óÀÇ TreeModelEventpublic void treeNodesInserted(TreeModelEvent e)
e.path´Â
»õ·Î¿î ³ëµåÀÇ ºÎ¸ð¸¦ ¸®ÅÏÇÕ´Ï´Ù.
e.childIndices´Â
»õ·Î¿î ³ëµåÀÇ À妽º¸¦ ½Â¼øÀ¸·Î ¸®ÅÏÇÕ´Ï´Ù.
AbstractLayoutCache ³»ÀÇ treeNodesInserted e - ´ë»óÀÇ TreeModelEventpublic void treeNodesRemoved(TreeModelEvent e)
e.path´Â
»èÁ¦µÈ ³ëµåÀÇ ¿øÀÇ ºÎ¸ð¸¦ ¸®ÅÏÇÕ´Ï´Ù.
e.childIndices´Â
³ëµå°¡ »èÁ¦µÇ±â Àü¿¡ °¡Áö°í ÀÖ´ø À妽º¸¦ ½Â¼øÀ¸·Î ¸®ÅÏÇÕ´Ï´Ù.
AbstractLayoutCache ³»ÀÇ treeNodesRemoved e - ´ë»óÀÇ TreeModelEventpublic void treeStructureChanged(TreeModelEvent e)
e.getPath·Î
¸®ÅϵÈ
ÆÐ½ºÀÇ ±æÀ̰¡ 1 À¸·Î ¼±µÎÀÇ ¿ä¼Ò°¡ ÇöÀçÀÇ ·çÆ® ³ëµå¸¦ ½Äº°ÇÏÁö ¾Ê´Â °æ¿ì, ¼±µÎÀÇ ¿ä¼Ò°¡ Æ®¸®ÀÇ »õ·Î¿î ·çÆ®°¡ µË´Ï´Ù.
e.path´Â ³ëµå¿¡ÀÇ ÆÐ½º¸¦ º¸°ü À¯ÁöÇÕ´Ï´Ù.
e.childIndices´Â nullÀ»
¸®ÅÏÇÕ´Ï´Ù.
AbstractLayoutCache ³»ÀÇ treeStructureChanged e - ´ë»óÀÇ TreeModelEvent
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.