當前位置: 首頁>>代碼示例>>Java>>正文


Java DefaultTreeCellRenderer.getLeafIcon方法代碼示例

本文整理匯總了Java中javax.swing.tree.DefaultTreeCellRenderer.getLeafIcon方法的典型用法代碼示例。如果您正苦於以下問題:Java DefaultTreeCellRenderer.getLeafIcon方法的具體用法?Java DefaultTreeCellRenderer.getLeafIcon怎麽用?Java DefaultTreeCellRenderer.getLeafIcon使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在javax.swing.tree.DefaultTreeCellRenderer的用法示例。


在下文中一共展示了DefaultTreeCellRenderer.getLeafIcon方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: test6

import javax.swing.tree.DefaultTreeCellRenderer; //導入方法依賴的package包/類
@Test
public void test6()  throws Throwable  {
    File file0 = new File("");
    DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
    Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
    JRadioButton jRadioButton0 = new JRadioButton("", icon0);
    FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
    FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
    assertNotNull(fileFollowingPane0);
    
    SearchableTextPane searchableTextPane0 = fileFollowingPane0.getTextPane();
    assertEquals(false, searchableTextPane0.isEditable());
    assertEquals(false, fileFollowingPane0.autoPositionCaret());
    assertEquals(-1042, searchableTextPane0.getTabSize());
    assertNotNull(searchableTextPane0);
    assertEquals(3, fileFollowingPane0.getComponentCount());
}
 
開發者ID:bwollman,項目名稱:41_follow,代碼行數:18,代碼來源:TestFileFollowingPane.java

示例2: test0

import javax.swing.tree.DefaultTreeCellRenderer; //導入方法依賴的package包/類
@Test
public void test0()  throws Throwable  {
    File file0 = new File("");
    DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
    Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
    JRadioButton jRadioButton0 = new JRadioButton("", icon0);
    FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
    FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
    assertNotNull(fileFollowingPane0);
    
    fileFollowingPane0.isFollowingPaused();
    assertEquals(false, fileFollowingPane0.autoPositionCaret());
    assertEquals(3, fileFollowingPane0.getComponentCount());
}
 
開發者ID:bwollman,項目名稱:41_follow,代碼行數:15,代碼來源:TestFileFollowingPane.java

示例3: test1

import javax.swing.tree.DefaultTreeCellRenderer; //導入方法依賴的package包/類
@Test
public void test1()  throws Throwable  {
    File file0 = new File("");
    DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
    Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
    JRadioButton jRadioButton0 = new JRadioButton("", icon0);
    FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
    FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
    assertNotNull(fileFollowingPane0);
    
    fileFollowingPane0.pauseFollowing();
    assertEquals(true, fileFollowingPane0.isFollowingPaused());
    assertEquals(3, fileFollowingPane0.countComponents());
}
 
開發者ID:bwollman,項目名稱:41_follow,代碼行數:15,代碼來源:TestFileFollowingPane.java

示例4: test2

import javax.swing.tree.DefaultTreeCellRenderer; //導入方法依賴的package包/類
@Test
public void test2()  throws Throwable  {
    File file0 = new File("");
    DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
    Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
    JRadioButton jRadioButton0 = new JRadioButton("", icon0);
    FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
    FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
    assertNotNull(fileFollowingPane0);
    
    File file1 = fileFollowingPane0.getFollowedFile();
    assertEquals(false, fileFollowingPane0.autoPositionCaret());
    assertEquals(3, fileFollowingPane0.countComponents());
    assertNotNull(file1);
}
 
開發者ID:bwollman,項目名稱:41_follow,代碼行數:16,代碼來源:TestFileFollowingPane.java

示例5: test3

import javax.swing.tree.DefaultTreeCellRenderer; //導入方法依賴的package包/類
@Test
public void test3()  throws Throwable  {
    File file0 = new File("");
    DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
    Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
    JRadioButton jRadioButton0 = new JRadioButton("", icon0);
    FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
    FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
    assertNotNull(fileFollowingPane0);
    
    fileFollowingPane0.setAutoPositionCaret(false);
    assertEquals(false, fileFollowingPane0.autoPositionCaret());
    assertEquals(3, fileFollowingPane0.getComponentCount());
}
 
開發者ID:bwollman,項目名稱:41_follow,代碼行數:15,代碼來源:TestFileFollowingPane.java

示例6: test4

import javax.swing.tree.DefaultTreeCellRenderer; //導入方法依賴的package包/類
@Test
public void test4()  throws Throwable  {
    File file0 = new File("");
    DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
    Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
    JRadioButton jRadioButton0 = new JRadioButton("", icon0);
    FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
    FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
    assertNotNull(fileFollowingPane0);
    
    fileFollowingPane0.unpauseFollowing();
    assertEquals(false, fileFollowingPane0.autoPositionCaret());
    assertEquals(3, fileFollowingPane0.getComponentCount());
}
 
開發者ID:bwollman,項目名稱:41_follow,代碼行數:15,代碼來源:TestFileFollowingPane.java

示例7: test5

import javax.swing.tree.DefaultTreeCellRenderer; //導入方法依賴的package包/類
@Test
public void test5()  throws Throwable  {
    File file0 = new File("");
    DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
    Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
    JRadioButton jRadioButton0 = new JRadioButton("", icon0);
    FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
    FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
    assertNotNull(fileFollowingPane0);
    
    fileFollowingPane0.isFollowing();
    assertEquals(false, fileFollowingPane0.autoPositionCaret());
    assertEquals(3, fileFollowingPane0.countComponents());
    assertEquals(3, fileFollowingPane0.getComponentCount());
}
 
開發者ID:bwollman,項目名稱:41_follow,代碼行數:16,代碼來源:TestFileFollowingPane.java

示例8: test7

import javax.swing.tree.DefaultTreeCellRenderer; //導入方法依賴的package包/類
@Test
public void test7()  throws Throwable  {
    File file0 = new File("");
    DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
    Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
    JRadioButton jRadioButton0 = new JRadioButton("", icon0);
    FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
    FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
    assertNotNull(fileFollowingPane0);
    
    boolean boolean0 = fileFollowingPane0.autoPositionCaret();
    assertEquals(3, fileFollowingPane0.countComponents());
    assertEquals(false, boolean0);
}
 
開發者ID:bwollman,項目名稱:41_follow,代碼行數:15,代碼來源:TestFileFollowingPane.java

示例9: test8

import javax.swing.tree.DefaultTreeCellRenderer; //導入方法依賴的package包/類
@Test
public void test8()  throws Throwable  {
    File file0 = new File("");
    DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
    Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
    JRadioButton jRadioButton0 = new JRadioButton("", icon0);
    FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
    FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
    assertNotNull(fileFollowingPane0);
    
    fileFollowingPane0.clear();
    assertEquals(false, fileFollowingPane0.autoPositionCaret());
    assertEquals(3, fileFollowingPane0.getComponentCount());
}
 
開發者ID:bwollman,項目名稱:41_follow,代碼行數:15,代碼來源:TestFileFollowingPane.java


注:本文中的javax.swing.tree.DefaultTreeCellRenderer.getLeafIcon方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。