|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.swing.tree.AbstractLayoutCache
javax.swing.tree.FixedHeightLayoutCache
public class FixedHeightLayoutCache
ÁÖ: ÀÌ Å¬·¡½º´Â ÇâÈÄÀÇ ¸±¸®½º·Î ¶ÇÇÑ ¿ÀÇÂÀÌ µÉ ¿¹Á¤ÀÔ´Ï´Ù.
°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ °´Ã¼´Â ÇâÈÄÀÇ 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 |
»ý¼ºÀÚ °³¿ä | |
---|---|
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 <TreePath > |
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 <TreePath > 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 Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.